From c9b8424bd1acba8836468fa8053861bf5f42bb80 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 20 Jun 2026 12:50:33 +0300 Subject: [PATCH] meta: set up linters and rustfmt Signed-off-by: NotAShelf Change-Id: I554f12c5ce67d41aea3b7559e5536b6f6a6a6964 --- .clippy.toml | 1 + .deny.toml | 27 +++++++++++++++++++++++++++ .rustfmt.toml | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 .clippy.toml create mode 100644 .deny.toml create mode 100644 .rustfmt.toml diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 0000000..83d78ba --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +msrv = "1.95" diff --git a/.deny.toml b/.deny.toml new file mode 100644 index 0000000..995965f --- /dev/null +++ b/.deny.toml @@ -0,0 +1,27 @@ +[advisories] +version = 2 +yanked = "deny" + +[licenses] +version = 2 +allow = [ + "EUPL-1.2", + "MIT", + "Apache-2.0", + "Apache-2.0 WITH LLVM-exception", + "BSD-2-Clause", + "BSD-3-Clause", + "ISC", + "Unicode-3.0", + "Unicode-DFS-2016", + "Zlib", + "MPL-2.0", +] + +[bans] +multiple-versions = "warn" +wildcards = "allow" + +[sources] +unknown-registry = "deny" +unknown-git = "deny" diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..ed49ca7 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,2 @@ +edition = "2024" +max_width = 100