I have .cargo/config.toml
with following:
[unstable]
unstable-options = true
build-std = ["core", "alloc"]
But I need build-std
only for one target (e.g. thumbv7em-none-eabihf
).
Is there any way to declare it specifically for a target?
It could be something like this:
# wrong example, doesn't work apparently
[target.thumbv7em-none-eabihf.unstable]
build-std = ["core", "alloc"]
Note, I’m talking about configs only, I know how to configure it with cargo execution arguments. That’s needed to automatically ignore build-std
for targets other then mentioned, e.g. default host target.