Propagte sha1 subcrate features all the way to rqbit CLI
This commit is contained in:
parent
a6a785640f
commit
f40a227459
4 changed files with 11 additions and 11 deletions
|
|
@ -6,9 +6,9 @@ edition = "2018"
|
|||
|
||||
[features]
|
||||
default = ["sha1-openssl"]
|
||||
sha1-system = ["crypto-hash"]
|
||||
sha1-openssl = ["openssl"]
|
||||
sha1-rust = ["sha1"]
|
||||
sha1-system = ["sha1w/sha1-system"]
|
||||
sha1-openssl = ["sha1w/sha1-openssl"]
|
||||
sha1-rust = ["sha1w/sha1-openssl"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ authors = ["Igor Katson <igor.katson@gmail.com>"]
|
|||
edition = "2018"
|
||||
|
||||
[features]
|
||||
rt-single-thread = []
|
||||
default = ["sha1-openssl"]
|
||||
sha1-system = ["librqbit/crypto-hash"]
|
||||
sha1-openssl = ["librqbit/openssl"]
|
||||
sha1-rust = ["librqbit/sha1"]
|
||||
|
||||
[dependencies]
|
||||
librqbit = {path="../librqbit"}
|
||||
|
|
|
|||
|
|
@ -6,13 +6,10 @@ edition = "2018"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["default-sha1-openssl"]
|
||||
default = ["sha1-openssl"]
|
||||
sha1-system = ["crypto-hash"]
|
||||
sha1-openssl = ["openssl"]
|
||||
sha1-rust = ["sha1"]
|
||||
default-sha1-openssl = ["sha1-openssl"]
|
||||
default-sha1-rust = ["sha1-rust"]
|
||||
default-sha1-system = ["sha1-system"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
// leaving the pure-rust impl here too. Maybe someday make them
|
||||
// runtime swappable or enabled with a feature.
|
||||
|
||||
#[cfg(feature = "default-sha1-openssl")]
|
||||
#[cfg(feature = "sha1-openssl")]
|
||||
pub type Sha1 = Sha1Openssl;
|
||||
|
||||
#[cfg(feature = "default-sha1-rust")]
|
||||
#[cfg(feature = "sha1-rust")]
|
||||
pub type Sha1 = Sha1Rust;
|
||||
|
||||
#[cfg(feature = "default-sha1-system")]
|
||||
#[cfg(feature = "sha1-system")]
|
||||
pub type Sha1 = Sha1System;
|
||||
|
||||
pub trait ISha1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue