We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46843df commit 0e26e28Copy full SHA for 0e26e28
Cargo.toml
@@ -31,3 +31,10 @@ bincode = "1"
31
quickcheck = { version = "1.0.3", default-features = false }
32
rand = "0.8.4"
33
serde_json = "1.0"
34
+
35
+# Passing arguments to the docsrs builder in order to properly document cfg's.
36
+# More information: https://docs.rs/about/builds#cross-compiling
37
+[package.metadata.docs.rs]
38
+all-features = true
39
+rustdoc-args = ["--cfg", "docsrs"]
40
+rustc-args = ["--cfg", "docsrs"]
src/lib.rs
@@ -1,5 +1,5 @@
1
//! Implementation of [multiaddr](https://github.com/multiformats/multiaddr) in Rust.
2
-#![cfg_attr(doc, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
3
4
pub use multihash;
5
0 commit comments