diff --git a/Cargo.toml b/Cargo.toml index f0290906..449cd661 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/aya-build/Cargo.toml b/aya-build/Cargo.toml index 563ef1ab..888a6cfa 100644 --- a/aya-build/Cargo.toml +++ b/aya-build/Cargo.toml @@ -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 } diff --git a/aya-ebpf-macros/Cargo.toml b/aya-ebpf-macros/Cargo.toml index 57d14dc5..67299202 100644 --- a/aya-ebpf-macros/Cargo.toml +++ b/aya-ebpf-macros/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [lib] proc-macro = true diff --git a/aya-log-common/Cargo.toml b/aya-log-common/Cargo.toml index ca0487de..cc4a78a5 100644 --- a/aya-log-common/Cargo.toml +++ b/aya-log-common/Cargo.toml @@ -11,6 +11,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] num_enum = { workspace = true } diff --git a/aya-log-ebpf-macros/Cargo.toml b/aya-log-ebpf-macros/Cargo.toml index 9bbf1138..4fae2a2f 100644 --- a/aya-log-ebpf-macros/Cargo.toml +++ b/aya-log-ebpf-macros/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] 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 } diff --git a/aya-log-parser/Cargo.toml b/aya-log-parser/Cargo.toml index 65971bdf..76cd5926 100644 --- a/aya-log-parser/Cargo.toml +++ b/aya-log-parser/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya-log-common = { path = "../aya-log-common", version = "^0.1.14", default-features = false } diff --git a/aya-log/Cargo.toml b/aya-log/Cargo.toml index 82ab7585..5bd81c5a 100644 --- a/aya-log/Cargo.toml +++ b/aya-log/Cargo.toml @@ -12,6 +12,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya = { path = "../aya", version = "^0.13.1", features = ["async_tokio"] } aya-log-common = { path = "../aya-log-common", version = "^0.1.15", default-features = false } diff --git a/aya-obj/Cargo.toml b/aya-obj/Cargo.toml index 761f442d..8eb757f7 100644 --- a/aya-obj/Cargo.toml +++ b/aya-obj/Cargo.toml @@ -12,6 +12,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] bytes = { workspace = true } hashbrown = { workspace = true, default-features = true } diff --git a/aya-tool/Cargo.toml b/aya-tool/Cargo.toml index 55d935a0..578bc4b8 100644 --- a/aya-tool/Cargo.toml +++ b/aya-tool/Cargo.toml @@ -10,6 +10,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] bindgen = { workspace = true, default-features = true } clap = { workspace = true, default-features = true, features = ["derive"] } diff --git a/aya/Cargo.toml b/aya/Cargo.toml index 73454060..ff7087db 100644 --- a/aya/Cargo.toml +++ b/aya/Cargo.toml @@ -12,6 +12,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] assert_matches = { workspace = true } async-io = { workspace = true, optional = true } diff --git a/ebpf/aya-ebpf-bindings/Cargo.toml b/ebpf/aya-ebpf-bindings/Cargo.toml index d36f9456..e3e42170 100644 --- a/ebpf/aya-ebpf-bindings/Cargo.toml +++ b/ebpf/aya-ebpf-bindings/Cargo.toml @@ -8,5 +8,8 @@ repository.workspace = true homepage.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" } diff --git a/ebpf/aya-ebpf-cty/Cargo.toml b/ebpf/aya-ebpf-cty/Cargo.toml index 143fb8fe..fb13b1e6 100644 --- a/ebpf/aya-ebpf-cty/Cargo.toml +++ b/ebpf/aya-ebpf-cty/Cargo.toml @@ -10,3 +10,6 @@ repository.workspace = true homepage.workspace = true rust-version.workspace = true edition.workspace = true + +[lints] +workspace = true diff --git a/ebpf/aya-ebpf/Cargo.toml b/ebpf/aya-ebpf/Cargo.toml index 8c9e00fb..b6c16e38 100644 --- a/ebpf/aya-ebpf/Cargo.toml +++ b/ebpf/aya-ebpf/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" } aya-ebpf-macros = { version = "^0.1.1", path = "../../aya-ebpf-macros" } diff --git a/ebpf/aya-log-ebpf/Cargo.toml b/ebpf/aya-log-ebpf/Cargo.toml index 83b8e753..03e947e1 100644 --- a/ebpf/aya-log-ebpf/Cargo.toml +++ b/ebpf/aya-log-ebpf/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya-ebpf = { version = "^0.1.1", path = "../aya-ebpf" } aya-log-common = { version = "^0.1.15", path = "../../aya-log-common" } diff --git a/init/Cargo.toml b/init/Cargo.toml index 10576f96..50915cad 100644 --- a/init/Cargo.toml +++ b/init/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] anyhow = { workspace = true, features = ["std"] } nix = { workspace = true, features = ["fs", "mount", "reboot"] } diff --git a/test/integration-common/Cargo.toml b/test/integration-common/Cargo.toml index 94a63068..756fa216 100644 --- a/test/integration-common/Cargo.toml +++ b/test/integration-common/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya = { path = "../../aya", optional = true } diff --git a/test/integration-ebpf/Cargo.toml b/test/integration-ebpf/Cargo.toml index b1a75564..c99e2cef 100644 --- a/test/integration-ebpf/Cargo.toml +++ b/test/integration-ebpf/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] aya-ebpf = { path = "../../ebpf/aya-ebpf" } aya-log-ebpf = { path = "../../ebpf/aya-log-ebpf" } diff --git a/test/integration-test/Cargo.toml b/test/integration-test/Cargo.toml index 61b7a193..5c327543 100644 --- a/test/integration-test/Cargo.toml +++ b/test/integration-test/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] anyhow = { workspace = true, features = ["std"] } assert_matches = { workspace = true } diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index ac64c5a8..25b2945b 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -9,6 +9,9 @@ homepage.workspace = true rust-version.workspace = true edition.workspace = true +[lints] +workspace = true + [dependencies] anyhow = { workspace = true, features = ["std"] } aya-tool = { path = "../aya-tool", version = "0.1.0", default-features = false }