From d81aa203bb1b549d951bfa3a52ccace1ec419131 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Thu, 16 Jan 2020 20:55:08 -0500 Subject: [PATCH] Disable rustdoc on the wasmtime cli binary (#834) Currently the wasmtime binary (src/bin/wasmtime) and the wasmtime API crate (crates/api) share the same output filename. This causes the output files of the wasmtime binary to clobber the output files of the wasmtime API crate. So running `cargo doc --all` will often not build the wasmtime API docs, which is the more useful of the two. This is a rustdoc bug, and can be worked around by disabling documentation for the wasmtime binary. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 09bdaa1cfe..35060e7854 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,11 @@ publish = false [lib] doctest = false +[[bin]] +name = "wasmtime" +path = "src/bin/wasmtime.rs" +doc = false + [dependencies] # Enable all supported architectures by default. wasmtime = { path = "crates/api" }