rust-playground
rust-playground copied to clipboard
Allow upload of rustfmt.toml
Sometimes we have to style the code accordingly with other practices besides the default rustfmt.toml.
If we could upload a config file rustfmt.toml and then format the code based on it, that would be very useful.
One such example would be:
# rustfmt style by drbeco 2022-10-31
#
# unstable available in nightly channel
reorder_impl_items = true
combine_control_expr = false
brace_style = "AlwaysNextLine"
control_brace_style = "AlwaysNextLine"
where_single_line = true
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true
format_code_in_doc_comments = true
# stable available in all toolchains
fn_args_layout = "Compressed"
match_block_trailing_comma = true
newline_style = "Unix"
single_line_if_else_max_width = 0
Thanks for considering this option.