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:
@@ -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(())
|
||||
/// # }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user