From 808582826b4ce799323c65ba3768514ae9cc7b38 Mon Sep 17 00:00:00 2001 From: Alphyr <47725341+a1phyr@users.noreply.github.com> Date: Mon, 12 Jul 2021 16:24:55 +0200 Subject: [PATCH] Enable nightly doc features on docs.rs (#3076) --- crates/wasmtime/Cargo.toml | 5 ++--- crates/wasmtime/src/config.rs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/wasmtime/Cargo.toml b/crates/wasmtime/Cargo.toml index 65cc5847d7..6b9a216d85 100644 --- a/crates/wasmtime/Cargo.toml +++ b/crates/wasmtime/Cargo.toml @@ -9,9 +9,8 @@ repository = "https://github.com/bytecodealliance/wasmtime" readme = "README.md" edition = "2018" -# FIXME(rust-lang/cargo#9300): uncomment once that lands -# [package.metadata.docs.rs] -# rustdoc-args = ["--cfg", "nightlydoc"] +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "nightlydoc"] [dependencies] wasmtime-runtime = { path = "../runtime", version = "0.28.0" } diff --git a/crates/wasmtime/src/config.rs b/crates/wasmtime/src/config.rs index ed9ba1fa33..d48744031c 100644 --- a/crates/wasmtime/src/config.rs +++ b/crates/wasmtime/src/config.rs @@ -528,6 +528,7 @@ impl Config { /// /// By default this option is 2 MiB. #[cfg(feature = "async")] + #[cfg_attr(nightlydoc, doc(cfg(feature = "async")))] pub fn async_stack_size(&mut self, size: usize) -> Result<&mut Self> { if size < self.max_wasm_stack { bail!("async stack size cannot be less than the maximum wasm stack size");