Skip to content

Commit ac9c053

Browse files
Merge #135
135: Only compile device example if "device" feature is activated r=adamgreig a=therealprof Signed-off-by: Daniel Egger <[email protected]> Co-authored-by: Daniel Egger <[email protected]>
2 parents 250615c + 074f5d2 commit ac9c053

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cortex-m-rt/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "cortex-m-rt"
99
readme = "README.md"
1010
repository = "https://github.com/rust-embedded/cortex-m-rt"
1111
version = "0.6.5"
12+
autoexamples = true
1213

1314
[dependencies]
1415
r0 = "0.2.2"
@@ -26,5 +27,9 @@ version = "0.5.5"
2627
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
2728
compiletest_rs = "0.3.14"
2829

30+
[[example]]
31+
name = "device"
32+
required-features = ["device"]
33+
2934
[features]
3035
device = []

0 commit comments

Comments
 (0)