summaryrefslogtreecommitdiffhomepage
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-02-06 16:19:41 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-02-21 16:20:32 +0000
commita9345dd46e44a5294340ace1bced48fd6d6225d3 (patch)
tree94da61d34e8ab42524ba3ba8a846fd7086b90d7d /.rustfmt.toml
parent20ada4b5c135862104ca724a6d9d17730286aa82 (diff)
downloadunit-a9345dd46e44a5294340ace1bced48fd6d6225d3.tar.gz
unit-a9345dd46e44a5294340ace1bced48fd6d6225d3.tar.bz2
Add a .rustfmt.toml file
This is used by the rustfmt program to format Rust code according to the rules contained in this file. Currently we just set the line width limit to 80 characters to match our C code. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '.rustfmt.toml')
-rw-r--r--.rustfmt.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 00000000..df99c691
--- /dev/null
+++ b/.rustfmt.toml
@@ -0,0 +1 @@
+max_width = 80