diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..08891e7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# EditorConfig is awesome: https://editorconfig.org + +# top-most EditorConfig file +root = true + +# Rust files +[*.rs] +# Indentation style +indent_style = space +indent_size = 2 + +# Ensure newline at the end of file +insert_final_newline = true + +# Set charset to UTF-8 +charset = utf-8 + +# End of line character style +end_of_line = lf + +# Trim trailing whitespace +trim_trailing_whitespace = true + +# Format Rust files with rustfmt (when available) +rustfmt = true