-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
46 lines (38 loc) · 1.47 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
[workspace]
members = [
"cortex-m-demo"
]
[package]
name = "perun"
version = "0.0.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0.147", default-features = false, features = ["derive"] }
sha3 = { version = "0.10.6", default-features = false }
uint = { version = "0.9.5", default-features = false }
secp256k1 = { version = "0.24.1", default-features = false, features = ["rand", "alloc", "recovery"], optional = true}
k256 = { version = "0.11.6", default-features = false, features = ["ecdsa", "keccak256", "arithmetic"], optional = true }
rand = { version = "0.8.5", default-features = false, features = ["min_const_gen"] }
prost = { version = "0.11.5", default-features = false, features = ["prost-derive"] }
[target.x86_64-unknown-linux-gnu.dev-dependencies]
tokio = { version = "1.23.0", features = ["full"] }
[target.thumbv7m-none-eabi.dev-dependencies]
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"]}
cortex-m-rt = "0.7.2"
cortex-m-semihosting = "0.5.0"
# panic-halt = "0.2.0"
panic-semihosting = "0.6.0"
embedded-alloc = "0.5.0"
[build-dependencies]
prost-build = { version = "0.11.5" }
[features]
default = ["std", "k256"]
std = ["serde/std", "rand/std", "rand/std_rng"]
secp256k1 = ["dep:secp256k1", "std"]
k256 = ["dep:k256"]
nostd-example = ["k256", "rand/std_rng"]
no-go-comm = []
[profile.release-with-debug]
inherits = "release"
debug = true