mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +00:00
56c97ce604
* Add filter reload handle * add RPC, move logging module from cli to tracing * remove dup fn * working example * Update client/rpc-api/src/system/mod.rs Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com> * Prefer "set" to "reload" * Re-enable the commented out features of the logger * Remove duplicate code * cleanup * unneeded lvar * Bump to latest patch release * Add new CLI option to disable log filter reloading, Move profiling CLI options to SharedParams * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Applied suggestions from reviews * Fix calls to init_logger() * Handle errors when parsing logging directives * Deny `system_setLogFilter` RPC by default * One more time * Don't ignore parse errors for log directives set via CLI or RPC * Improve docs * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update client/cli/src/config.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fix merge errors * include default directives with system_setLogFilter RPC, implement system_rawSetLogFilter RPC to exclude defaults * docs etc... * update test * refactor: rename fn * Add a test for system_set_log_filter – NOTE: the code should likely change to return an error when bad directives are passed * Update client/cli/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Address review grumbles * Add doc note on panicking behaviour * print all invalid directives before panic * change RPCs to: addLogFilter and resetLogFilter * make CLI log directives default * add comments * restore previous behaviour to panic when hard-coded directives are invalid * change/refactor directive parsing * fix line width * add test for log filter reloading * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * finish up suggestions from code review * improve test * change expect message * change fn name * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * add docs, remove unused fn * propagate Err on invalid log directive * Update tracing-subscriber version * Improve docs for `disable_log_reloading` CLI param Co-authored-by: Matt <mattrutherford@users.noreply.github.com> Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
63 lines
2.0 KiB
TOML
63 lines
2.0 KiB
TOML
[package]
|
|
name = "sc-cli"
|
|
version = "0.8.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "Substrate CLI interface."
|
|
edition = "2018"
|
|
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
log = "0.4.11"
|
|
atty = "0.2.13"
|
|
regex = "1.4.2"
|
|
tokio = { version = "0.2.21", features = [ "signal", "rt-core", "rt-threaded", "blocking" ] }
|
|
futures = "0.3.4"
|
|
fdlimit = "0.2.1"
|
|
libp2p = "0.31.2"
|
|
parity-scale-codec = "1.3.0"
|
|
hex = "0.4.2"
|
|
rand = "0.7.3"
|
|
tiny-bip39 = "0.8.0"
|
|
serde_json = "1.0.41"
|
|
sc-keystore = { version = "2.0.0", path = "../keystore" }
|
|
sp-panic-handler = { version = "2.0.0", path = "../../primitives/panic-handler" }
|
|
sc-client-api = { version = "2.0.0", path = "../api" }
|
|
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
|
|
sc-network = { version = "0.8.0", path = "../network" }
|
|
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
|
|
sp-utils = { version = "2.0.0", path = "../../primitives/utils" }
|
|
sp-version = { version = "2.0.0", path = "../../primitives/version" }
|
|
sp-core = { version = "2.0.0", path = "../../primitives/core" }
|
|
sp-keystore = { version = "0.8.0", path = "../../primitives/keystore" }
|
|
sc-service = { version = "0.8.0", default-features = false, path = "../service" }
|
|
sc-telemetry = { version = "2.0.0", path = "../telemetry" }
|
|
sp-keyring = { version = "2.0.0", path = "../../primitives/keyring" }
|
|
names = "0.11.0"
|
|
structopt = "0.3.8"
|
|
sc-tracing = { version = "2.0.0", path = "../tracing" }
|
|
chrono = "0.4.10"
|
|
serde = "1.0.111"
|
|
tracing = "0.1.22"
|
|
tracing-log = "0.1.1"
|
|
tracing-subscriber = "0.2.15"
|
|
sc-cli-proc-macro = { version = "2.0.0", path = "./proc-macro" }
|
|
thiserror = "1.0.21"
|
|
|
|
[target.'cfg(not(target_os = "unknown"))'.dependencies]
|
|
rpassword = "5.0.0"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|
|
ansi_term = "0.12.1"
|
|
|
|
[features]
|
|
wasmtime = [
|
|
"sc-service/wasmtime",
|
|
]
|