-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
35 lines (30 loc) · 1.75 KB
/
rustfmt.toml
File metadata and controls
35 lines (30 loc) · 1.75 KB
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
# 🚀 Genel Formatlama Kuralları for nightly edition
#
# rustup run nightly cargo fmt
#
# 🚀 Genel Ayarlar
edition = "2024" # Rust 2021 edition
max_width = 80 # Satır uzunluğu sınırı
#use_small_heuristics = "Off" # Küçük kod bloklarını tek satırda tutmaya çalış
#use_small_heuristics = "Default" # Küçük kod bloklarını tek satırda tutmaya çalış
use_small_heuristics = "Max" # Küçük kod bloklarını tek satırda tutmaya çalış
hard_tabs = false # Boşluk yerine tab kullanımı (false: boşluk)
tab_spaces = 4 # Bir tab = 4 boşluk
# 📌 Fonksiyon ve Parametreler
fn_params_layout = "Vertical" # Place each function parameter on a new line if the line is too long
where_single_line = false # `where` ifadelerini tek satıra sığdırma
#where_style = "Rfc" # where rfcx
# 🔗 Import'ları Sıralama
# 🎨 Kod Düzeni
reorder_impl_items = true # `impl` içindeki öğeleri sıralı hale getir
trailing_comma = "Never" # Son satırlarda virgül ekleme düzeni
force_explicit_abi = true # Harici fonksiyon çağırmalarında ABI belirt
wrap_comments = false # Yorum satırlarını otomatik olarak satır sınırına göre sar
# 🏗 Struct ve Enum’lar
struct_lit_width = 80 # Struct literal'lerinde satır genişliği limiti
struct_field_align_threshold = 0 # Struct alanlarını hizalama eşiği
enum_discrim_align_threshold = 0 # Enum değerlerini hizalama eşiği
#imports_granularity = "Crate" # `use` ifadelerini crate bazında grupla
imports_granularity = "Module"
group_imports = "StdExternalCrate" # Import'ları sıralı hale getir
reorder_imports = true # Import'ları alfabetik olarak sırala