ares/rust/sword_crypto/Cargo.toml
Edward Amsden a7005c7049 Ares -> Sword (#12)
* Update README.md

* Rename ares -> sword

* Workspace

* Cargo-only CI
2024-08-22 10:46:38 -05:00

37 lines
1.3 KiB
TOML

[package]
name = "sword_crypto"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
assert_no_alloc = { path = "../assert_no_alloc" }
ibig = { path = "../ibig" }
# ed25519
curve25519-dalek = {version = "4.1.1", default-features = false, optional = true }
ed25519-dalek = { version = "2.1.0", default-features = false, optional = true }
x25519-dalek = { version = "2.0.0", features = ["static_secrets"], default-features = false, optional = true}
# aes_siv
aes = { version = "0.8.3", default-features = false, optional = true }
aes-siv = { version = "0.7.0", default-features = false, optional = true }
# sha
sha1 = { version = "0.10.6", default-features = false, optional = true }
sha2 = { version = "0.10.8", default-features = false, optional = true }
# test_vs_urcrypt
# XX: can be removed once stable
# rand = { version = "0.8.4", default-features = false, features = ["getrandom"], optional = true }
# urcrypt-sys = { version = "0.1.1", optional = true }
[features]
default = ["aes_siv", "ed25519", "sha"]
aes_siv = ["aes", "aes-siv"]
ed25519 = ["curve25519-dalek", "ed25519-dalek", "x25519-dalek"]
sha = ["sha1", "sha2"]
# XX: can be removed once stable
# test_vs_urcrypt = ["urcrypt-sys", "rand"]