Only compile device example if "device" feature is activated
@@ -9,6 +9,7 @@ name = "cortex-m-rt"
readme = "README.md"
repository = "https://github.com/rust-embedded/cortex-m-rt"
version = "0.6.5"
+autoexamples = true
[dependencies]
r0 = "0.2.2"
@@ -26,5 +27,9 @@ version = "0.5.5"
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
compiletest_rs = "0.3.14"
+[[example]]
+name = "device"
+required-features = ["device"]
+
[features]
device = []
