mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 15:41:02 +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" }
|
subxt-codegen = { version = "0.21.0", path = "../codegen" }
|
||||||
# perform node compatibility
|
# perform node compatibility
|
||||||
subxt-metadata = { version = "0.21.0", path = "../metadata" }
|
subxt-metadata = { version = "0.21.0", path = "../metadata" }
|
||||||
# information of portable registry
|
|
||||||
scale-info = "2.0.0"
|
|
||||||
# parse command line args
|
# parse command line args
|
||||||
structopt = "0.3.25"
|
structopt = "0.3.25"
|
||||||
# make the request to a substrate node to get the metadata
|
# 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
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
|
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
#![deny(unused_crate_dependencies)]
|
||||||
|
|
||||||
use color_eyre::eyre::{
|
use color_eyre::eyre::{
|
||||||
self,
|
self,
|
||||||
WrapErr,
|
WrapErr,
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
//! Library to generate an API for a Substrate runtime from its metadata.
|
//! Library to generate an API for a Substrate runtime from its metadata.
|
||||||
|
|
||||||
|
#![deny(unused_crate_dependencies)]
|
||||||
|
|
||||||
mod api;
|
mod api;
|
||||||
mod ir;
|
mod ir;
|
||||||
mod types;
|
mod types;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ default = ["subxt/integration-tests"]
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert_matches = "1.5.0"
|
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"] }
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
||||||
frame-metadata = "15.0.0"
|
frame-metadata = "15.0.0"
|
||||||
futures = "0.3.13"
|
futures = "0.3.13"
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
|
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
#![deny(unused_crate_dependencies)]
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod codegen;
|
mod codegen;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
//! pub mod polkadot {}
|
//! pub mod polkadot {}
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
#![deny(unused_crate_dependencies)]
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
use darling::FromMeta;
|
use darling::FromMeta;
|
||||||
|
|||||||
@@ -41,10 +41,5 @@ frame-metadata = "15.0.0"
|
|||||||
derivative = "2.2.0"
|
derivative = "2.2.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
sp-arithmetic = { version = "5.0.0", default-features = false }
|
|
||||||
assert_matches = "1.5.0"
|
assert_matches = "1.5.0"
|
||||||
tokio = { version = "1.8", features = ["macros", "time"] }
|
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,
|
while_true,
|
||||||
trivial_casts,
|
trivial_casts,
|
||||||
trivial_numeric_casts,
|
trivial_numeric_casts,
|
||||||
|
unused_crate_dependencies,
|
||||||
unused_extern_crates,
|
unused_extern_crates,
|
||||||
clippy::all
|
clippy::all
|
||||||
)]
|
)]
|
||||||
|
|||||||
Reference in New Issue
Block a user