rust - Specific profiles for workspace members -


is possible specify specific profiles members of workspace? if write profile member cargo.toml get:

warning: profiles non root package ignored, specify profiles @ workspace root:

i tried put specific profile workspace root's cargo.toml:

[profile.release] opt-level = 3  [profile.release.hal] # optimizer kills assembly code opt-level = 1 

however, seems ignored too, applied options in the verbose output show:

running `rustc --crate-name hal src/hal/lib.rs --crate-type lib -c opt-level=3 --emit=dep-info,link [...]

is there other way beside avoiding workspaces @ all?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -