Files
install-action/.rustfmt.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.4 KiB
TOML
Raw Permalink Normal View History

2023-09-27 21:35:58 +09:00
# Rustfmt configuration
# https://github.com/rust-lang/rustfmt/blob/HEAD/Configurations.md
# Rustfmt cannot format long lines inside macros, but this option detects this.
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3391)
error_on_line_overflow = true
# Override the default formatting style.
# See https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repositories/8732/81.
use_small_heuristics = "Max"
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3370)
overflow_delimited_expr = true
2024-03-19 21:01:33 +09:00
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/4991).
2023-09-27 21:35:58 +09:00
imports_granularity = "Crate"
2024-03-19 21:01:33 +09:00
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/5083).
2023-09-27 21:35:58 +09:00
group_imports = "StdExternalCrate"
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/5081).
hex_literal_case = "Upper"
2023-09-27 21:35:58 +09:00
# Apply rustfmt to more places.
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3348).
format_code_in_doc_comments = true
# Automatically fix deprecated style.
use_field_init_shorthand = true
use_try_shorthand = true
# Set the default settings again to always apply the proper formatting without
# being affected by the editor settings.
2023-10-02 02:17:39 +09:00
edition = "2021"
2025-02-23 22:32:18 +09:00
style_edition = "2024"
2023-09-27 21:35:58 +09:00
hard_tabs = false
newline_style = "Unix"
tab_spaces = 4