forked from ROMEO/nexosim
Add automatic feature documentation for docs.rs
This commit is contained in:
parent
bf7fb9b28b
commit
1c0c8ed529
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -163,3 +163,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Run cargo doc
|
- name: Run cargo doc
|
||||||
run: cargo doc --no-deps --all-features --document-private-items
|
run: cargo doc --no-deps --all-features --document-private-items
|
||||||
|
env:
|
||||||
|
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
|
||||||
|
@ -71,6 +71,10 @@ tonic-build = { version = "0.12" }
|
|||||||
# `asynchronix_grpc_codegen` flag: regenerate gRPC code from .proto definitions.
|
# `asynchronix_grpc_codegen` flag: regenerate gRPC code from .proto definitions.
|
||||||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(asynchronix_loom)', 'cfg(asynchronix_grpc_codegen)'] }
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(asynchronix_loom)', 'cfg(asynchronix_grpc_codegen)'] }
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "integration"
|
name = "integration"
|
||||||
path = "tests/tests.rs"
|
path = "tests/tests.rs"
|
||||||
|
@ -406,6 +406,8 @@
|
|||||||
//! * the [`time`] module discusses in particular the monotonic timestamp format
|
//! * the [`time`] module discusses in particular the monotonic timestamp format
|
||||||
//! used for simulations ([`time::MonotonicTime`]).
|
//! used for simulations ([`time::MonotonicTime`]).
|
||||||
#![warn(missing_docs, missing_debug_implementations, unreachable_pub)]
|
#![warn(missing_docs, missing_debug_implementations, unreachable_pub)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide))]
|
||||||
|
#![cfg_attr(docsrs, doc(cfg_hide(feature = "dev-hooks")))]
|
||||||
|
|
||||||
pub(crate) mod channel;
|
pub(crate) mod channel;
|
||||||
pub(crate) mod executor;
|
pub(crate) mod executor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user