Add a default trie-memory-tracker feature to the cli (#1502)

* Update substrate and add a trie-memory-tracker feature to the cli

* Update cli/Cargo.toml

Co-authored-by: Andronik Ordian <write@reusable.software>

Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
Ashley
2020-07-30 12:09:07 +02:00
committed by GitHub
parent 610dd1368c
commit 4292fac5bc
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -4452,6 +4452,7 @@ dependencies = [
"sp-api", "sp-api",
"sp-core", "sp-core",
"sp-runtime", "sp-runtime",
"sp-trie",
"structopt", "structopt",
"substrate-browser-utils", "substrate-browser-utils",
"substrate-build-script-utils", "substrate-build-script-utils",
+5 -1
View File
@@ -34,12 +34,15 @@ sc-service = { git = "https://github.com/paritytech/substrate", branch = "master
wasm-bindgen = { version = "0.2.57", optional = true } wasm-bindgen = { version = "0.2.57", optional = true }
wasm-bindgen-futures = { version = "0.4.7", optional = true } wasm-bindgen-futures = { version = "0.4.7", optional = true }
browser-utils = { package = "substrate-browser-utils", git = "https://github.com/paritytech/substrate", branch = "master", optional = true } browser-utils = { package = "substrate-browser-utils", git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
# this crate is used only to enable `trie-memory-tracker` feature
# see https://github.com/paritytech/substrate/pull/6745
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
[build-dependencies] [build-dependencies]
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" } substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
[features] [features]
default = [ "wasmtime", "db", "cli", "service-old" ] default = [ "wasmtime", "db", "cli", "service-old", "trie-memory-tracker" ]
wasmtime = [ "sc-cli/wasmtime" ] wasmtime = [ "sc-cli/wasmtime" ]
db = [ "service/db" ] db = [ "service/db" ]
cli = [ cli = [
@@ -57,3 +60,4 @@ browser = [
] ]
runtime-benchmarks = [ "service/runtime-benchmarks" ] runtime-benchmarks = [ "service/runtime-benchmarks" ]
service-rewr = [ "service-new/full-node" ] service-rewr = [ "service-new/full-node" ]
trie-memory-tracker = [ "sp-trie/memory-tracker" ]