Skip to content

Commit

Permalink
Enable unused_crate_dependencies Rust lint
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Nov 26, 2024
1 parent 0ce55f8 commit 75a1865
Show file tree
Hide file tree
Showing 25 changed files with 79 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ arrow-string = { version = "53.3.0", path = "./arrow-string" }
parquet = { version = "53.3.0", path = "./parquet", default-features = false }

chrono = { version = "0.4.34", default-features = false, features = ["clock"] }

[workspace.lints.rust]
# Using warn level for Rust lints allows compilation within IDE, while still
# enforcing lints on CI.
unused_crate_dependencies = "warn"
3 changes: 3 additions & 0 deletions arrow-arith/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_arith"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-array/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_array"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-avro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_avro"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-buffer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_buffer"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-cast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_cast"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-csv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_csv"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_data"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-flight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }

[lints]
workspace = true

[dependencies]
arrow-arith = { workspace = true, optional = true }
arrow-array = { workspace = true }
Expand Down
3 changes: 3 additions & 0 deletions arrow-flight/gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ repository = { workspace = true }
license = { workspace = true }
publish = false

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions arrow-integration-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_integration_test"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-integration-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ edition = { workspace = true }
publish = false
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
crate-type = ["lib", "cdylib"]

Expand Down
3 changes: 3 additions & 0 deletions arrow-ipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_ipc"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_json"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-ord/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_ord"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-pyarrow-integration-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ edition = "2021"
rust-version = "1.62"
publish = false

[lints]
workspace = true

[lib]
name = "arrow_pyarrow_integration_testing"
crate-type = ["cdylib"]
Expand Down
3 changes: 3 additions & 0 deletions arrow-row/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_row"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_schema"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-select/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_select"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow-string/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
name = "arrow_string"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ include = [
edition = { workspace = true }
rust-version = "1.70.0"

[lints]
workspace = true

[lib]
name = "arrow"
path = "src/lib.rs"
Expand Down
5 changes: 5 additions & 0 deletions object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ keywords = ["object", "storage", "cloud"]
repository = "https://github.com/apache/arrow-rs/tree/master/object_store"
rust-version = "1.64.0"

[lints.rust]
# Using warn level for Rust lints allows compilation within IDE, while still
# enforcing lints on CI.
unused_crate_dependencies = "warn"

[package.metadata.docs.rs]
all-features = true

Expand Down
3 changes: 3 additions & 0 deletions parquet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ readme = "README.md"
edition = { workspace = true }
rust-version = "1.70.0"

[lints]
workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] }

Expand Down
3 changes: 3 additions & 0 deletions parquet_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ readme = "README.md"
edition = { workspace = true }
rust-version = { workspace = true }

[lints]
workspace = true

[lib]
proc-macro = true

Expand Down
3 changes: 3 additions & 0 deletions parquet_derive_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ edition = { workspace = true }
publish = false
rust-version = { workspace = true }

[lints]
workspace = true

[dependencies]
parquet = { workspace = true }
parquet_derive = { path = "../parquet_derive", default-features = false }
Expand Down

0 comments on commit 75a1865

Please sign in to comment.