Enable nightly doc features on docs.rs (#3076)
This commit is contained in:
@@ -9,9 +9,8 @@ repository = "https://github.com/bytecodealliance/wasmtime"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# FIXME(rust-lang/cargo#9300): uncomment once that lands
|
[package.metadata.docs.rs]
|
||||||
# [package.metadata.docs.rs]
|
rustdoc-args = ["--cfg", "nightlydoc"]
|
||||||
# rustdoc-args = ["--cfg", "nightlydoc"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasmtime-runtime = { path = "../runtime", version = "0.28.0" }
|
wasmtime-runtime = { path = "../runtime", version = "0.28.0" }
|
||||||
|
|||||||
@@ -528,6 +528,7 @@ impl Config {
|
|||||||
///
|
///
|
||||||
/// By default this option is 2 MiB.
|
/// By default this option is 2 MiB.
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
|
#[cfg_attr(nightlydoc, doc(cfg(feature = "async")))]
|
||||||
pub fn async_stack_size(&mut self, size: usize) -> Result<&mut Self> {
|
pub fn async_stack_size(&mut self, size: usize) -> Result<&mut Self> {
|
||||||
if size < self.max_wasm_stack {
|
if size < self.max_wasm_stack {
|
||||||
bail!("async stack size cannot be less than the maximum wasm stack size");
|
bail!("async stack size cannot be less than the maximum wasm stack size");
|
||||||
|
|||||||
Reference in New Issue
Block a user