Stream: wasmtime

Topic: make wasmtime-c-api installable


view this post on Zulip Graham Lyon (Oct 05 2021 at 22:10):

I'm looking to create a wasmtime-c-api brew formula so that consumers of a project that I'm adding wasmtime to can brew install all the required libs (wasmtime, sdl and others) and I don't have to bundle any of the libraries.

I'm getting stuck on the fact that cargo doesn't have a supported method of installing anything except for binaries. I've found https://crates.io/crates/cargo-c but it looks like the project has to be specially configured to consume that (and it wants to generate the headers for you...). I don't really want to resort to just manually copying the libs to the right locations in my brew formula, but it looks like that's the only supported method right now..?

Note that I'm not a rust developer (I'm rarely even a c developer) so most of this tooling is a little outside of my wheelhouse ;)

view this post on Zulip Dan Gohman (Oct 05 2021 at 22:13):

Would you be able to use the release packages, rather than installing from cargo? https://github.com/bytecodealliance/wasmtime/releases/tag/v0.30.0 has macos builds with C API support.

Standalone JIT-style runtime for WebAssembly, using Cranelift - Release v0.30.0: Merge pull request #3365 from fitzgen/wasmtime-version-0.30.0 · bytecodealliance/wasmtime

Last updated: Dec 23 2024 at 13:07 UTC