-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
69 lines (54 loc) · 1.66 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
workspace = { exclude = ["ct_cm4", "dudect", "fuzz", "wasm"] }
[package]
name = "fips204"
version = "0.4.6"
authors = ["Eric Schorn <eschorn@integritychain.com>"]
description = "FIPS 204: Module-Lattice-Based Digital Signature"
categories = ["cryptography", "no-std"]
documentation = "https://docs.rs/fips204"
edition = "2021"
keywords = ["FIPS204", "lattice", "dilithium", "signature"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/integritychain/fips204"
# MSRV set at 1.70 for debian testing, e.g. https://packages.debian.org/search?keywords=rustc
# This requires several marginally outdated dependencies, see below
rust-version = "1.70"
[features]
default = ["default-rng", "ml-dsa-44", "ml-dsa-65", "ml-dsa-87"]
default-rng = ["rand_core/getrandom"]
ml-dsa-44 = []
ml-dsa-65 = []
ml-dsa-87 = []
dudect = []
[dependencies] # Some are marginally held-back to retain MSRV 1.70
rand_core = { version = "0.6.4", default-features = false }
sha2 = { version = "0.10.8", default-features = false }
sha3 = { version = "0.10.2", default-features = false }
zeroize = { version = "1.6.0", default-features = false, features = ["zeroize_derive"] }
[dev-dependencies] # Some are marginally held-back to retain MSRV 1.70
criterion = "0.4.0"
hex = "0.4.3"
rand = "0.8.5"
rand_chacha = "0.3.1"
regex = "1.10.2"
serde_json = {version = "1.0.127", features = []}
[[bench]]
name = "benchmark"
harness = false
[profile.dev]
debug = true
#lto = true
opt-level = 1
#codegen-units = 1
[profile.release]
lto = true
opt-level = "s"
codegen-units = 1
[profile.bench]
debug = true
debug-assertions = false
incremental = false
lto = true
opt-level = 3
overflow-checks = false
codegen-units = 1