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:
parent
f40a227459
commit
1bcc16c327
6 changed files with 16 additions and 10 deletions
|
|
@ -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}
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"]}
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue