Another attempt to make it possible to build without openssl.

You'll need to cd into crates/rqbit to build with selective features.
This commit is contained in:
Igor Katson 2021-09-30 09:00:40 +01:00
parent f40a227459
commit 1bcc16c327
6 changed files with 16 additions and 10 deletions

View file

@ -5,9 +5,15 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["sha1-openssl"]
sha1-system = ["sha1w/sha1-system"]
sha1-openssl = ["sha1w/sha1-openssl"]
sha1-rust = ["sha1w/sha1-openssl"]
[dependencies]
serde = {version = "1", features=["derive"]}
buffers = {path = "../buffers"}
clone_to_owned = {path = "../clone_to_owned"}
anyhow = "1"
sha1w = {path="../sha1w"}
sha1w = {path="../sha1w", default-features=false}

View file

@ -11,7 +11,7 @@ tokio-stream = {version = "0.1", features = ["sync"]}
serde = {version = "1", features = ["derive"]}
serde_json = "1"
hex = "0.4"
bencode = {path = "../bencode"}
bencode = {path = "../bencode", default-features=false}
anyhow = "1"
parking_lot = "0.11"
log = "0.4"

View file

@ -13,12 +13,12 @@ sha1-rust = ["sha1w/sha1-openssl"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bencode = {path = "../bencode"}
bencode = {path = "../bencode", default-features=false}
buffers = {path = "../buffers"}
librqbit_core = {path = "../librqbit_core"}
clone_to_owned = {path = "../clone_to_owned"}
peer_binary_protocol = {path = "../peer_binary_protocol"}
sha1w = {path = "../sha1w"}
sha1w = {path = "../sha1w", default-features=false}
dht = {path = "../dht"}
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}

View file

@ -14,5 +14,5 @@ log = "0.4"
parking_lot = "0.11"
serde = {version = "1", features=["derive"]}
buffers = {path="../buffers"}
bencode = {path="../bencode"}
bencode = {path = "../bencode", default-features=false}
clone_to_owned = {path="../clone_to_owned"}

View file

@ -10,7 +10,7 @@ serde = {version = "1", features = ["derive"]}
bincode = "1"
byteorder = "1"
buffers = {path="../buffers"}
bencode = {path="../bencode"}
bencode = {path = "../bencode", default-features=false}
clone_to_owned = {path="../clone_to_owned"}
librqbit_core = {path="../librqbit_core"}
bitvec = "0.22"

View file

@ -7,12 +7,12 @@ edition = "2018"
[features]
default = ["sha1-openssl"]
sha1-system = ["librqbit/crypto-hash"]
sha1-openssl = ["librqbit/openssl"]
sha1-rust = ["librqbit/sha1"]
sha1-system = ["librqbit/sha1-system"]
sha1-openssl = ["librqbit/sha1-openssl"]
sha1-rust = ["librqbit/sha1-rust"]
[dependencies]
librqbit = {path="../librqbit"}
librqbit = {path="../librqbit", default-features=false}
dht = {path="../dht"}
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
anyhow = "1"