mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
Deny unused crate dependencies (#549)
* subxt unused crate deps * Deny unused dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -87,6 +87,8 @@
|
||||
//! pub mod polkadot {}
|
||||
//! ```
|
||||
|
||||
#![deny(unused_crate_dependencies)]
|
||||
|
||||
extern crate proc_macro;
|
||||
|
||||
use darling::FromMeta;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
while_true,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unused_crate_dependencies,
|
||||
unused_extern_crates,
|
||||
clippy::all
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user