diff --git a/Cargo.lock b/Cargo.lock index 36737b01028dd2261f6bfb0b0876ffd0f92f04b2..f75c0e3532acf615b0136735ef13f8f375aa5d33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -479,14 +479,12 @@ dependencies = [ "current_platform", "env_logger", "escape8259", - "futures", "heck", "hex", "impl-serde", "indexmap", "ink_env", "ink_lang", - "ink_lang_codegen", "ink_metadata", "ink_primitives", "ink_storage", @@ -511,7 +509,6 @@ dependencies = [ "substrate-build-script-utils", "subxt", "tempfile", - "thiserror", "toml", "url", "wabt", diff --git a/Cargo.toml b/Cargo.toml index 2d68f15f70720097037172b42ed2c3c4c3c12d5d..69f8a4085e28bc6cd60ae081c0322c009dab1f49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,13 +56,11 @@ sp-core = "6.0.0" sp-runtime = "6.0.0" pallet-contracts-primitives = "6.0.0" subxt = "0.21.0" -futures = "0.3.19" hex = "0.4.3" jsonrpsee = { version = "0.13.1", features = ["ws-client"] } nom = "7.1.1" nom-supreme = { version = "0.7.0", features = ["error"] } indexmap = "1.8.1" -thiserror = "1.0.31" escape8259 = "0.5.1" itertools = "0.10.3" @@ -86,7 +84,6 @@ predicates = "2.1.1" ink_primitives = "3" ink_storage = "3" ink_lang = "3" -ink_lang_codegen = "3" [features] # This `std` feature is required for testing using an inline contract's metadata, because `ink!` annotates the metadata diff --git a/metadata/lib.rs b/metadata/lib.rs index 6a71554c8067022db7dc9fdc68740ae26e6a5e43..76aa32ef2b8423a3468bb0f94e597f9ff3f5c1c9 100644 --- a/metadata/lib.rs +++ b/metadata/lib.rs @@ -52,6 +52,8 @@ //! let json = serde_json::to_value(&metadata).unwrap(); //! ``` +#![deny(unused_crate_dependencies)] + mod byte_str; use semver::Version; diff --git a/src/main.rs b/src/main.rs index eee5661567f22089cd096294018f2e54831a84d5..af5039b89388bc5eeff5a2be8cd945d61d1564f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,8 @@ // You should have received a copy of the GNU General Public License // along with cargo-contract. If not, see . +#![deny(unused_crate_dependencies)] + mod cmd; mod crate_metadata; mod util;