diff --git a/fixed-hash/Cargo.toml b/fixed-hash/Cargo.toml index 41829cc0..ce78d8f3 100644 --- a/fixed-hash/Cargo.toml +++ b/fixed-hash/Cargo.toml @@ -9,7 +9,7 @@ description = "Macros to define custom fixed-size hash types" documentation = "https://docs.rs/fixed-hash/" readme = "README.md" edition = "2021" -rust-version = "1.56.1" +rust-version = "1.60" [package.metadata.docs.rs] features = ["quickcheck", "api-dummy"] @@ -30,6 +30,7 @@ rand = { version = "0.8.0", default-features = false, features = ["std_rng"] } [features] default = ["std", "rand", "rustc-hex", "byteorder"] std = ["rustc-hex/std", "rand?/std", "byteorder/std"] +rand = ["dep:rand"] api-dummy = [] # Feature used by docs.rs to display documentation of hash types diff --git a/primitive-types/Cargo.toml b/primitive-types/Cargo.toml index 126b17dc..0d6dee58 100644 --- a/primitive-types/Cargo.toml +++ b/primitive-types/Cargo.toml @@ -22,8 +22,9 @@ schemars = { version = ">=0.8.12", default-features = true, optional = true } num-traits = "0.2" [features] -default = ["std"] +default = ["std", "rand"] std = ["uint/std", "fixed-hash/std", "impl-codec?/std"] +rand = ["fixed-hash/rand"] byteorder = ["fixed-hash/byteorder"] rustc-hex = ["fixed-hash/rustc-hex"] serde = ["std", "impl-serde", "impl-serde/std"]