Enable nightly doc features on docs.rs (#3076)

This commit is contained in:
Alphyr
2021-07-12 16:24:55 +02:00
committed by GitHub
parent 65a902f49d
commit 808582826b
2 changed files with 3 additions and 3 deletions

View File

@@ -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" }

View File

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