-
Notifications
You must be signed in to change notification settings - Fork 11
/
Cargo.toml
86 lines (78 loc) · 2.82 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
[package]
name = "crypto-layer"
version = "0.1.0"
edition = "2021"
license = "MIT"
[lib]
crate-type = ["cdylib", "lib"]
[profile.dev]
debug-assertions = true
overflow-checks = true
[profile.release]
# Use fewer codegen units to enable more optimizations
codegen-units = 1
# Enable link time optimization for better performance
lto = true
# Strip debug symbols for smaller binary size
debug = false
strip = "symbols"
[features]
ffi = []
android = ["dep:robusta_jni", "dep:libloading"]
nks = ["core", "dep:x25519-dalek", "hcvault", "dep:reqwest", "dep:rand", "dep:openssl", "dep:arrayref", "dep:base64", "dep:ed25519-dalek", "dep:sodiumoxide"]
hcvault = []
core = []
linux = ["tss-esapi"]
apple-secure-enclave = ["dep:security-framework", "dep:core-foundation", "dep:base64"]
win = ["dep:windows"]
hsm = []
yubi = ["hsm", "dep:yubikey", "dep:sha2", "dep:x509-cert", "dep:base64", "dep:rsa", "dep:openssl"]
[dependencies]
arrayref = { version = "0.3.7", optional = true }
base64 = { version = "0.22.1", optional = true }
core-foundation = { version = "0.10.0", optional = true }
ed25519-dalek = { version = "2.1.1", optional = true }
openssl = { version = "0.10.66", optional = true }
rand = { version = "0.8.5", optional = true }
reqwest = { version = "0.12.7", features = ["json"], optional = true }
robusta_jni = { version = "0.2", optional = true }
rsa = { version = "0.9.6", optional = true }
security-framework = { version = "3.0.0", optional = true, default-features = false, features = ["OSX_10_15"]}
serde = { version = "1.0.208", features = ["derive"] }
serde_json = { version = "1.0.125" }
sha2 = { version = "0.10.8", optional = true }
sodiumoxide = { version = "0.2.7", optional = true }
tracing = { version = "0.1.40", features = ["attributes", "release_max_level_info"] }
tracing-attributes = "0.1.27"
tss-esapi = { version = "7.5.1", optional = true }
windows = { version = "0.57.0", features = [
"Win32_Foundation",
"Win32_System_SystemServices",
"Win32_Security_Tpm",
"Security_Cryptography_Core",
"Win32_Security_Cryptography",
"Win32_Security_Cryptography_Catalog",
"Data_Xml_Dom",
"Win32_Foundation",
"Win32_Security",
], optional = true }
# windows-core = "0.58.0"
# windows-interface = "0.58.0"
# windows-metadata = "0.58.0"
# windows-result = "0.2.0"
x25519-dalek = { version = "2.0.1", features = ["static_secrets"], optional = true }
x509-cert = { version = "0.2.5", optional = true }
yubikey = { version = "0.8.0", optional = true, features = ["untested"] }
nanoid = "0.4.0"
enum_dispatch = "0.3.13"
libloading = {version = "0.8.5", optional = true}
thiserror = "1.0.65"
anyhow = { version = "1.0.91"}
bincode = "1.3.3"
pollster = "0.4.0"
rmp-serde = "1.3.0"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
[dev-dependencies]
color-eyre = "0.6.3"
test-case = "3.3.1"
tracing-subscriber = "0.3.18"