[package] name = "ares_crypto" 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" } ibig = "0.3.6" # 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"]