From 19a0d4be8e304907c227b50ddded062cd09889c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BC=AC=EF=BC=B6=EF=BC=A3=20=CE=9B?= Date: Sat, 8 Feb 2025 20:22:46 +0100 Subject: [PATCH] Set editorconfig Added the properties to configure EditorConfig plugin for Rust language Signed-off-by: Luca Canessa --- .editorconfig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .editorconfig 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