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

WIP: Break out features #89

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
* ------------------------------------------------------------------------------
*/

#[cfg(feature = "zmq")]
#[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;
Loading