mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-13 14:59:05 +00:00
This is a fresh start for the `artcraft` repo. The old monorepo, which included our web API gateway, job services, SRE tools, various frontends, and more has moved to `artcraft-services` You can find the full git history here: https://github.com/storytold/artcraft-services This change was motivated by the fact that the entire git history was hundreds of gigabytes in size, which is unwieldy for anyone not in the core team that doesn't care about support services outside of the core artcraft app. We wanted to keep this repo in its well-known place since we already have users and activity here. Please update your remotes to either `artcraft-services` or make a fresh clone of this repo. History can be found at the artcraft-services repo.
69 lines
1.8 KiB
TOML
69 lines
1.8 KiB
TOML
# Storyteller rustfmt rules
|
|
# (Not yet happy with these.)
|
|
|
|
# Four spaces is excessive in any language.
|
|
# Conserve horizontal space for small laptop screens.
|
|
tab_spaces = 2
|
|
|
|
# Only Unix
|
|
newline_style = "Unix"
|
|
|
|
# NB(bt,2023-08-21): This is still nightly-only. Disabled.
|
|
# # We won't change any vendor code.
|
|
# # Note: This appears not to work in stable, so it's necessary to run `cargo +nightly fmt`.
|
|
# ignore = [
|
|
# "vendor"
|
|
# ]
|
|
|
|
# NB(bt,2023-08-21): This is still nightly-only. Disabled.
|
|
# # Item-level imports makes for better diffs and fewer merge conflicts.
|
|
# # Another suitable option is "Module", but that's not the default either.
|
|
# # (This is commented out for now to reduce the first round of rustfmt diffs, but will be enabled.)
|
|
# imports_granularity = "Item"
|
|
|
|
# NB(bt,2023-08-21): This is still nightly-only. Disabled.
|
|
# # It's better to keep stdlib, crate (self), and external crates separate.
|
|
# # (This is commented out for now to reduce the first round of rustfmt diffs, but will be enabled.)
|
|
# group_imports = "StdExternalCrate"
|
|
|
|
# The default is wrong
|
|
match_block_trailing_comma = true
|
|
|
|
# 'try!' shouldn't exist in our codebase.
|
|
use_try_shorthand = true
|
|
|
|
# MAYBE
|
|
#struct_lit_single_line = true
|
|
|
|
# This fixes method chaining.
|
|
# (rustfmt ordinarily puts everything on one line.)
|
|
use_small_heuristics = "Off"
|
|
|
|
# TEMPORARY
|
|
reorder_imports = false
|
|
reorder_modules = false
|
|
merge_derives = false
|
|
remove_nested_parens = false
|
|
use_field_init_shorthand = false
|
|
|
|
#struct_lit_single_line = false
|
|
|
|
|
|
#width_heuristics = "Off"
|
|
array_width = 1000
|
|
attr_fn_like_width = 1000
|
|
chain_width = 1000
|
|
fn_call_width = 1000
|
|
max_width = 1000
|
|
single_line_if_else_max_width = 1000
|
|
struct_lit_width = 1000
|
|
struct_variant_width = 1000
|
|
|
|
#blank_lines_upper_bound = 1000
|
|
|
|
#match_arm_blocks = false
|
|
#max_width = 180 # default 100
|
|
#chain_width = 10
|
|
|
|
|