Skip to content

Commit

Permalink
Merge pull request #31 from fjarri/testing-feature
Browse files Browse the repository at this point in the history
Gate testing machinery under a feature
  • Loading branch information
fjarri authored Oct 16, 2024
2 parents 8d03f91 + 220e23c commit ec7d1e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ tracing = "0.1"
tokio = { version = "1", features = ["rt", "sync", "time", "macros"] }
rand = "0.8"
digest = "0.10"
manul = { path = "../manul", features = ["testing"] }
6 changes: 5 additions & 1 deletion manul/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ serde-encoded-bytes = { version = "0.1", default-features = false, features = ["
digest = { version = "0.10", default-features = false }
signature = { version = "2", default-features = false, features = ["digest", "rand_core"] }
rand_core = { version = "0.6.4", default-features = false }
rand = { version = "0.8", default-features = false }
tracing = { version = "0.1", default-features = false }
displaydoc = { version = "0.2", default-features = false }
rand = { version = "0.8", default-features = false, optional = true }

[dev-dependencies]
impls = "1"
sha3 = "0.10"
rand = { version = "0.8", default-features = false }

[features]
testing = ["rand"]

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 2 additions & 0 deletions manul/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ extern crate alloc;

pub mod protocol;
pub mod session;

#[cfg(any(test, feature = "testing"))]
pub mod testing;

0 comments on commit ec7d1e3

Please sign in to comment.