From 008eff048cd96b2db739195ca5e3a5f60e79fb07 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:56:24 +0000 Subject: [PATCH 01/35] fix: remove unused dependencies from canaries crate --- Cargo.lock | 1 - canaries/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fba46947..17e49b6a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3345,7 +3345,6 @@ dependencies = [ "env_logger 0.11.6", "event-forwarder", "futures", - "hex", "lazy_static", "log", "prometheus 0.14.0", diff --git a/canaries/Cargo.toml b/canaries/Cargo.toml index 558784f5..ddbee716 100644 --- a/canaries/Cargo.toml +++ b/canaries/Cargo.toml @@ -8,7 +8,6 @@ repository.workspace = true edition.workspace = true [dependencies] -hex.workspace = true event-forwarder.workspace = true clap = { workspace = true, features = ["derive", "env"] } tokio = { workspace = true, features = ["full"] } From 40ac0c19d0fd4ba576e7a1599103190e1b9e8ab7 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:56:35 +0000 Subject: [PATCH 02/35] fix: warn on unused dependencies in canaries --- canaries/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/canaries/src/main.rs b/canaries/src/main.rs index ffe16338..a51681cb 100644 --- a/canaries/src/main.rs +++ b/canaries/src/main.rs @@ -1,4 +1,6 @@ //! Canary prototype +#![warn(unused_crate_dependencies)] + /// Prometheus metrics collection and serving. mod metrics; /// Parsing utilities for canary data. From ebfe976099f9d3aeb247900b6e01f24001b2152f Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:57:44 +0000 Subject: [PATCH 03/35] fix: remove unused dependencies from commitment-sql --- Cargo.lock | 3 --- proof-of-sql/commitment-sql/Cargo.toml | 3 --- 2 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 17e49b6a..2af655b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3748,7 +3748,6 @@ name = "commitment-sql" version = "0.1.0" dependencies = [ "ahash 0.8.11", - "const_format", "indexmap 2.8.0", "itertools 0.12.1", "on-chain-table", @@ -3758,8 +3757,6 @@ dependencies = [ "proof-of-sql-static-setups", "proof-of-sql-unversioned", "proptest", - "rand 0.8.5", - "rand_chacha 0.3.1", "rayon", "snafu 0.8.5", "sqlparser", diff --git a/proof-of-sql/commitment-sql/Cargo.toml b/proof-of-sql/commitment-sql/Cargo.toml index 01e73d1f..45759f15 100644 --- a/proof-of-sql/commitment-sql/Cargo.toml +++ b/proof-of-sql/commitment-sql/Cargo.toml @@ -8,7 +8,6 @@ repository.workspace = true edition.workspace = true [dependencies] -const_format.workspace = true ahash.workspace = true indexmap.workspace = true itertools.workspace = true @@ -24,8 +23,6 @@ proptest = { workspace = true, features = ["std"], optional = true } [dev-dependencies] proof-of-sql-static-setups = { workspace = true, features = ["io"] } -rand.workspace = true -rand_chacha.workspace = true primitive-types.workspace = true sxt-core = { workspace = true, features = ["std"] } From b73fd0d243bcce95b5c0008eae3044b954d1e244 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:58:04 +0000 Subject: [PATCH 04/35] fix: warn on unused dependencies in commitment-sql --- proof-of-sql/commitment-sql/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proof-of-sql/commitment-sql/src/lib.rs b/proof-of-sql/commitment-sql/src/lib.rs index a7b7e1f8..685e59a6 100644 --- a/proof-of-sql/commitment-sql/src/lib.rs +++ b/proof-of-sql/commitment-sql/src/lib.rs @@ -1,5 +1,9 @@ #![doc = include_str!("../README.md")] #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr( + all(feature = "proptest", feature = "cpu-perf"), + warn(unused_crate_dependencies) +)] extern crate alloc; From a71e954e91d3dba482ee17a3e3e76f7624f14c38 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:59:20 +0000 Subject: [PATCH 05/35] fix: remove unused dependencies in pallet-indexing --- Cargo.lock | 2 -- pallets/indexing/Cargo.toml | 4 ---- 2 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2af655b6..55a54f44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11287,8 +11287,6 @@ dependencies = [ "arrow 54.2.1", "arrow-ipc-no-std", "commitment-sql", - "hex", - "native", "native-api", "on-chain-table", "pallet-commitments", diff --git a/pallets/indexing/Cargo.toml b/pallets/indexing/Cargo.toml index 5135f293..f8489dae 100644 --- a/pallets/indexing/Cargo.toml +++ b/pallets/indexing/Cargo.toml @@ -27,12 +27,10 @@ pallet-commitments.workspace = true pallet-permissions.workspace = true pallet-tables.workspace = true pallet-system-tables.workspace = true -hex.workspace = true sxt-core.workspace = true native-api = { workspace = true, default-features = false} postcard.workspace = true -proof-of-sql-static-setups = { workspace = true, features = ["io"], optional = true } on-chain-table = { workspace = true, default-features = false } proof-of-sql-commitment-map.workspace = true sqlparser = { workspace = true, optional = true } @@ -43,7 +41,6 @@ snafu.workspace = true polkadot-sdk = { workspace = true, features = ["sp-staking", "frame-election-provider-support", "pallet-staking-reward-curve", "pallet-timestamp", "pallet-balances", "pallet-staking", "sp-core", "sp-io", "sp-runtime"]} proof-of-sql-static-setups = { workspace = true, features = ["io"] } -native.workspace = true arrow.workspace = true proof-of-sql-commitment-map.workspace = true pallet-zkpay.workspace = true @@ -57,7 +54,6 @@ std = [ "polkadot-sdk/std", "codec/std", "scale-info/std", - "native/std", "native-api/std", "on-chain-table/std", "pallet-commitments/std", From 1f2816ce2204480fc83280f04f786f8c8efd5477 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 18:59:32 +0000 Subject: [PATCH 06/35] fix: warn on unused dependencies in pallet-indexing --- pallets/indexing/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/indexing/src/lib.rs b/pallets/indexing/src/lib.rs index 3ea126d6..ff911fe1 100644 --- a/pallets/indexing/src/lib.rs +++ b/pallets/indexing/src/lib.rs @@ -7,6 +7,7 @@ // We make sure this pallet uses `no_std` for compiling to Wasm. #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "runtime-benchmarks", warn(unused_crate_dependencies))] extern crate alloc; extern crate core; From 4349179ed116aebcedf9fc3bfc774aff2ef3c852 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:00:04 +0000 Subject: [PATCH 07/35] fix: remove unused dependencies in pallet-rewards --- Cargo.lock | 3 --- pallets/rewards/Cargo.toml | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 55a54f44..bfa10249 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11899,9 +11899,6 @@ dependencies = [ name = "pallet-rewards" version = "0.1.0" dependencies = [ - "arrow 54.2.1", - "env_logger 0.11.6", - "native", "pallet-commitments", "pallet-permissions", "pallet-tables", diff --git a/pallets/rewards/Cargo.toml b/pallets/rewards/Cargo.toml index f5d4fbd9..eb45a9b8 100644 --- a/pallets/rewards/Cargo.toml +++ b/pallets/rewards/Cargo.toml @@ -22,18 +22,15 @@ scale-info = { features = [ polkadot-sdk = { workspace = true, features = ["frame-benchmarking", "frame-support", "frame-system", "pallet-balances", "pallet-staking", "pallet-session", "sp-staking", "sp-runtime", "sp-core"] } -pallet-commitments.workspace = true [dev-dependencies] proof-of-sql-static-setups = { workspace = true, features = ["io"] } polkadot-sdk = { workspace = true, features = ["pallet-balances", "pallet-staking", "sp-authority-discovery", "sp-consensus-babe", "sp-runtime", "sp-staking", "frame-election-provider-support", "pallet-staking-reward-curve", "pallet-authorship", "pallet-timestamp", "pallet-grandpa", "pallet-babe", "pallet-authority-discovery", "sp-core", "sp-io"]} -env_logger.workspace = true -native.workspace = true -arrow.workspace = true proof-of-sql-commitment-map.workspace = true pallet-permissions.workspace = true pallet-tables.workspace = true +pallet-commitments.workspace = true [features] default = ["std"] From 39c45afe2986cd8c5fcb269421eac27e61c8f861 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:00:15 +0000 Subject: [PATCH 08/35] fix: warn on unused dependencies in pallet-rewards --- pallets/rewards/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/rewards/src/lib.rs b/pallets/rewards/src/lib.rs index 90ddfaf9..cc7cb73a 100644 --- a/pallets/rewards/src/lib.rs +++ b/pallets/rewards/src/lib.rs @@ -5,6 +5,7 @@ //! rewards and payout one page of nominators(512) at a time for up to 3 validators per block until //! all pages for all validators are paid. #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] extern crate alloc; extern crate core; From 156e955ed8acf5c64d55d6d4737ca05c95a8072d Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:01:53 +0000 Subject: [PATCH 09/35] fix: remove unused dependencies in pallet-smartcontracts --- Cargo.lock | 3 --- pallets/smartcontracts/Cargo.toml | 3 --- 2 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bfa10249..62ac5788 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12066,8 +12066,6 @@ dependencies = [ name = "pallet-smartcontracts" version = "0.1.0" dependencies = [ - "arrow 54.2.1", - "native", "native-api", "pallet-commitments", "pallet-indexing", @@ -12078,7 +12076,6 @@ dependencies = [ "parity-scale-codec", "polkadot-sdk 0.9.0", "proof-of-sql-commitment-map", - "proof-of-sql-static-setups", "scale-info", "sxt-core", ] diff --git a/pallets/smartcontracts/Cargo.toml b/pallets/smartcontracts/Cargo.toml index 040afe8b..cbf45856 100644 --- a/pallets/smartcontracts/Cargo.toml +++ b/pallets/smartcontracts/Cargo.toml @@ -39,9 +39,6 @@ proof-of-sql-commitment-map = { workspace = true } pallet-commitments.workspace = true pallet-system-tables.workspace = true pallet-zkpay.workspace = true -proof-of-sql-static-setups = { workspace = true, features = ["io"] } -native.workspace = true -arrow.workspace = true [features] default = ["std"] From b5329489cb8614fc8e6ed5b6e4073cc5f9b0bd89 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:02:07 +0000 Subject: [PATCH 10/35] fix: warn on unused dependencies in pallet-smartcontracts --- pallets/smartcontracts/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/smartcontracts/src/lib.rs b/pallets/smartcontracts/src/lib.rs index 3825f204..b70a1e93 100644 --- a/pallets/smartcontracts/src/lib.rs +++ b/pallets/smartcontracts/src/lib.rs @@ -4,6 +4,7 @@ #![cfg_attr(not(feature = "std"), no_std)] #![allow(clippy::large_enum_variant)] +#![cfg_attr(feature = "runtime-benchmarks", warn(unused_crate_dependencies))] pub use pallet::*; From 60e79f6b265e3a322c7e0ce2e2eb402627599ecc Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:03:30 +0000 Subject: [PATCH 11/35] fix: remove unused dependencies in pallet-system-tables --- Cargo.lock | 1 - pallets/system_tables/Cargo.toml | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 62ac5788..796c6225 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12220,7 +12220,6 @@ name = "pallet-system-tables" version = "0.1.0" dependencies = [ "arrow 54.2.1", - "env_logger 0.11.6", "hex", "itertools 0.12.1", "log", diff --git a/pallets/system_tables/Cargo.toml b/pallets/system_tables/Cargo.toml index 647a9566..7639245b 100644 --- a/pallets/system_tables/Cargo.toml +++ b/pallets/system_tables/Cargo.toml @@ -28,12 +28,10 @@ polkadot-sdk = { workspace = true, features = [ pallet-zkpay.workspace = true pallet-tables.workspace = true -pallet-commitments.workspace = true sxt-core = { default-features = false, workspace = true } on-chain-table = { workspace = true, default-features = false } spin.workspace = true hex.workspace = true -serde_json = { workspace = true, default-features = false, features = ["alloc"] } log.workspace = true itertools.workspace = true @@ -44,12 +42,13 @@ polkadot-sdk = { workspace = true, features = [ "pallet-authority-discovery", "sp-authority-discovery", "sp-consensus-babe", "sp-core", "sp-io", "sp-runtime", ]} +pallet-commitments.workspace = true proof-of-sql-static-setups = { workspace = true, features = ["io"] } pallet-permissions.workspace = true arrow = { workspace = true } -env_logger.workspace = true proof-of-sql-commitment-map.workspace = true +serde_json = { workspace = true, default-features = false, features = ["alloc"] } [features] default = ["std"] From 3b25937d53c20508a4eac764fb2fafa9e780e649 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:03:51 +0000 Subject: [PATCH 12/35] fix: warn on unused dependencies in pallet-system-tables --- pallets/system_tables/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/system_tables/src/lib.rs b/pallets/system_tables/src/lib.rs index eef56507..e106ac86 100644 --- a/pallets/system_tables/src/lib.rs +++ b/pallets/system_tables/src/lib.rs @@ -2,6 +2,7 @@ //! This pallet holds logic for parsing insert statements received via indexing and //! performing any system related on-chain state transitions #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] extern crate alloc; extern crate core; From 56daacde98eabba2cf0cf1dc62bc65170e7fce99 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:04:29 +0000 Subject: [PATCH 13/35] fix: remove unused dependencies in pallet-tables --- Cargo.lock | 1 - pallets/tables/Cargo.toml | 2 -- 2 files changed, 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 796c6225..b7be524b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12248,7 +12248,6 @@ dependencies = [ "pallet-permissions", "parity-scale-codec", "polkadot-sdk 0.9.0", - "proof-of-sql", "proof-of-sql-commitment-map", "scale-info", "snafu 0.8.5", diff --git a/pallets/tables/Cargo.toml b/pallets/tables/Cargo.toml index 01de1401..f9d1d752 100644 --- a/pallets/tables/Cargo.toml +++ b/pallets/tables/Cargo.toml @@ -37,7 +37,6 @@ snafu.workspace = true polkadot-sdk = { workspace = true, features = [ "sp-core", "sp-io", "sp-runtime", ]} -proof-of-sql.workspace = true [features] default = ["std"] @@ -46,7 +45,6 @@ std = [ "codec/std", "scale-info/std", "pallet-commitments/std", - "proof-of-sql/std", ] runtime-benchmarks = [ "polkadot-sdk/runtime-benchmarks", From 200650fe7b152944f8c858678a383dcf749fc25a Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:04:46 +0000 Subject: [PATCH 14/35] fix: warn on unused dependencies in pallet-tables --- pallets/tables/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/tables/src/lib.rs b/pallets/tables/src/lib.rs index 7e9995f9..5f2c12da 100644 --- a/pallets/tables/src/lib.rs +++ b/pallets/tables/src/lib.rs @@ -2,6 +2,7 @@ //! the SXT Chain. It provides support for creating, dropping, and editing tables and //! schemas. #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] pub use pallet::*; From ffc8893ef9311836c6295b72ee9e2093e20f8b26 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:06:07 +0000 Subject: [PATCH 15/35] fix: remove unused dependencies in sxt-node --- Cargo.lock | 6 ------ node/Cargo.toml | 9 ++------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7be524b..02ee5adb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -21096,26 +21096,20 @@ dependencies = [ name = "sxt-node" version = "1.3.0" dependencies = [ - "bs58 0.5.1", "clap 4.5.32", "dotenv", "futures", "jsonrpsee", "native", "node-rpc", - "parity-scale-codec", "polkadot-sdk 0.9.0", - "proof-of-sql-commitment-map", "proof-of-sql-static-setups", - "rand 0.8.5", "sc-cli", "sc-client-db", "serde", "serde_json", "snafu 0.8.5", - "sqlparser", "substrate-build-script-utils", - "sxt-core", "sxt-runtime", ] diff --git a/node/Cargo.toml b/node/Cargo.toml index 228dba5e..b84f4940 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -30,22 +30,18 @@ polkadot-sdk = { workspace = true, features = [ "pallet-staking", "sp-authority-discovery", "pallet-transaction-payment", "pallet-transaction-payment-rpc", "frame-benchmarking", "frame-benchmarking-cli", ]} + +# functionally unused, but these features need to be enabled for rocksdb support sc-cli = { workspace = true, features = ["rocksdb"] } sc-client-db = { workspace = true, features = ["rocksdb"] } sxt-runtime.workspace = true native.workspace = true -sxt-core.workspace = true -proof-of-sql-commitment-map = { workspace = true, features = [ "substrate"] } proof-of-sql-static-setups = { workspace = true, features = ["io"] } -sqlparser = { workspace = true, default-features = false } -bs58 = "0.5.1" dotenv = "0.15.0" -rand.workspace = true node-rpc.workspace = true serde.workspace = true -codec = { workspace = true, default-features = true } [build-dependencies] substrate-build-script-utils.workspace = true @@ -56,7 +52,6 @@ default = ["std"] std = [ "sxt-runtime/std", "native/std", - "sxt-core/std", ] # Dependencies that are only required if runtime benchmarking should be build. runtime-benchmarks = [ From e9bdd8248eb1d9b83c42ea35a5d9b8d1e98a984d Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:06:23 +0000 Subject: [PATCH 16/35] fix: warn on unused dependencies in sxt-node --- node/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/src/main.rs b/node/src/main.rs index 9b49841b..39816f31 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -1,5 +1,9 @@ //! Substrate Node Template CLI library. #![warn(missing_docs)] +#![warn(unused_crate_dependencies)] + +// functionally unused, but these features need to be enabled for rocksdb support +use {sc_cli as _, sc_client_db as _}; /// benchmarking mod benchmarking; From 49b529c842653d471e26dc8ddd6a4bc068f1df98 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:06:47 +0000 Subject: [PATCH 17/35] fix: warn on unused dependencies in arrow-ipc-no-std --- arrow-ipc-no-std/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/arrow-ipc-no-std/src/lib.rs b/arrow-ipc-no-std/src/lib.rs index 6dec56a0..7c7a1508 100644 --- a/arrow-ipc-no-std/src/lib.rs +++ b/arrow-ipc-no-std/src/lib.rs @@ -1,5 +1,6 @@ #![doc = include_str!("../README.md")] #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "std", warn(unused_crate_dependencies))] #[expect( mismatched_lifetime_syntaxes, From 3f44d5144cb56160601c44fa95e2558813fc27b4 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:07:07 +0000 Subject: [PATCH 18/35] fix: warn on unused dependencies in attestation-tree --- attestation_tree/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/attestation_tree/src/lib.rs b/attestation_tree/src/lib.rs index c97db081..066fe3fb 100644 --- a/attestation_tree/src/lib.rs +++ b/attestation_tree/src/lib.rs @@ -1,4 +1,5 @@ #![doc = include_str!("../README.md")] +#![warn(unused_crate_dependencies)] /// Hash and key types for attestation tree nodes. mod hash_and_key; From 987a888682130d07a09dbbe68de23f560ef89812 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:07:41 +0000 Subject: [PATCH 19/35] fix: warn on unused dependencies in chain-utils --- chain-utils/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/chain-utils/src/main.rs b/chain-utils/src/main.rs index aa01094a..57d176a4 100644 --- a/chain-utils/src/main.rs +++ b/chain-utils/src/main.rs @@ -1,5 +1,6 @@ //! This utility is built to read a DDL file from a given path and submit it to the SxT Chain //! using a given private key. +#![warn(unused_crate_dependencies)] mod common; mod fetch_submissions; From 1756f3bf35456c37b58d244b47c5e205a2f4e76a Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:07:50 +0000 Subject: [PATCH 20/35] fix: warn on unused dependencies in eth-ecdsa --- eth-ecdsa/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/eth-ecdsa/src/lib.rs b/eth-ecdsa/src/lib.rs index b07b8025..1cad268e 100644 --- a/eth-ecdsa/src/lib.rs +++ b/eth-ecdsa/src/lib.rs @@ -1,5 +1,6 @@ #![doc = include_str!("../README.md")] #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "serde", warn(unused_crate_dependencies))] /// Ethereum-compatible ECDSA signature implementation. mod signature; From fad51029ba33f8b611b8c7dcdaa49fc8c33777dd Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:08:01 +0000 Subject: [PATCH 21/35] fix: warn on unused dependencies in native-api --- native-api/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/native-api/src/lib.rs b/native-api/src/lib.rs index c56c7247..c324a96d 100644 --- a/native-api/src/lib.rs +++ b/native-api/src/lib.rs @@ -1,5 +1,6 @@ //! The declaration for the native trait that can be adhered to by pallets that want to execute std code. #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] use proof_of_sql_commitment_map::TableCommitmentBytesPerCommitmentSchemePassBy; use sxt_core::native::{NativeCommitmentError, NativeError, OnChainTableBytes, RowData}; From 329bc036e56015fd601c2dc27add7b14398d7b1d Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:09:38 +0000 Subject: [PATCH 22/35] fix: remove unused dependencies in pallet-attestation --- pallets/attestation/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pallets/attestation/Cargo.toml b/pallets/attestation/Cargo.toml index ef9b0bef..11075d05 100644 --- a/pallets/attestation/Cargo.toml +++ b/pallets/attestation/Cargo.toml @@ -23,8 +23,8 @@ scale-info = { features = [ polkadot-sdk = { workspace = true, features = [ "frame-benchmarking", "frame-support", "frame-system" ]} -k256 = { version = "0.13.4", default-features = false } -sha3 = { version = "0.10.8", default-features = false } +k256 = { workspace = true, default-features = false, optional = true } +sha3 = { workspace = true, default-features = false, optional = true } sxt-core.workspace = true pallet-permissions.workspace = true pallet-keystore.workspace = true @@ -33,6 +33,7 @@ pallet-keystore.workspace = true polkadot-sdk = { workspace = true, features = [ "sp-io", "sp-runtime", "sp-core", ]} +k256 = { workspace = true, default-features = false } [features] default = ["std"] @@ -48,6 +49,7 @@ std = [ ] runtime-benchmarks = [ "polkadot-sdk/runtime-benchmarks", + "dep:sha3", ] try-runtime = [ "polkadot-sdk/try-runtime", From 199dce4f78fa369440e06e51e891f1d27451c0e4 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:09:51 +0000 Subject: [PATCH 23/35] fix: warn on unused dependencies in pallet-attestation --- pallets/attestation/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/attestation/src/lib.rs b/pallets/attestation/src/lib.rs index f4160aed..239e443b 100644 --- a/pallets/attestation/src/lib.rs +++ b/pallets/attestation/src/lib.rs @@ -6,6 +6,7 @@ //! registration and usage. #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "runtime-benchmarks", warn(unused_crate_dependencies))] pub use pallet::*; From a83631b2433d1e2e24f269a98ff5432f4fa01ed9 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:10:07 +0000 Subject: [PATCH 24/35] fix: remove unused dependencies in pallet-keystore --- pallets/keystore/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pallets/keystore/Cargo.toml b/pallets/keystore/Cargo.toml index 2a5287ab..6488f20a 100644 --- a/pallets/keystore/Cargo.toml +++ b/pallets/keystore/Cargo.toml @@ -23,10 +23,11 @@ scale-info = { features = [ polkadot-sdk = { workspace = true, features = ["frame-benchmarking", "frame-support", "frame-system"] } sxt-core.workspace = true -k256 = { version = "0.13.4", default-features = false } -sha3 = { version = "0.10.8", default-features = false } +k256 = { workspace = true, default-features = false, optional = true } +sha3 = { workspace = true, default-features = false, optional = true } [dev-dependencies] +k256 = { version = "0.13.4", default-features = false } polkadot-sdk = { workspace = true, features = ["sp-core", "sp-io", "sp-runtime",] } [features] @@ -41,6 +42,8 @@ std = [ ] runtime-benchmarks = [ "polkadot-sdk/runtime-benchmarks", + "dep:k256", + "dep:sha3", ] try-runtime = [ "polkadot-sdk/try-runtime", From ddb7b8185d1bbe3bc1cdeb8410259966963052a0 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:10:16 +0000 Subject: [PATCH 25/35] fix: warn on unused dependencies in pallet-keystore --- pallets/keystore/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/keystore/src/lib.rs b/pallets/keystore/src/lib.rs index 47263583..90cb1426 100644 --- a/pallets/keystore/src/lib.rs +++ b/pallets/keystore/src/lib.rs @@ -2,6 +2,7 @@ //! Currently only Ethereum style ECDSA keys are supported #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "runtime-benchmarks", warn(unused_crate_dependencies))] pub use pallet::*; From 43788057f071945c740dab782971eedf2ed55dca Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:10:37 +0000 Subject: [PATCH 26/35] fix: warn on unused dependencies in pallet-permissions --- pallets/permissions/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/permissions/src/lib.rs b/pallets/permissions/src/lib.rs index 7e87cbf6..ad4f1a46 100644 --- a/pallets/permissions/src/lib.rs +++ b/pallets/permissions/src/lib.rs @@ -1,5 +1,6 @@ //! TODO: add docs #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] extern crate alloc; From b75543bc0341b58dfb1f07ec4468514faccc5d52 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:10:53 +0000 Subject: [PATCH 27/35] fix: warn on unused dependencies in pallet-system-contracts --- pallets/system-contracts/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/system-contracts/src/lib.rs b/pallets/system-contracts/src/lib.rs index bb227a48..d592b4bb 100644 --- a/pallets/system-contracts/src/lib.rs +++ b/pallets/system-contracts/src/lib.rs @@ -1,5 +1,6 @@ #![doc = include_str!("../README.md")] #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] pub use pallet::*; From bf7f40be3eaca90f11c0045fc935ad40446bdd46 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:11:15 +0000 Subject: [PATCH 28/35] fix: warn on unused dependencies in pallet-zkpay --- pallets/zkpay/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/zkpay/src/lib.rs b/pallets/zkpay/src/lib.rs index a2f193bf..6f181f35 100644 --- a/pallets/zkpay/src/lib.rs +++ b/pallets/zkpay/src/lib.rs @@ -4,6 +4,7 @@ #![cfg_attr(not(feature = "std"), no_std)] // deposit_event is auto-generated by the pallet macro and cannot have docs added #![allow(missing_docs)] +#![warn(unused_crate_dependencies)] // Re-export pallet items so that they can be accessed from the crate namespace. pub use pallet::*; From 3a80c0c72b0ceaca940ea09d66a4786e78755739 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:11:31 +0000 Subject: [PATCH 29/35] fix: warn on unused dependencies in commitment-column-mapping --- proof-of-sql/commitment-column-mapping/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proof-of-sql/commitment-column-mapping/src/lib.rs b/proof-of-sql/commitment-column-mapping/src/lib.rs index badd770c..4b2e151b 100644 --- a/proof-of-sql/commitment-column-mapping/src/lib.rs +++ b/proof-of-sql/commitment-column-mapping/src/lib.rs @@ -1,6 +1,11 @@ #![doc = include_str!("../README.md")] +#![warn(unused_crate_dependencies)] #![no_std] +/// not used functionally, conveniently enables std features of polkadot crates +#[cfg(test)] +use sxt_core as _; + extern crate alloc; /// Maps column commitment metadata between representations. From 3314939ec09798e7568bf37d9bbaa35ce8bdc54a Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:11:44 +0000 Subject: [PATCH 30/35] fix: warn on unused dependencies in on-chain-table --- proof-of-sql/on-chain-table/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proof-of-sql/on-chain-table/src/lib.rs b/proof-of-sql/on-chain-table/src/lib.rs index 23cdc19d..ea0544a6 100644 --- a/proof-of-sql/on-chain-table/src/lib.rs +++ b/proof-of-sql/on-chain-table/src/lib.rs @@ -1,5 +1,9 @@ #![cfg_attr(not(feature = "std"), no_std)] #![doc = include_str!("../README.md")] +#![cfg_attr( + all(feature = "arrow", feature = "proptest"), + warn(unused_crate_dependencies) +)] #![warn(missing_docs)] extern crate alloc; From 30dd5d7aa3fd4f0b8db5e0b83b664c1f03865559 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:11:54 +0000 Subject: [PATCH 31/35] fix: warn on unused dependencies in static-setups --- proof-of-sql/static-setups/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proof-of-sql/static-setups/src/lib.rs b/proof-of-sql/static-setups/src/lib.rs index fc22ba2c..05692a04 100644 --- a/proof-of-sql/static-setups/src/lib.rs +++ b/proof-of-sql/static-setups/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(not(feature = "std"), no_std)] #![doc = include_str!("../README.md")] +#![cfg_attr(feature = "io", warn(unused_crate_dependencies))] #[cfg(feature = "io")] pub mod io; From f3055c9f86fb593ce5b671c9dc8b9607a1b4e2c7 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:12:07 +0000 Subject: [PATCH 32/35] fix: warn on unused dependencies in unchecked-deserialize --- proof-of-sql/unchecked-deserialize/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proof-of-sql/unchecked-deserialize/src/lib.rs b/proof-of-sql/unchecked-deserialize/src/lib.rs index 9065e227..109815bb 100644 --- a/proof-of-sql/unchecked-deserialize/src/lib.rs +++ b/proof-of-sql/unchecked-deserialize/src/lib.rs @@ -1,5 +1,6 @@ //! This crate enables unchecked deserialization for certain types, in particular `TableCommitment``. #![no_std] +#![warn(unused_crate_dependencies)] extern crate alloc; From 490833df6823f0d766afd496ae352d9cb1436d79 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:12:19 +0000 Subject: [PATCH 33/35] fix: warn on unused dependencies in proot-of-sql-unversioned --- proof-of-sql/unversioned/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proof-of-sql/unversioned/src/lib.rs b/proof-of-sql/unversioned/src/lib.rs index ae7a750c..3ba9ad4d 100644 --- a/proof-of-sql/unversioned/src/lib.rs +++ b/proof-of-sql/unversioned/src/lib.rs @@ -1,4 +1,5 @@ #![doc = include_str!("../README.md")] +#![warn(unused_crate_dependencies)] #![no_std] /// Conversion utilities between SQLParser types and proof-of-sql types. From ebdb7c1f0af01b60ef4462090681ab8661807ab6 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:12:28 +0000 Subject: [PATCH 34/35] fix: warn on unused dependencies in sxt-runtime --- runtime/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index cbca130d..048f3bfb 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1,6 +1,7 @@ //! Defines the SxT chain runtime. #![allow(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] +#![warn(unused_crate_dependencies)] // runtime construction via `frame_support::runtime` does a lot of recursion and requires us to increase the limit. #![recursion_limit = "512"] From 41f6b185b7aef55238a855c18b60a30353a47293 Mon Sep 17 00:00:00 2001 From: Trevor Lovell Date: Wed, 1 Apr 2026 19:12:43 +0000 Subject: [PATCH 35/35] fix: remove unused workspace dependencies --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 515cc286..37205e22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,6 @@ arrow = { version = "54.2.1", default-features = false } attestation_tree = { path = "./attestation_tree/", default-features = false } bigdecimal = { version = "0.4.5", default-features = false } bincode = { version = "2.0.0", default-features = false } -const_format = { version = "0.2.33", default-features = false } commitment-sql = { path = "./proof-of-sql/commitment-sql/", default-features = false } datafusion = { version = "38.0.0", default-features = false } eth-ecdsa = { path = "./eth-ecdsa", default-features = false }