书栈网 · BookStack 本次搜索耗时 0.019 秒,为您找到 603 个相关结果.
  • 5. JSON Output

    559 2020-02-11 《The rustc book》
    JSON Output Diagnostics Artifact notifications JSON Output This chapter documents the JSON structures emitted by rustc . JSON may beenabled with the —error-format=json flag ...
  • 库 库 让我们创建一个库,然后看看如何把它链接到另一个 crate。 pub fn public_function () { println !( "called rary's `public_function()`" ); } fn private_function () { println !( "c...
  • 7.10. xzoom

    494 2020-01-06 《C2Rust Manual》
    xzoom Getting Started Required Manual Changes Required Dependencies Transpiling xzoom Getting Started If the repo submodule appears to be empty or out of date, you may ne...
  • 5.2. Tools You Should Know

    Tools You Should Know Development, Build, and Workflow Orchestration wasm-pack | repository Optimizing and Manipulating .wasm Binaries wasm-opt | repository wasm2js | repository...
  • 11.1. Optimizations: The speed size tradeoff

    Optimizations: the speed size tradeoff No optimizations Optimizing dependencies Optimize for speed Optimize for size Optimizations: the speed size tradeoff Everyone wants t...
  • extern crate

    extern crate extern crate 链接一个 crate 到这个新库,必须使用 extern crate 声明。这不仅会链接库,还会导入与库名相同的模块里面的所有项。适用于模块的可见性规则也适用于库。 // 链接到 `library`(库),导入 `rary` 模块里面的项 extern crate rary ; ...
  • IDE支持:Idea

    2602 2018-04-27 《Rust学习笔记》
    IDE支持:Idea 升级idea 安装插件 安装标准库 IDE支持:Idea IntelliJ Rust插件提供对rust的支持。 https://intellij-rust.github.io/ 升级idea 按照建议,升级idea到最近版本,避免因为版本低造成问题。 安装插件 在Idea的插件中选择”Browse repo...
  • 7.1. Packages and Crates

    Packages and Crates Packages and Crates The first parts of the module system we’ll cover are packages and crates. A crate is the smallest amount of code that the Rust compiler...
  • 3.16.2. WebAssembly support

    WebAssembly support WebAssembly support for emscripten for wasm32-unknown-unknown Rust has gained support for WebAssembly , meaningthat you can run Rust code in your brow...
  • 3. Lints

    583 2020-02-11 《The rustc book》
    Lints Lints In software, a "lint" is a tool used to help improve your source code. TheRust compiler contains a number of lints, and when it compiles your code, it willalso run ...