diff --git a/Cargo.toml b/Cargo.toml index 7cf9a0f32..991d67927 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = ["bitcoin", "hashes", "internals", "fuzz", "io", "units", "base58"] +members = ["base58", "bitcoin", "fuzz", "hashes", "internals", "io", "units"] resolver = "2" [patch.crates-io.base58ck] 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..314829cda 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -18,15 +18,11 @@ default = [ "std", "secp-recovery" ] std = ["base58/std", "bech32/std", "hashes/std", "hex/std", "internals/std", "io/std", "secp256k1/std", "units/std"] rand-std = ["secp256k1/rand-std", "std"] rand = ["secp256k1/rand"] -serde = ["actual-serde", "hashes/serde", "secp256k1/serde", "internals/serde", "units/serde"] +serde = ["actual-serde", "hashes/serde", "internals/serde", "secp256k1/serde", "units/serde"] 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/bitcoin/src/blockdata/script/push_bytes.rs b/bitcoin/src/blockdata/script/push_bytes.rs index e52bb905b..fddda74ee 100644 --- a/bitcoin/src/blockdata/script/push_bytes.rs +++ b/bitcoin/src/blockdata/script/push_bytes.rs @@ -4,10 +4,9 @@ use core::ops::{Deref, DerefMut}; -use crate::script; - #[allow(unused)] use crate::prelude::*; +use crate::script; #[rustfmt::skip] // Keep public re-exports separate. #[doc(inline)] 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)'] }