Skip to content

Commit

Permalink
fix: cargo test --no-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Dec 5, 2023
1 parent 37d1f27 commit a89fa8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fixed-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion primitive-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit a89fa8f

Please sign in to comment.