diff --git a/base58/Cargo.toml b/base58/Cargo.toml index 681fb032d..c6a57da89 100644 --- a/base58/Cargo.toml +++ b/base58/Cargo.toml @@ -16,10 +16,6 @@ exclude = ["tests", "contrib"] default = ["std"] std = ["hashes/std", "internals/std"] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] hashes = { package = "bitcoin_hashes", version = "0.14.0", default-features = false, features = ["alloc"] } internals = { package = "bitcoin-internals", version = "0.3.0", features = ["alloc"] } @@ -27,5 +23,9 @@ internals = { package = "bitcoin-internals", version = "0.3.0", features = ["all [dev-dependencies] hex = { package = "hex-conservative", version = "0.2.0", default-features = false, features = ["alloc"] } +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(fuzzing)', 'cfg(kani)' ] } diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 7c63520b0..1344571fa 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -23,10 +23,6 @@ secp-lowmemory = ["secp256k1/lowmemory"] secp-recovery = ["secp256k1/recovery"] bitcoinconsensus-std = ["bitcoinconsensus/std", "std"] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] base58 = { package = "base58ck", version = "0.1.0", default-features = false } bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] } @@ -54,6 +50,10 @@ hex_lit = "0.1.1" [target.'cfg(mutate)'.dev-dependencies] mutagen = { git = "https://github.com/llogiq/mutagen" } +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [[example]] name = "bip32" diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index 1368c8eec..5f75494c2 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -22,10 +22,6 @@ io = ["bitcoin-io"] # Smaller (but slower) implementation of sha256, sha512 and ripemd160 small-hash = [] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] hex = { package = "hex-conservative", version = "0.2.0", default-features = false } @@ -37,5 +33,9 @@ serde = { version = "1.0", default-features = false, optional = true } serde_test = "1.0" serde_json = "1.0" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(hashes_fuzz)', 'cfg(rust_v_1_64)' ] } diff --git a/internals/Cargo.toml b/internals/Cargo.toml index 9f8f3d5e7..20cdaadd8 100644 --- a/internals/Cargo.toml +++ b/internals/Cargo.toml @@ -18,14 +18,14 @@ default = [] std = ["alloc"] alloc = [] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] serde = { version = "1.0.103", default-features = false, optional = true } [dev-dependencies] +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(rust_v_1_64)', 'cfg(rust_v_1_61)'] } diff --git a/units/Cargo.toml b/units/Cargo.toml index afb1ab1ac..6da54ff95 100644 --- a/units/Cargo.toml +++ b/units/Cargo.toml @@ -17,10 +17,6 @@ default = ["std"] std = ["alloc", "internals/std"] alloc = ["internals/alloc"] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] internals = { package = "bitcoin-internals", version = "0.3.0", features = ["alloc"] } @@ -30,5 +26,9 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"], serde_test = "1.0" serde_json = "1.0" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(kani)'] }