Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加 rustfmtrust-toolchain 相关配置文件 #14

Closed
mlycore opened this issue Nov 6, 2023 · 1 comment · Fixed by #31
Closed

建议增加 rustfmtrust-toolchain 相关配置文件 #14

mlycore opened this issue Nov 6, 2023 · 1 comment · Fixed by #31

Comments

@mlycore
Copy link

mlycore commented Nov 6, 2023

如题,通过增加 rust-toolchain 文件指定工具链版本,以及通过 rustfmt.toml 提供代码风格检查。这样可以帮助其他开发者快速上手项目。

rust-toolchain 示例:

nightly-2022-12-15

rustfmt.toml 示例:

edition = "2021"

condense_wildcard_suffixes = true
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
license_template_path = "etc/license.template"
newline_style = "Unix"
reorder_imports = true
report_fixme = "Unnumbered"
trailing_comma = "Vertical"
use_field_init_shorthand = true
use_small_heuristics = "Max"
merge_derives = false
comment_width = 120
@InfoHunter
Copy link
Member

Sure!

@wa5i wa5i linked a pull request Nov 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants