From 5bc3ec35a5b07c0b663cab5c249a0477cd52ff2d Mon Sep 17 00:00:00 2001 From: Dan Robertson Date: Tue, 8 May 2018 12:38:29 +0000 Subject: [PATCH] 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. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 030337d..2531001 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] }