-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
45 lines (39 loc) · 1.24 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
[package]
name = "tftp"
version = "0.5.3"
edition = "2021"
[profile.release]
strip = "debuginfo"
[workspace]
members = ["std-binary"]
[dependencies]
log = "0.4"
heapless = { version = "0.8", optional = false, default-features = false }
base64 = { version = "0.21", optional = true, default-features = false }
x25519-dalek = { version = "2", optional = true, default-features = false, features = [
"getrandom",
"zeroize",
"static_secrets",
] }
chacha20poly1305 = { version = "0.10", optional = true, default-features = false, features = [
"heapless",
"getrandom",
"stream",
] }
rand = { version = "0.8", optional = false, default-features = false, features = [
"getrandom",
] }
micromath = { version = "2", optional = false }
# remove once chacha20poly1305, aead supports heapless 0.8
heapless_07 = { package = "heapless", version = "0.7", optional = false, default-features = false }
[dev-dependencies]
rand = "0.8"
vfs = "0.9"
arrayvec = { version = "0.7", optional = false, default-features = false }
[features]
default = ["alloc", "encryption", "multi_thread", "seek"]
std = []
alloc = ["chacha20poly1305?/alloc", "x25519-dalek?/alloc"]
encryption = ["x25519-dalek", "chacha20poly1305", "base64"]
seek = []
multi_thread = ["std"]