Skip to content

Commit 35ca909

Browse files
committed
feat: implement comprehensive coding standards for TeachLink project
1 parent 8838747 commit 35ca909

File tree

5 files changed

+3569
-0
lines changed

5 files changed

+3569
-0
lines changed

.rustfmt.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# TeachLink Rust Formatting Configuration
2+
# This file ensures consistent code formatting across the project
3+
4+
# Basic formatting
5+
max_width = 100
6+
hard_tabs = false
7+
tab_spaces = 4
8+
9+
# Import organization
10+
reorder_imports = true
11+
reorder_modules = true
12+
13+
# Function formatting
14+
fn_args_layout = "Compressed"
15+
fn_single_line = false
16+
17+
# Struct and enum formatting
18+
struct_lit_single_line = true
19+
struct_variant_single_line = true
20+
21+
# Match expressions
22+
match_arm_blocks = true
23+
match_arm_leading_pipes = "Never"
24+
25+
# Control flow
26+
blank_lines_upper_bound = 2
27+
blank_lines_lower_bound = 0
28+
29+
# Comments
30+
comment_width = 100
31+
format_strings = true
32+
33+
# Trailing commas
34+
trailing_comma = "Vertical"
35+
trailing_semicolon = true
36+
37+
# Whitespace
38+
normalize_comments = true
39+
normalize_doc_attributes = true
40+
41+
# Indentation
42+
use_small_heuristics = "Max"
43+
44+
# Version
45+
edition = "2021"

0 commit comments

Comments
 (0)