-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
34 lines (26 loc) · 793 Bytes
/
rustfmt.toml
File metadata and controls
34 lines (26 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SPDX-FileCopyrightText: © 2025 StreamKit Contributors
#
# SPDX-License-Identifier: MPL-2.0
# Rustfmt configuration for StreamKit
# See: https://rust-lang.github.io/rustfmt/
# Use Rust 2021 edition formatting
edition = "2021"
# Line width
max_width = 100
# Use small heuristics for better formatting
use_small_heuristics = "Max"
# Control flow formatting
match_block_trailing_comma = true
# Macro formatting
use_field_init_shorthand = true
# Misc
newline_style = "Unix"
# Note: The following options require nightly Rust:
# - imports_granularity = "Crate"
# - group_imports = "StdExternalCrate"
# - wrap_comments = true
# - normalize_comments = true
# - overflow_delimited_expr = true
# - fn_params_layout = "Tall"
#
# To use these features, switch to nightly in rust-toolchain.toml