Deny unused crate dependencies (#549)

* subxt unused crate deps

* Deny unused dependencies
This commit is contained in:
Andrew Jones
2022-05-26 14:12:21 +01:00
committed by GitHub
parent 962ca61647
commit ec23283d75
8 changed files with 9 additions and 8 deletions
-2
View File
@@ -19,8 +19,6 @@ path = "src/main.rs"
subxt-codegen = { version = "0.21.0", path = "../codegen" }
# perform node compatibility
subxt-metadata = { version = "0.21.0", path = "../metadata" }
# information of portable registry
scale-info = "2.0.0"
# parse command line args
structopt = "0.3.25"
# make the request to a substrate node to get the metadata
+2
View File
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
#![deny(unused_crate_dependencies)]
use color_eyre::eyre::{
self,
WrapErr,
+2
View File
@@ -16,6 +16,8 @@
//! Library to generate an API for a Substrate runtime from its metadata.
#![deny(unused_crate_dependencies)]
mod api;
mod ir;
mod types;
-1
View File
@@ -16,7 +16,6 @@ default = ["subxt/integration-tests"]
[dev-dependencies]
assert_matches = "1.5.0"
async-trait = "0.1.49"
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
frame-metadata = "15.0.0"
futures = "0.3.13"
+2
View File
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
#![deny(unused_crate_dependencies)]
#[cfg(test)]
mod codegen;
#[cfg(test)]
+2
View File
@@ -87,6 +87,8 @@
//! pub mod polkadot {}
//! ```
#![deny(unused_crate_dependencies)]
extern crate proc_macro;
use darling::FromMeta;
-5
View File
@@ -41,10 +41,5 @@ frame-metadata = "15.0.0"
derivative = "2.2.0"
[dev-dependencies]
sp-arithmetic = { version = "5.0.0", default-features = false }
assert_matches = "1.5.0"
tokio = { version = "1.8", features = ["macros", "time"] }
tempdir = "0.3.7"
wabt = "0.10.0"
which = "4.0.2"
sp-keyring = "6.0.0"
+1
View File
@@ -35,6 +35,7 @@
while_true,
trivial_casts,
trivial_numeric_casts,
unused_crate_dependencies,
unused_extern_crates,
clippy::all
)]