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 ;)
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.
Last updated: Nov 22 2024 at 17:03 UTC