In practice this will forbid unused dependencies because we run clippy with `--deny warnings`. Workspace lints is a nice place to ratchet up lints through the codebase all at once and consistently.
@@ -103,6 +103,9 @@ tokio = { version = "1.24.0", default-features = false }
which = { version = "7.0.0", default-features = false }
xdpilone = { version = "1.0.5", default-features = false }
+[workspace.lints.rust]
+unused-extern-crates = "warn"
+
[profile.release.package.integration-ebpf]
debug = 2
codegen-units = 1
@@ -9,6 +9,9 @@ homepage.workspace = true
rust-version.workspace = true
edition.workspace = true
+[lints]
+workspace = true
[dependencies]
anyhow = { workspace = true, default-features = true }
cargo_metadata = { workspace = true }
[lib]
proc-macro = true
@@ -11,6 +11,9 @@ homepage.workspace = true
num_enum = { workspace = true }
aya-log-common = { path = "../aya-log-common", version = "^0.1.14", default-features = false }
aya-log-parser = { path = "../aya-log-parser", version = "^0.1.13", default-features = false }
@@ -12,6 +12,9 @@ homepage.workspace = true
aya = { path = "../aya", version = "^0.13.1", features = ["async_tokio"] }
aya-log-common = { path = "../aya-log-common", version = "^0.1.15", default-features = false }
bytes = { workspace = true }
hashbrown = { workspace = true, default-features = true }
@@ -10,6 +10,9 @@ homepage.workspace = true
bindgen = { workspace = true, default-features = true }
clap = { workspace = true, default-features = true, features = ["derive"] }
assert_matches = { workspace = true }
async-io = { workspace = true, optional = true }
@@ -8,5 +8,8 @@ repository.workspace = true
homepage.workspace = true
aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" }
@@ -10,3 +10,6 @@ repository.workspace = true
aya-ebpf-macros = { version = "^0.1.1", path = "../../aya-ebpf-macros" }
aya-ebpf = { version = "^0.1.1", path = "../aya-ebpf" }
aya-log-common = { version = "^0.1.15", path = "../../aya-log-common" }
anyhow = { workspace = true, features = ["std"] }
nix = { workspace = true, features = ["fs", "mount", "reboot"] }
aya = { path = "../../aya", optional = true }
aya-ebpf = { path = "../../ebpf/aya-ebpf" }
aya-log-ebpf = { path = "../../ebpf/aya-log-ebpf" }
aya-tool = { path = "../aya-tool", version = "0.1.0", default-features = false }