From bc5e23bf6d364d9bd85e8527c8f880655fd0d0b8 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 6 Jan 2025 17:38:36 +0000 Subject: [PATCH] fixing cargo publish --- crates/peer_binary_protocol/Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) 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"] }