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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Rustfmt Configuration for ZeroPool
# High-performance, thread-safe buffer pool library
# Edition: 2021 | Style: Stable Rust features only
# =============================================================================
# Edition & Language Features
# =============================================================================
= "2021"
# =============================================================================
# Line Width & Wrapping
# =============================================================================
# Standard Rust community default
= 100
# Use small heuristics for better formatting decisions
= "Default"
# =============================================================================
# Import Organization
# =============================================================================
# Reorder imports alphabetically
= true
# Reorder module declarations
= true
# =============================================================================
# Formatting Style
# =============================================================================
# Newline style
= "Unix"
# Use spaces for indentation (standard Rust)
= false
= 4
# =============================================================================
# Arrays & Collections
# =============================================================================
# Array formatting
= 80
# Method chain formatting
= 80
# =============================================================================
# Functions
# =============================================================================
# Put function parameters on separate lines if too long
= "Tall"
= 80
# =============================================================================
# Type Annotations
# =============================================================================
# Use short array notation where possible
= true
# Use try shorthand (?)
= true
# =============================================================================
# Other Settings
# =============================================================================
# Struct literal formatting
= 40
# =============================================================================
# NOTES FOR DEVELOPERS
# =============================================================================
#
# This configuration uses only stable rustfmt features to avoid warnings.
# For more advanced formatting options, consider using nightly Rust with
# `rustup override set nightly` in this directory.
#
# Running rustfmt:
# - Format entire project: cargo fmt
# - Check without modifying: cargo fmt -- --check
# - Format specific file: rustfmt src/file.rs
#
# Disabling formatting (use sparingly):
# - Single line: #[rustfmt::skip]
# - Only use for: ASCII art, manual alignment tables
#