Skip to content

Commit

Permalink
Remove cli feature (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 authored Aug 28, 2023
1 parent 57286fc commit 5b1fdf5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ sp-runtime = { workspace = true }
node-executor = { workspace = true }
node-primitives = { workspace = true }

try-runtime-core = { workspace = true, features = ["cli"] }
try-runtime-core = { workspace = true }
6 changes: 1 addition & 5 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
# Crates.io
async-trait = { workspace = true }
bytesize = { workspace = true, features = ["serde"] }
clap = { workspace = true, features = ["derive"], optional = true }
clap = { workspace = true, features = ["derive"] }
hex = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true, features = ["derive"] }
Expand Down Expand Up @@ -49,7 +49,3 @@ sc-service = { workspace = true }
node-primitives = { workspace = true }
node-executor = { workspace = true }
substrate-cli-test-utils = { workspace = true, features = ["try-runtime"] }

[features]
cli = ["clap"]
default = ["cli"]
2 changes: 0 additions & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ use sp_weights::Weight;

use crate::shared_parameters::SharedParams;

#[cfg(feature = "cli")]
pub mod commands;
#[cfg(feature = "cli")]
mod parse;
pub mod shared_parameters;
pub mod state;
Expand Down
1 change: 0 additions & 1 deletion core/src/shared_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use std::{path::PathBuf, str::FromStr};

use sc_cli::{WasmExecutionMethod, WasmtimeInstantiationStrategy};
use sp_runtime::StateVersion;
#[cfg(feature = "cli")]
use {
crate::parse,
sc_cli::{DEFAULT_WASMTIME_INSTANTIATION_STRATEGY, DEFAULT_WASM_EXECUTION_METHOD},
Expand Down

0 comments on commit 5b1fdf5

Please sign in to comment.