Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
WIP: Break out features
Browse files Browse the repository at this point in the history
Signed-off-by: William Katsak <[email protected]>
  • Loading branch information
wkatsak committed Dec 22, 2023
1 parent 9baf9be commit cc68385
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,42 @@ repository = "https://github.com/hyperledger/sawtooth-sdk-rust"
edition = "2018"

[features]
default = ["pem"]
default = [
"consensus",
"messaging",
"processor",
"signing",
"pem",
]

stable = [
"default",
]

experimental = []

consensus = ["zmq"]

messaging = ["zmq"]

processor = ["messaging", "zmq", "ctrlc"]

signing = ["secp256k1"]

# Add support for loading PEM encoded private keys
pem = ["openssl"]
pem = ["signing", "openssl"]

[dependencies]
hex = "0.4"
protobuf="2"
secp256k1 = "0.27"
protobuf = "2"
secp256k1 = { version = "0.27", optional = true }
rand = { version = "0.8", features = ["getrandom"]}
sha2 = "0.10"
zmq = "0.9"
zmq = { version = "0.9", optional = true }
uuid = { version = "0.8", features = ["v4"] }
log = "0.4"
libc = "0.2"
ctrlc = { version = "3.0", features = ["termination"] }
ctrlc = { version = "3.0", features = ["termination"], optional = true}
openssl = { version = "0.10", optional = true }

[dev-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
#[macro_use]
extern crate log;

#[cfg(feature = "consensus")]
pub mod consensus;
pub mod messages;
#[cfg(feature = "messaging")]
pub mod messaging;
#[cfg(feature = "processor")]
pub mod processor;
#[cfg(feature = "signing")]
pub mod signing;

0 comments on commit cc68385

Please sign in to comment.