root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = tab
indent_style = tab
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

# https://doc.rust-lang.org/nightly/style-guide/index.html#formatting-conventions
[*.rs]
indent_size = 4
indent_style = space
max_line_length = 100

[*.nix]
indent_size = 2
indent_style = space
max_line_length = 100

[*.{env*,toml}]
indent_size = 2
indent_style = space

# https://doc.rust-lang.org/nightly/style-guide/cargo.html#formatting-conventions
[Cargo.toml]
indent_size = 4
indent_style = space
max_line_length = 100
