65175fee09
* setup workspace global lints to prevent needless panics * removed sources of panic in nym-crypto, nym-node and nym-api * adjusted test code
49 lines
1.9 KiB
TOML
49 lines
1.9 KiB
TOML
[package]
|
|
name = "nym-crypto"
|
|
version = "0.4.0"
|
|
description = "Crypto library for the nym mixnet"
|
|
edition = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
repository = { workspace = true }
|
|
|
|
[dependencies]
|
|
aes-gcm-siv = { workspace = true, optional = true }
|
|
aes = { workspace = true, optional = true }
|
|
aead = { workspace = true, optional = true }
|
|
bs58 = { workspace = true }
|
|
blake3 = { workspace = true, features = ["traits-preview"], optional = true }
|
|
ctr = { workspace = true, optional = true }
|
|
digest = { workspace = true, optional = true }
|
|
generic-array = { workspace = true, optional = true }
|
|
hkdf = { workspace = true, optional = true }
|
|
hmac = { workspace = true, optional = true }
|
|
cipher = { workspace = true, optional = true }
|
|
x25519-dalek = { workspace = true, features = ["static_secrets"], optional = true }
|
|
ed25519-dalek = { workspace = true, features = ["rand_core"], optional = true }
|
|
rand = { workspace = true, optional = true }
|
|
serde_bytes = { workspace = true, optional = true }
|
|
serde = { workspace = true, features = ["derive"], optional = true }
|
|
sha2 = { workspace = true, optional = true }
|
|
subtle-encoding = { workspace = true, features = ["bech32-preview"] }
|
|
thiserror = { workspace = true }
|
|
zeroize = { workspace = true, optional = true, features = ["zeroize_derive"] }
|
|
|
|
# internal
|
|
nym-sphinx-types = { path = "../nymsphinx/types", version = "0.2.0", default-features = false }
|
|
nym-pemstore = { path = "../../common/pemstore", version = "0.3.0" }
|
|
|
|
[dev-dependencies]
|
|
rand_chacha = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
aead = ["dep:aead", "aead/std", "aes-gcm-siv", "generic-array"]
|
|
serde = ["dep:serde", "serde_bytes", "ed25519-dalek/serde", "x25519-dalek/serde"]
|
|
asymmetric = ["x25519-dalek", "ed25519-dalek", "zeroize"]
|
|
hashing = ["blake3", "digest", "hkdf", "hmac", "generic-array", "sha2"]
|
|
stream_cipher = ["aes", "ctr", "cipher", "generic-array"]
|
|
sphinx = ["nym-sphinx-types/sphinx"]
|
|
|
|
[lints]
|
|
workspace = true |