Hopefully it'll be easier to build now. The downside is that it allocates a small vec on each finish, but it's much faster than rust-sha1 anyway, at least on ARM (where I'm running rqbit myself).
19 lines
No EOL
514 B
TOML
19 lines
No EOL
514 B
TOML
[package]
|
|
name = "sha1w"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
default = ["sha1-system"]
|
|
sha1-system = ["crypto-hash"]
|
|
sha1-openssl = ["openssl"]
|
|
sha1-rust = ["sha1"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
openssl = {version="0.10", optional=true}
|
|
crypto-hash = {version="0.3", optional=true}
|
|
sha1 = {version = "0.6", optional=true} |