-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
60 lines (49 loc) · 1.67 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
[package]
name = "caprand"
description = "RP2040 secure random number generator by timing capacitor pullup"
version = "0.1.0"
edition = "2021"
license = "0BSD"
repository = "https://github.com/mkj/caprand"
authors = ["Matt Johnston <[email protected]>"]
categories = ["embedded", "cryptography"]
keywords = ["rp2040", "rng", "getrandom"]
# avoid images
exclude = [
"docs/*",
]
[dependencies]
cortex-m = "0.7"
embassy-rp = "0.1"
rp-pac = { version = "6", default-features = false }
getrandom = { version = "0.2", default-features = false }
rand = { version = "0.8", default-features = false }
critical-section = "1.1"
sha2 = { version = "0.10", default-features = false }
rand_chacha = { version = "0.3", default-features = false }
log = { version = "0.4", default-features = false }
defmt = { version = "0.3", optional = true }
[dev-dependencies]
# "custom" feature is required to build getrandom with no_std
getrandom = { version = "0.2", features = ["custom"]}
# deps for demos
panic-probe = { version = "0.3", features = ["print-defmt"] }
defmt-rtt = { version = "0.4" }
defmt = { version = "0.3" }
heapless = "0.8"
# demos use embassy
cortex-m-rt = "0.7"
cortex-m = { version = "0.7", features = ["critical-section-single-core"]}
embassy-rp = { version = "0.1", features = ["time-driver"] }
embassy-usb-driver = { version = "0.1" }
embassy-executor = { version = "0.5", features = ["integrated-timers", "executor-thread", "arch-cortex-m"] }
embassy-usb = { version = "0.1.0", features = ["defmt"] }
embassy-futures = "0.1"
embassy-time = "0.3"
embedded-io-async = "0.6"
[features]
defmt = [ "dep:defmt" ]
[profile.release]
debug = 2
[package.metadata.docs.rs]
features = ["getrandom/custom"]