自动应用 rustc 提出的建议

时间:2021-06-28 17:50:20
【文件属性】:
文件名称:自动应用 rustc 提出的建议
文件大小:36KB
文件格式:ZIP
更新时间:2021-06-28 17:50:20
rust cli cargo hacktoberfest 生锈这个工具的目标是阅读和应用 rustc 提出的建议。当前状态目前,rustfix 分为两个板条箱:rustfix ,一个以rustc输出的格式使用和应用建议的库和cargo-fix ,一个二进制文件,用作货物子命令,最终用户将用来修复他们的代码。rustfix 的魔力完全依赖于在 Rust 编译器(和外部 lints,如clippy )中实现的诊断。安装要使用 rustfix 库,请将其添加到Cargo.toml 。要让工具自动修复警告,请运行cargo install cargo-fix 。这将为您提供cargo fix 。使用cargo fix过渡到 Rust 2018有关如何使用此工具将 crate 转换为 Rust 2018 的说明可以在 Rust 版本指南中找到。执照获得许可Apache 许可证,版本 2.0,(LICENSE-APACHE或http://www.apache.org/licenses/LICENSE-2.0 )MIT 许可证(LICENSE-MIT或http://opensource.org/licenses/MIT )在您的选择。贡献除非您另有明确说明
【文件预览】:
rustfix-master
----LICENSE-MIT(1KB)
----proptest-regressions()
--------replace.txt(472B)
----Cargo.toml(714B)
----.github()
--------workflows()
----Readme.md(1KB)
----.gitmodules(0B)
----src()
--------lib.rs(8KB)
--------replace.rs(10KB)
--------diagnostics.rs(3KB)
----LICENSE-APACHE(11KB)
----examples()
--------fix-json.rs(1KB)
----.editorconfig(415B)
----tests()
--------edge_cases.rs(795B)
--------parse_and_replace.rs(7KB)
--------everything()
--------edge-cases()
--------edition()
----.gitignore(149B)
----Changelog.md(2KB)

网友评论