Skip to content

Commit 6d35834

Browse files
committed
Add Rustfmt config.
1 parent 8fc2218 commit 6d35834

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

rust/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[workspace]
2+
resolver = "2"
3+
members = ["server", "api", "impls"]
4+
default-members = ["server"]
5+
6+
[profile.release]
7+
panic = "abort"
8+
opt-level = 3
9+
lto = true
10+
11+
[profile.dev]
12+
panic = "abort"

rust/rustfmt.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use_small_heuristics = "Max"
2+
fn_params_layout = "Compressed"
3+
hard_tabs = true
4+
use_field_init_shorthand = true
5+
max_width = 100
6+
match_block_trailing_comma = true
7+
# UNSTABLE: format_code_in_doc_comments = true
8+
# UNSTABLE: overflow_delimited_expr = true
9+
# UNSTABLE: comment_width = 100
10+
# UNSTABLE: format_macro_matchers = true
11+
# UNSTABLE: format_strings = true
12+
# UNSTABLE: group_imports = "StdExternalCrate"

0 commit comments

Comments
 (0)