Make rust-tls work (through ring)

This commit is contained in:
Igor Katson 2024-08-27 15:11:34 +01:00
parent 78ee947d44
commit 01a4f68e20
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
7 changed files with 77 additions and 27 deletions

View file

@ -8,7 +8,13 @@ documentation = "https://docs.rs/librqbit-sha1-wrapper"
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
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html#
[features]
default = ["sha1-crypto-hash"]
sha1-crypto-hash = ["crypto-hash"]
sha1-ring = ["ring"]
[dependencies]
crypto-hash = "0.3"
crypto-hash = { version = "0.3", optional = true }
ring = { version = "0.17", optional = true }