ares/rust/ares_crypto/Cargo.toml

39 lines
1.4 KiB
TOML
Raw Normal View History

2023-12-18 02:57:51 +03:00
[package]
2023-12-19 00:08:22 +03:00
name = "ares_crypto"
2023-12-18 02:57:51 +03:00
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# use this when debugging requires allocation (e.g. eprintln)
# assert_no_alloc = { path = "../rust-assert-no-alloc", features=["warn_debug"] }
assert_no_alloc = { path = "../rust-assert-no-alloc" }
2023-12-18 22:08:59 +03:00
ibig = "0.3.6"
2023-12-20 18:24:34 +03:00
2023-12-20 19:13:28 +03:00
# ed25519
curve25519-dalek = {version = "4.1.1", default-features = false, optional = true }
ed25519-dalek = { version = "2.1.0", default-features = false, optional = true }
2023-12-20 18:24:34 +03:00
x25519-dalek = { version = "2.0.0", features = ["static_secrets"], default-features = false, optional = true}
2023-12-20 19:13:28 +03:00
# aes_siv
aes = { version = "0.8.3", default-features = false, optional = true }
aes-siv = { version = "0.7.0", default-features = false, optional = true }
2023-12-20 18:24:34 +03:00
2023-12-20 19:13:28 +03:00
# sha
sha1 = { version = "0.10.6", default-features = false, optional = true }
sha2 = { version = "0.10.8", default-features = false, optional = true }
2023-12-20 18:24:34 +03:00
# test_vs_urcrypt
2024-02-08 06:34:51 +03:00
# XX: can be removed once stable
2024-03-08 21:10:04 +03:00
# rand = { version = "0.8.4", default-features = false, features = ["getrandom"], optional = true }
# urcrypt-sys = { version = "0.1.1", optional = true }
2023-12-18 02:57:51 +03:00
[features]
default = ["aes_siv", "ed25519", "sha"]
2023-12-20 18:24:34 +03:00
aes_siv = ["aes", "aes-siv"]
ed25519 = ["curve25519-dalek", "ed25519-dalek", "x25519-dalek"]
sha = ["sha1", "sha2"]
2024-02-08 06:34:51 +03:00
# XX: can be removed once stable
2024-03-08 21:10:04 +03:00
# test_vs_urcrypt = ["urcrypt-sys", "rand"]