Skip to content

Add an example #[wasmtime] Rust macro#283

Merged
tschneidereit merged 2 commits intobytecodealliance:masterfrom
alexcrichton:wasmtime-rust
Aug 19, 2019
Merged

Add an example #[wasmtime] Rust macro#283
tschneidereit merged 2 commits intobytecodealliance:masterfrom
alexcrichton:wasmtime-rust

Conversation

@alexcrichton
Copy link
Member

This commit adds a wasmtime-rust crate to the misc folder next to
the previously added Python extension. The intention is that this
showcases loading a WebAssembly file natively in Rust and how with an
attribute macro it can feel lightweight in terms of boilerplate.

The macro itself is pretty non-featureful today beyond the bare bones to
get anything working, but there's all sorts of possibilities like
JIT-compiled entry stubs we could eventually do with all the type
information!

This commit adds a `wasmtime-rust` crate to the `misc` folder next to
the previously added Python extension. The intention is that this
showcases loading a WebAssembly file natively in Rust and how with an
attribute macro it can feel lightweight in terms of boilerplate.

The macro itself is pretty non-featureful today beyond the bare bones to
get anything working, but there's all sorts of possibilities like
JIT-compiled entry stubs we could eventually do with all the type
information!
Copy link
Member

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tschneidereit tschneidereit merged commit d1b1500 into bytecodealliance:master Aug 19, 2019
@alexcrichton alexcrichton deleted the wasmtime-rust branch January 7, 2020 15:10
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Generate specs for `Fpu{Load,Store}{32,64}`.

Updates bytecodealliance#260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants