我有一个名为
但是我只需要
有没有办法明确地为一个目标声明它?
可能是这样的:
注意,我只是在谈论配置文件,我知道如何使用cargo执行参数进行配置。这是为了自动忽略除了提到的目标之外的
.cargo/config.toml
的文件,内容如下:[unstable]
unstable-options = true
build-std = ["core", "alloc"]
但是我只需要
build-std
适用于一个目标(例如thumbv7em-none-eabihf
)。有没有办法明确地为一个目标声明它?
可能是这样的:
# wrong example, doesn't work apparently
[target.thumbv7em-none-eabihf.unstable]
build-std = ["core", "alloc"]
注意,我只是在谈论配置文件,我知道如何使用cargo执行参数进行配置。这是为了自动忽略除了提到的目标之外的
build-std
,例如默认的主机目标。
build-std
,例如默认的主机目标。 - Alex Koz.build-std
,例如默认的主机目标。 - Alex Koz.