Skip to content

Commit 3d2de37

Browse files
committed
Add weird cargo stuff
1 parent cb7147d commit 3d2de37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,13 @@ name = "fetch-fsm"
8383

8484
[[example]]
8585
name = "fetch-stream"
86+
87+
# We use this --cfg for documenting the cargo features on which an API
88+
# is available. To preview this locally use: RUSTFLAGS="--cfg
89+
# iroh_docsrs cargo +nightly doc --all-features". We use our own
90+
# iroh_docsrs instead of the common docsrs to avoid also enabling this
91+
# feature in any dependencies, because some indirect dependencies
92+
# require a feature enabled when using `--cfg docsrs` which we can not
93+
# do. To enable for a crate set `#![cfg_attr(iroh_docsrs,
94+
# feature(doc_cfg))]` in the crate.
95+
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)"] }

0 commit comments

Comments
 (0)