Skip to content

Commit dbeb781

Browse files
sjoerdsimonseldruin
authored andcommitted
cargo: Limit example dev-dependencies to arm target
Only add dev-dependendencies that are needed for the example on arm targets as they're not needed anywhere else.
1 parent 53039a8 commit dbeb781

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ display-interface-spi = "0.5.0"
2424
embedded-graphics-core = { version = "0.4.0", optional = true }
2525

2626
[dev-dependencies]
27+
embedded-graphics = "0.8.0"
28+
29+
[target.'cfg(target_arch="arm")'.dev-dependencies]
2730
cortex-m = { version = "0.7.2", features = ["critical-section-single-core"] }
2831
cortex-m-rt = "0.7.3"
2932
cortex-m-rtic = "1.1.4"
@@ -32,7 +35,6 @@ defmt-rtt = "0.4.0"
3235
panic-probe = { version = "0.3.1", features = ["print-defmt"] }
3336
# Used to load BMP images in various examples
3437
tinybmp = "0.5.0"
35-
embedded-graphics = "0.8.0"
3638
# Used by the noise_i2c examples
3739
rand = { version = "0.8.4", default-features = false, features = [ "small_rng" ] }
3840
embassy-stm32 = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", features = [ "stm32f103c8", "memory-x", "defmt", "exti", "time-driver-tim3" , "unstable-pac"] }

0 commit comments

Comments
 (0)