gpt4 book ai didi

How to build a crate to a different target with the cargo crate?(如何用一个板条箱来建造一个不同的目标货物板条箱?)

转载 作者:bug小助手 更新时间:2023-10-24 20:23:48 28 4
gpt4 key购买 nike



I am using the cargo crate to build a rust project using the cargo::ops::compile() function. I also have a custom target in a json file.

我正在使用Cargo::Ops::Compile()函数使用Cargo::Ops::Compile()函数构建铁锈项目。我在一个json文件中也有一个定制目标。


How do I use that target file to build the project to the correct target? Is there a place for a target in the CompileOptions struct? I know that there is rustc_target_args in that struct, do I have to manually convert my target to a list of rustc arguments?

如何使用目标文件将项目构建到正确目标?CompileOptions结构中是否有目标的位置?我知道该结构中有rustc_Target_args,我是否必须手动将目标转换为一组rustc参数?


更多回答
优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com