Skip to content

Commit

Permalink
Adding .editorconfig and rustfmt.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
oestradiol committed Sep 13, 2024
1 parent 49184ea commit 8c78f3e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
max_line_length = 100
15 changes: 15 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Rustfmt configuration file

# Set the maximum line width
max_width = 100

# Use 4 spaces for indentation
tab_spaces = 4

# Use the default set of rules
# Uncomment the following line to enable custom rules
# custom_rules = true

## Nightly only, but preferrable
# brace_style = "PreferSameLine"
# enum_discrim_align_threshold = 30

0 comments on commit 8c78f3e

Please sign in to comment.