From e2a0bcbf1dbd156eb1b804a27b4d93c836bbb8c3 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Fri, 5 Jun 2026 01:07:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=93=BE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cargo/config.toml | 2 ++ rust-toolchain.toml | 3 +++ rustfmt.toml | 1 + 3 files changed, 6 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 rust-toolchain.toml create mode 100644 rustfmt.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..0eb087ef --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-D", "warnings"] diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..d0ead5ec --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "stable" +components = ["clippy", "rustfmt"] diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..758d4179 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +max_width = 100