From 63fae87f888f4d2d0525c9c9b326fe2a828b2bad Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 1 Feb 2026 16:54:54 +0000 Subject: [PATCH] Add rules --- server-rs/Cargo.toml | 6 +++++- server-rs/clippy.toml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 server-rs/clippy.toml diff --git a/server-rs/Cargo.toml b/server-rs/Cargo.toml index 336e723..fd0d22b 100644 --- a/server-rs/Cargo.toml +++ b/server-rs/Cargo.toml @@ -4,9 +4,10 @@ version = "0.1.0" edition = "2021" [dependencies] +anyhow = "1" clap = { version = "4", features = ["derive"] } axum = "0.8" -tower-http = { version = "0.6", features = ["cors", "fs", "compression-gzip", "trace"] } +tower-http = { version = "0.6", features = ["cors", "fs", "compression-gzip", "compression-zstd", "trace"] } tokio = { version = "1", features = ["full"] } polars = { version = "0.46", features = ["parquet", "lazy", "dtype-struct", "dtype-u8", "dtype-u16", "dtype-i8", "dtype-i16"] } h3o = "0.7" @@ -17,6 +18,9 @@ rustc-hash = "2" tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } +[lints.clippy] +min_ident_chars = "warn" + [profile.dev] opt-level = 1 diff --git a/server-rs/clippy.toml b/server-rs/clippy.toml new file mode 100644 index 0000000..5f216f8 --- /dev/null +++ b/server-rs/clippy.toml @@ -0,0 +1 @@ +allowed-idents-below-min-chars = ["i", "j", "k", "_"]