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?
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!
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?
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)
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