-
-
Notifications
You must be signed in to change notification settings - Fork 556
/
Cargo.toml
106 lines (97 loc) · 3.37 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[package]
name = "ockam_vault"
version = "0.110.0"
authors = ["Ockam Developers"]
categories = [
"cryptography",
"asynchronous",
"authentication",
"no-std",
"algorithms",
]
edition = "2021"
homepage = "https://github.com/build-trust/ockam"
keywords = ["ockam", "crypto", "cryptography", "authentication", "no-std"]
license = "Apache-2.0"
publish = true
readme = "README.md"
repository = "https://github.com/build-trust/ockam/tree/develop/implementations/rust/ockam/ockam_vault"
rust-version = "1.56.0"
description = """A software-only Ockam Vault implementation.
"""
[lib]
crate-type = ["rlib"]
path = "src/lib.rs"
[features]
default = ["std", "storage", "rust-crypto"]
disable_default_noise_protocol = []
OCKAM_XX_25519_AES256_GCM_SHA256 = []
OCKAM_XX_25519_AES128_GCM_SHA256 = []
OCKAM_XX_25519_ChaChaPolyBLAKE2s = []
aws-lc = ["dep:aws-lc-rs"]
rust-crypto = ["dep:aes-gcm"]
# Feature (enabled by default): "std" enables functionality expected to
# be available on a standard platform.
std = [
"ockam_macros/std",
"ockam_node/std",
"aes-gcm?/std",
"ed25519-dalek/std",
"rand/std",
"rand/std_rng",
"tracing/std",
"alloc",
"p256/std",
"storage",
]
# Feature: "no_std" enables functionality required for platforms
# without the standard library, requires nightly.
no_std = [
"ockam_node/no_std",
"rand_pcg",
"aes-gcm?/heapless",
"aes-gcm?/stream",
"serde/derive",
]
# Feature: "alloc" enables support for heap allocation (implied by `feature = "std"`)
alloc = [
"ockam_node/alloc",
"aes-gcm?/alloc",
"ed25519-dalek/alloc",
"x25519-dalek/alloc",
"p256/alloc",
"p256/ecdsa",
"p256/pem",
]
storage = ["ockam_node/storage", "sqlx"]
[dependencies]
aes-gcm = { version = "0.10", default-features = false, features = ["aes", "zeroize"], optional = true }
arrayref = "0.3"
aws-lc-rs = { version = "1.7", default-features = false, features = ["non-fips", "bindgen"], optional = true }
cfg-if = "1.0.0"
ed25519-dalek = { version = "2.1", default-features = false, features = ["fast", "rand_core", "zeroize"] }
hex = { version = "0.4", default-features = false }
hkdf = { version = "0.12", default-features = false }
minicbor = { version = "0.24.0", features = ["derive"] }
ockam_core = { path = "../ockam_core", version = "^0.109.0", default_features = false }
ockam_macros = { path = "../ockam_macros", version = "^0.34.0", default-features = false }
ockam_node = { path = "../ockam_node", version = "^0.117.0", default_features = false, optional = true }
# ECDSA providers:
p256 = { version = "0.13.2", default_features = false }
rand = { version = "0.8", default-features = false }
rand_pcg = { version = "0.3.1", default-features = false, optional = true }
serde = { version = "1", default-features = false, features = ["derive"] }
sha2 = { version = "0.10", default-features = false }
sqlx = { version = "0.7.4", optional = true }
static_assertions = "1.1.0"
tracing = { version = "0.1", default-features = false }
x25519-dalek = { version = "2.0.1", default_features = false, features = ["precomputed-tables", "static_secrets", "zeroize"] }
zeroize = { version = "1.8.1", features = ["zeroize_derive"] }
[dev-dependencies]
serde_bare = { version = "0.5.0" }
serde_json = { version = "1" }
tempfile = { version = "3.10.1" }
tokio = { version = "1.37", features = ["full"] }
trybuild = { version = "1.0", features = ["diff"] }
[package.metadata.cargo-machete]
ignored = ["ockam_macros", "rand_pcg"]