Skip to content

wasmtime 15.0.0 - how to build a static library? #7567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
osokin opened this issue Nov 21, 2023 · 4 comments
Closed

wasmtime 15.0.0 - how to build a static library? #7567

osokin opened this issue Nov 21, 2023 · 4 comments

Comments

@osokin
Copy link

osokin commented Nov 21, 2023

Hi,

I'm using libwasmtime, C API of wasmtime, to build a wasm module for NGINX Unit.
Previously it worked well by specifying crates/c-api/Cargo.toml configuration for cargo.
Since 15.0.0 that doesn't work anymore. Could you guide me how can I build a static library
for the recent version?

Thank you.

@bjorn3
Copy link
Contributor

bjorn3 commented Nov 21, 2023

#7341 changed the layout. Looks like you now have to specify crates/c-api/artifact/Cargo.toml instead.

@osokin
Copy link
Author

osokin commented Nov 21, 2023

Thanks for the quick reply, @bjorn3! That works!

@osokin osokin closed this as completed Nov 21, 2023
@pchickey
Copy link
Contributor

Instead of using --manifest-path whatever/Cargo.toml, use -p wasmtime-c-api for your build scripts to be resilient against these sorts of changes.

@osokin
Copy link
Author

osokin commented Nov 21, 2023

Instead of using --manifest-path whatever/Cargo.toml, use -p wasmtime-c-api for your build scripts to be resilient against these sorts of changes.

Thanks for the update, @pchickey! I'm going to update the build procedure according your recommendations.

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

No branches or pull requests

3 participants