-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
85 lines (74 loc) · 2.08 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
[workspace]
members = [
".",
"c-api",
"qemu-tests",
"wycheproof/parser",
"wycheproof/macros",
"wycheproof/types",
]
[workspace.package]
authors = ["The Salty Engineers"]
edition = "2021"
homepage = "https://github.com/ycrypto/salty"
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/ycrypto/salty"
version = "0.3.0"
[package]
name = "salty"
description = "Small, sweet, swift Ed25519 signatures for microcontrollers"
keywords = ["no-std", "NaCl", "Ed25519", "cryptography", "signatures"]
version.workspace = true
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
[workspace.dependencies]
salty = { path = "." }
wycheproof-macros = { path = "wycheproof/macros" }
wycheproof-parser = { path = "wycheproof/parser" }
wycheproof-types = { path = "wycheproof/types" }
cosey = { version = "0.3" }
ed25519 = { version = "2.2", default-features = false }
hex = "0.4"
hex-literal = "0.4"
hex-serde = "0.1"
panic-halt = "0.2"
proc-macro2 = "1"
quote = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
syn = { version = "2", features = ["full"] }
subtle = { version = "2.4", default-features = false }
zeroize = { version = "1.6", default-features = false, features = ["zeroize_derive"] }
[dependencies]
subtle.workspace = true
zeroize.workspace = true
cosey = { workspace = true, optional = true}
ed25519 = { workspace = true, optional = true}
[dev-dependencies]
hex.workspace = true
hex-literal.workspace = true
wycheproof-macros.workspace = true
wycheproof-types.workspace = true
[features]
default = ["rustcrypto"]
slow-motion = []
cose = ["cosey"]
rustcrypto = ["ed25519"]
[profile.release.package.salty-c-api]
codegen-units = 1
debug = true
# using `lto = true` leads to
# warning: Linking globals named 'salty_public_key': symbol multiply defined!
# error: failed to load bc of "salty.2a057q60-cgu.0": <Paste>
# lto = "thin"
opt-level = "s"
[profile.release.package.qemu-tests]
codegen-units = 1
debug = true
# lto = true
opt-level = "z"