Stream: wasmtime

Topic: Cargo Component Profiles


view this post on Zulip Ashanti Mutinta (Jul 23 2024 at 19:55):

Is it possible to have profiles for Cargo Component? E.g Would like to have a certain world for release profile vs one for a test profile?

view this post on Zulip Ashanti Mutinta (Jul 24 2024 at 13:06):

Tangentially I think I have also discovered define_unknown_imports_as_traps is available for Modules and Components when using the crate but not in the CLI. I can push a MR later today that adds support if you would like!

view this post on Zulip Victor Adossi (Jul 24 2024 at 16:04):

I think the profile support for Cargo (https://doc.rust-lang.org/cargo/reference/profiles.html) wouldn't allow for changing metadata right now, and I don't think a custom version of that feature exists in cargo component (though it could!)

Maybe it's worth making a feature request in the cargo component repo?

A Cargo subcommand for creating WebAssembly components based on the component model proposal. - bytecodealliance/cargo-component

view this post on Zulip Victor Adossi (Jul 24 2024 at 16:05):

Also making an issue related to the unknown_imports_as_traps might be great too (and you can make the PR to resolve it real quick to accompany that)

view this post on Zulip Ashanti Mutinta (Jul 24 2024 at 16:07):

Victor Adossi said:

I think the profile support for Cargo (https://doc.rust-lang.org/cargo/reference/profiles.html) wouldn't allow for changing metadata right now, and I don't think a custom version of that feature exists in cargo component (though it could!)

Maybe it's worth making a feature request in the cargo component repo?

Awesome thank you very much!


Last updated: Dec 23 2024 at 13:07 UTC