cargo: autodiscover should be off for examples

Ensure that cargo does not attempt to autodiscover examples. This causes
problems with utils.rs and ensures that an example section exists in the
Cargo.toml.
v0.7.x
Dan Robertson 2018-05-08 12:38:29 +00:00 committed by whitequark
parent febe22b578
commit 5bc3ec35a5
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ readme = "README.md"
keywords = ["ip", "tcp", "udp", "ethernet", "network"]
categories = ["embedded"]
license = "0BSD"
# Each example should have an explicit `[[example]]` section here to
# ensure that the correct features are enabled.
autoexamples = false
[dependencies]
managed = { version = "0.5", default-features = false, features = ["map"] }