mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-16 06:02:27 +02:00
- Add Makefile to simplify installing required tools - Add CONTRIBUTING.md welcome new contributors - Add fmt, lint, test tasks to makefile and update CONTRIBUTING.md - Add CI workflow - Log with local date
30 lines
872 B
TOML
30 lines
872 B
TOML
unstable_features = true
|
|
# --- Space-Saving Configuration ---
|
|
|
|
# Max line length before wrapping (default is 100)
|
|
max_width = 120
|
|
|
|
# Maximize single-line formatting for structs, enums, and matches
|
|
use_small_heuristics = "Max"
|
|
|
|
# Allow rustfmt to format the content of macros (Unstable)
|
|
# This helps keeping logs on one line if they fit
|
|
format_macro_bodies = true
|
|
|
|
# Allow simple functions to stay on one line (e.g., getters)
|
|
fn_single_line = true
|
|
|
|
# Allow struct literals to be formatted on a single line
|
|
struct_lit_single_line = true
|
|
|
|
# Consolidate imports from the same crate into a single line
|
|
imports_granularity = "Crate"
|
|
|
|
# Group all imports into a single block
|
|
group_imports = "One"
|
|
|
|
# Keep opening braces on the same line as 'where' clauses
|
|
brace_style = "SameLineWhere"
|
|
|
|
# Format empty items (like empty impl blocks) on a single line
|
|
empty_item_single_line = true |