diff --git a/Cargo.lock b/Cargo.lock index fba46947..02ee5adb 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", @@ -3749,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", @@ -3759,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", @@ -11291,8 +11287,6 @@ dependencies = [ "arrow 54.2.1", "arrow-ipc-no-std", "commitment-sql", - "hex", - "native", "native-api", "on-chain-table", "pallet-commitments", @@ -11905,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", @@ -12075,8 +12066,6 @@ dependencies = [ name = "pallet-smartcontracts" version = "0.1.0" dependencies = [ - "arrow 54.2.1", - "native", "native-api", "pallet-commitments", "pallet-indexing", @@ -12087,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", ] @@ -12232,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", @@ -12261,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", @@ -21110,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/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 } 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, 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; 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"] } 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. 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; 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; 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}; 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 = [ 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; 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", 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::*; 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", 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; 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", 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::*; 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; 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"] 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; 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"] 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::*; 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::*; 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"] 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; 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", 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::*; 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::*; 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. 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"] } 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; 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; 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; 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; 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. 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"]