From a4829c69979c1648c0f60b56f6b2475a4d3979e9 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 6 Jan 2025 17:32:35 +0000 Subject: [PATCH] fixing cargo publish --- crates/dht/Cargo.toml | 8 +++++++- crates/librqbit/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/dht/Cargo.toml b/crates/dht/Cargo.toml index c646649..225e476 100644 --- a/crates/dht/Cargo.toml +++ b/crates/dht/Cargo.toml @@ -8,7 +8,13 @@ documentation = "https://docs.rs/librqbit-dht" repository = "https://github.com/ikatson/rqbit" readme = "README.md" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[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"] [dependencies] tokio = { version = "1", features = [ diff --git a/crates/librqbit/Cargo.toml b/crates/librqbit/Cargo.toml index 96ea15e..6c300a0 100644 --- a/crates/librqbit/Cargo.toml +++ b/crates/librqbit/Cargo.toml @@ -55,7 +55,7 @@ librqbit-core = { path = "../librqbit_core", default-features = false, version = clone_to_owned = { path = "../clone_to_owned", package = "librqbit-clone-to-owned", version = "3" } peer_binary_protocol = { path = "../peer_binary_protocol", default-features = false, package = "librqbit-peer-protocol", version = "4.1" } sha1w = { path = "../sha1w", default-features = false, package = "librqbit-sha1-wrapper", version = "4.1" } -dht = { path = "../dht", package = "librqbit-dht", version = "5.2.0" } +dht = { path = "../dht", package = "librqbit-dht", default-features = false, version = "5.2.0" } librqbit-upnp = { path = "../upnp", version = "1" } upnp-serve = { path = "../upnp-serve", package = "librqbit-upnp-serve", default-features = false, version = "1", optional = true }