Unconditionally enable component-model tests (#4556)

* Unconditionally enable component-model tests

* Remove an outdated test that wasn't previously being compiled

* Fix a component model doc test

* Try to decrease memory usage in qemu
This commit is contained in:
Alex Crichton
2022-08-01 10:43:37 -05:00
committed by GitHub
parent 8d0224341c
commit 04631ad0af
7 changed files with 12 additions and 27 deletions

View File

@@ -189,13 +189,12 @@ impl Func {
/// string:
///
/// ```
/// # use wasmtime::component::{Func, Value};
/// # use wasmtime::component::Func;
/// # use wasmtime::Store;
/// # fn foo(func: &Func, mut store: Store<()>) -> anyhow::Result<()> {
/// let typed = func.typed::<(&str,), Value<String>, _>(&store)?;
/// let typed = func.typed::<(&str,), String, _>(&store)?;
/// let ret = typed.call(&mut store, ("Hello, ",))?;
/// let ret = ret.cursor(&store);
/// println!("returned string was: {}", ret.to_str()?);
/// println!("returned string was: {}", ret);
/// # Ok(())
/// # }
/// ```