Comments (1)
I have prototyped this as I was running into issues with the old version of Wasm3 currently supported by this crate. I use only the types and functions exposed in wasm3.h
and m3_api_wasi.h
(if the wasi
feature is enabled). However, this crate makes heavy use of internal structs, and so not all exposed functionality is available using only the public API. In particular, I had to remove this functions:
Function::import_module_name
(The name of the import module of this function)Module::function
(Looks up a function by its index in this module)Runtime::find_module
(Searches for a module with the given name in the runtime's loaded modules)Runtime::modules
(Returns an iterator over the runtime's loaded modules)Runtime::resize_memory
(Resizes the number of allocatable pages to num_pages)Runtime::stack and stack_mut
(Returns the stack of this runtime)
So we could either add to the wasm3 API to keep these or remove them from the Rust API. I'd be happy to open a PR with my changes, which has bindings to the v0.5.0 release.
from wasm3-rs.
Related Issues (20)
- Module find_function is producing an opaque Wasm3Error HOT 10
- use-32bit-slots feature is broken HOT 2
- expose a wasm3 runtime's `memoryLimit` HOT 3
- doesn't compile HOT 4
- Replace the Runtime references in Module and Function HOT 1
- CallContext should be branded with a lifetime HOT 1
- Can't compile with build-bindgen HOT 16
- Support wasm3 compile flags HOT 3
- wasm3 support for arm64 (Apple Silicon, M1) HOT 11
- `ParsedModule` API is unsound HOT 3
- Bindgen version used by wasm3-sys on crates.io doesn't match the source code HOT 3
- Multi-Value Return Types HOT 2
- why is there a inner pointer error?
- Unable to generate bindings HOT 3
- Example for string/vec u8 transfer HOT 3
- Please publish v0.5.0 to crates.io
- How to call host functions in wasm3 rust api? HOT 1
- ESP32-C3 Support HOT 1
- Crash on f64 closure args HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm3-rs.