We know that it can be configured in .cargo/config.toml
[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["optimize_for_size", "panic_immediate_abort"]
This configuration ensures that the compilation options during code distribution are consistent with the design time
But I hope to develop in the IDE, so there will be some problems:
The unstable
option is effective for all profiles, but the dev
/test
profile requires panic=unwind
for testing to ensure quick positioning of problems.
so ,is there a way to make [unstable]
only valid for profile.release