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");