You can set rusty flags for all collections or for each purpose in your .cargo/config file.
[build] # or [target.$triple] rustflags = ["-Ccodegen-units=4"]
To be clear, this will set the code units for all of your projects (covered by this .cargo / config) regardless of profile.
To make sure that it is actually installed, you can also set verbose output in the same file. This will show each rustc command with flags that cause loads.
[term] verbose = true
source share