Add rustfmt used for this project

This commit is contained in:
Benjamin Brittain 2020-02-06 10:59:28 -05:00
parent 154e4fe7ec
commit 6e8c8f5ca5

15
rustfmt.toml Normal file
View File

@ -0,0 +1,15 @@
# Fuchsia Format Style
# last reviewed: Jan 29, 2019
# Fuchsia uses 2018 edition only
edition = "2018"
# The "Default" setting has a heuristic which splits lines too aggresively.
# We are willing to revisit this setting in future versions of rustfmt.
# Bugs:
# * https://github.com/rust-lang/rustfmt/issues/3119
# * https://github.com/rust-lang/rustfmt/issues/3120
use_small_heuristics = "Max"
# Prevent carriage returns
newline_style = "Unix"