diff --git a/crates/peer_binary_protocol/Cargo.toml b/crates/peer_binary_protocol/Cargo.toml index 7f23c9d3..85f5862a 100644 --- a/crates/peer_binary_protocol/Cargo.toml +++ b/crates/peer_binary_protocol/Cargo.toml @@ -8,6 +8,14 @@ documentation = "https://docs.rs/librqbit-peer-protocol" repository = "https://github.com/ikatson/rqbit" readme = "README.md" +[features] +default = ["sha1-crypto-hash"] +sha1-crypto-hash = [ + "bencode/sha1-crypto-hash", + "librqbit-core/sha1-crypto-hash", +] +sha1-ring = ["bencode/sha1-ring", "librqbit-core/sha1-ring"] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] serde = { version = "1", features = ["derive"] }