471: Added missing functions for `pyodide` r=syrusakbary a=piranna
Since Pyodide is focused on running on desktop, this pull-request lacks
Javascript runtime functions. It also sorted alphabetically some functions
Co-authored-by: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
494: fix(runtime-c-api) Replace deprecated type aliases from libc r=Hywan a=Hywan
Since https://github.com/rust-lang/libc/pull/1379, fixed width integer
type aliases are deprecated. Thus, this patch uses Rust types instead
of libc aliases.
Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
493: feat(runtime-c-api) Improve error message when instantiating a module r=Hywan a=Hywan
This patch improves the error message returned by `wasmer_module_instantiate`.
Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
490: Add MiddlewareChain and StreamingCompiler to runtime r=syrusakbary a=bjfish
It would be nice to add `MiddlewareChain` and `StreamingCompiler` to runtime to be able to use these without having to include the `runtime-core` as a dependency. For example:
```rust
use wasmer_runtime::{MiddlewareChain, StreamingCompiler};
use wasmer_singlepass_backend::ModuleCodeGenerator as SinglePassMCG;
use wasmer_middleware_common::metering::Metering;
let limit = 1_000_000;
let c: StreamingCompiler<SinglePassMCG, _, _, _, _> = StreamingCompiler::new(move || {
let mut chain = MiddlewareChain::new();
chain.push(Metering::new(limit));
chain
});
wasmer_runtime::compile_with(&prepared_code, &c)
.map_err(|e| Error::Wasmer(format!("{}", e)))
chain
});
wasmer_runtime::compile_with(&prepared_code, &c)
.map_err(|e| Error::Wasmer(format!("{}", e)))
```
Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>