【问题标题】:Where can I find the corresponding documentation for the Rust target specification format?我在哪里可以找到 Rust 目标规范格式的相应文档?
【发布时间】:2018-07-31 10:56:48
【问题描述】:

我正在为thumbv7em-none-eabihf 目标构建一个应用程序。

我想了解运行以下命令时得到的 JSON 中描述的字段:

rustc +nightly -Z unstable-options --print target-spec-json --target thumbv7em-none-eabihf

在哪里可以找到官方对应的文档?

【问题讨论】:

  • 给那些试图结束这个问题的人的说明:Requests for an official resource are fine. 只要我们坚持规范内容,这个问题就可以变得有用而不会成为垃圾的来源。
  • @E_net4 我认为元帖子比聊天记录的链接更权威;你能找到一个吗?否则,这似乎只是 Shog 的意见。

标签: rust


【解决方案1】:

official documentation

Struct rustc_target::spec::Target
Struct rustc_target::spec::TargetOptions

是相应的定义。

【讨论】:

  • @Tyfingr 这正是我想要的。在 Target & TargetOptions 的文档中,我列出了我可以在 JSON 中拥有的所有可能值以及一些简短信息。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-11-11
  • 2014-12-07
  • 1970-01-01
  • 2023-04-10
  • 2022-09-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多