书栈网 · BookStack 本次搜索耗时 0.018 秒,为您找到 587 个相关结果.
  • crate

    crate crate crate(中文有“包,包装箱”之意)是 Rust 中的编译单元。不管什么时候调用 rustc some_file.rs ,some_file.rs 都被当作 crate 文件 。如果 some_file.rs 里面含有 mod 声明,那么模块文件的内容将在运行编译器之前与 crate 文件合并。换句话说, 模块不会 单...
  • Crates

    Crates Crates A crate is a compilation unit in Rust. Whenever rustc some_file.rs is called,some_file.rs is treated as the crate file. If some_file.rs has mod declarations in...
  • 使用目标三元组描述目标平台

    使用目标三元组描述目标平台 目标三元组 JSON 描述文件 使用目标三元组描述目标平台 代码 cargo 在编译项目时,可以附加目标参数 --target <target triple> 设置项目的目标平台。平台包括硬件和软件支持,事实上,目标三元组(target triple) 包含:cpu 架构、供应商、操作系统和 ABI 。 安...
  • 4. Codegen options

    752 2020-02-11 《The rustc book》
    Codegen options ar linker link-arg link-args linker-flavor link-dead-code lto linker-plugin-lto target-cpu target-feature passes llvm-args save-temps rpath overflow-c...
  • Hello World

    Hello World Activity Hello World This is the source code of the traditional Hello World program. // This is a comment, and will be ignored by the compiler // You can test t...
  • 6.1.编译器插件

    编译器插件 介绍 语法扩展 提示与技巧 Lint 插件 编译器插件 compiler-plugins.md commit 28548db57d0acbc00ee80b43816953dbe31d53ba 介绍 rustc 可以加载编译器插件,它是由用户提供的库用来扩充编译器的行为,例如新的语法扩展,lint检查等。 一个插件是带...
  • Setting up a development environment

    757 2019-06-07 《Discovery》
    Setting up a development environment Documentation Tools rustc & Cargo itmdump cargo-binutils OS specific instructions Setting up a development environment Dealing wit...
  • Windows安装

    4897 2018-04-27 《Rust学习笔记》
    windows安装 安装vs2015 安装rust 配置 验证 windows安装 安装vs2015 在安装rust之前,windows平台上需要先安装 Microsoft C++ build tools,推荐2015版本。不过不安装,后面在编译时,会报错说”link.exe”无法找到。 note : the msvc targets...
  • 编译器参数

    1970 2018-02-06 《RustPrimer 中文版》
    编译器参数 编译器参数 本章将介绍Rust编译器的参数。 Rust编译器程序的名字是rustc ,使用它的方法很简单: $ rustc [ OPTIONS ] INPUT 其中,[OPTIONS] 表示编译参数,而INPUT 则表示输入文件。而编译参数有以下可选: -h, --help - 输出帮助信息到标准输出; --cf...
  • crate

    crate crate crate(中文有 “包,包装箱” 之意)是 Rust 的编译单元。当调用 rustc some_file.rs 时,some_file.rs 被当作 crate 文件 。如果 some_file.rs 里面含有 mod 声明,那么模块文件的内容将在编译之前被插入 crate 文件的相应声明处。换句话说,模 块不会...