1. 首页
  2. 数据库
  3. 其它
  4. duplicate:容易的代码重复替换了Rust 源码

duplicate:容易的代码重复替换了Rust 源码

上传者: 2021-04-07 06:28:21上传 ZIP文件 54.32KB 热度 3次
复制 属性宏,用于代码替换(带替换)。 本文档仅供板条箱的撰稿人使用。 该文档托管在。 测验 设置 此板条箱使用测试扩展。 因此,在运行这些测试之前,必须与rustfmt和cargo-expand一起安装每晚编译器: cargo install cargo-expand rustup toolchain install nightly rustup component add rustfmt 然后可以使用cargo test正常运行cargo test ,如下所示。 测试分为以下几组: no_features :测试未启用任何功能的包装箱的最小API。 cargo test --no-default-features -- --skip default_features:: default_features :测试默认情况下是否启用了正确的功能。 这是为了确保更改不会更改默认情
下载地址
用户评论