瀏覽代碼

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.
Dan Robertson 7 年之前
父節點
當前提交
4397004267
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Cargo.toml

+ 3 - 0
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"] }