-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
57 lines (44 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
[package]
name = "embedded-test-example"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/probe-rs/embedded-test-example"
license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# dependencies when using the log feature
log = { version = "0.4.20", optional = true }
# dependencies when using the demft feature
# Note: You must adapt .cargo/config when enabling the defmt feature
defmt = { version = "0.3.8", optional = true }
defmt-rtt = { version = "0.4.1", optional = true }
# dependencies when using the embassy feature
# Note: You need to enable at least one executor feature on embassy 0.5.x
embassy-executor = { default-features = false, version = "0.5.0", features = ["executor-thread", "arch-riscv32"], optional = true }
# Esp32 related dependencies for main.rs. Note: embedded-test comes with its own panic handler and logging sink.
esp-hal = { version = "0.17.0", features = ["esp32c6"] }
esp-backtrace = { version = "0.11.0", features = [
"esp32c6",
"exception-handler",
"panic-handler",
"println",
] }
esp-println = { version = "0.9.0", default-features = false, features = ["esp32c6", "log", "jtag-serial", "colors"] }
[dev-dependencies]
embedded-test = { version = "0.4.0" }
[features]
default = ["log"]
embassy = ["dep:embassy-executor", "embedded-test/embassy"]
log = ["dep:log", "embedded-test/init-log"]
defmt = ["dep:defmt", "dep:defmt-rtt"]
[[bin]]
name = "embedded-test-example"
required-features = ["log"]
test = false
[[test]]
name = "example_test"
harness = false
[[test]]
name = "async_test"
required-features = ["embassy"]
harness = false