-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
55 lines (43 loc) · 1.94 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
[package]
name = "embedded-test"
version = "0.5.1"
edition = "2021"
repository = "https://github.com/probe-rs/embedded-test"
license = "MIT OR Apache-2.0"
keywords = ["embedded", "test", "testing", "test-runner", "test-framework"]
description = "A test harness and runner for embedded devices"
categories = ["embedded", "no-std", "development-tools::testing"]
[dependencies]
semihosting = { version = "0.1.7", features = ["args"] }
embedded-test-macros = { version = "0.5.1", path = "./macros" }
serde = { version = "1.0.193", default-features = false, features = ["derive"] }
serde-json-core = { version = "0.5.1" }
heapless = "0.8.0"
# Optional dependencies
rtt-target = { version = "0.5.0", optional = true }
rtt-log = { version = "0.3.0", optional = true }
defmt = { version = "0.3.8", optional = true }
log = { version = "0.4.20", optional = true }
embassy-executor = { version = "0.6.1", optional = true, default-features = false }
[features]
default = ["panic-handler"]
# defines a panic-handler which will invoke `semihosting::process::abort()` on panic
panic-handler = []
# prints testcase exit result to defmt
defmt = ["dep:defmt"]
# prints testcase exit result to log
log = ["dep:log"]
# calls `rtt_target::rtt_init_print!()` before starting any tests
init-rtt = ["dep:rtt-target"]
# calls `rtt_log::init();` before starting any tests
init-log = ["dep:rtt-log"]
# Enables async test and init functions using embassy-executor.
# Note: You need to enable at least one executor feature on embassy unless you are using the `external-executor` feature
embassy = [
"embedded-test-macros/embassy",
"dep:embassy-executor",
]
# you will use your own executor by setting it via the `tasks` macro, e.g. `#[embedded_test::tests(executor = esp_hal::embassy::executor::thread::Executor::new())]`
external-executor = ["embedded-test-macros/external-executor"]
# enables the xtensa-specific semihosting implementation
xtensa-semihosting = ["semihosting/openocd-semihosting"]