Files
pezkuwi-subxt/substrate/bin/node/cli/Cargo.toml
T
Benjamin Kampmann a9c73113a8 Tracing for wasm with bridging to native (#6916)
* implement events handling, implement parent_id for spans & events

* add events to sp_io::storage

* update test

* add tests

* adjust limit

* let tracing crate handle parent_ids

* re-enable current-id tracking

* add test for threads with CurrentSpan

* fix log level

* remove redundant check for non wasm traces

* remove duplicate definition in test

* Adding conditional events API

* prefer explicit parent_id over current,

enhance test

* limit changes to client::tracing event implementation

* remove From impl due to fallback required on parent_id

* make tracing codecable

* replace with global tracing

* new tracing interface

* impl TracingSubscriber in client

* implement access to global TracingSubscriber from primitives

* span for wasm

* increment towards Wasm Tracing Subscriber implementation

* increment, remove sp-tracing from runtime-interface

* increment, it compiles

* attained original functionality with new mechanism

* implement remaining TracingSubscriber functions

* remove spans from decl_module

* add handling for encoded values

* Revert "replace with global tracing"

This reverts commit 8824a60deea54d9b437407a21c8ceaf6a1902ee5.

* Wasm Side Tracing

* tracing on wasm

* enable tracing wasm on node-runtime

* export all the macros in std

* tracing subscriber on wasm-side only

* pass spans and events over and record them

* reactivate previous code and  cleanup

* further cleaning up

* extend the span macros, activate through executive

* tracking the actual extrinsic, too

* style

* fixing tests

* spaces -> tabs

* attempting to reactivate params

* activate our tests in CI

* some passing

* tests passing

* with core lazy

* global tracer for wasm side with pass over

* fixing metadata referencing

* remove const_fn feature requirement

* reenable dispatch traces

* reset client tracing

* further cleaning up

* fixing runtime-test

* move tracing-build setup into runtime-test

* Merge DebugWriter from tracing and frame-support, move to sp-std

* remove dangling fixme

* Docs for tracing primitives

* cleaning up a bit more

* Wasm interface docs

* optimise docs.rs setup

* adding tracing flags to uncomment

* remove brace

* fixing imports

* fixing broken syntax

* add required modules

* nicer formatting

* better target management

* adding low level storage tracing events into frame

* add custom Debug impl for WasmMetadata

* cloning profiler

* adding info about cloning profiler

* using in-scope for within calls

* proper time tracing, cleaning up println

* allow to disable tracing on runtime_interface-macro

* disable tracing for wasm-tracing-interface

* simplify wasm-tracing-api

* update client to new interface

* fixing docs and tests for sp-tracing

* update integration tests

* re-activating enter_span

* dropping FIXME, it's documented

* fix formatting

* fix formatting

* fix imports

* more debug info

* inform wasm about it being disabled by returning 1

* only one tracer, but enabled multi-all support

* make trait pub again for tests

* Apply suggestions from code review

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* fixing wasm doc tests for proper usage

* remove unnecessary import

* fixing formatting

* minor style fixes

* downgrading wabt

* update error message for UI

* Fix interface test

* next attempt to fix macros

* geee

* revert tracing on hashed for future PR

* remove local macros, use originals

* we are able to convert to static items

* implement more WasmValue types

* adding support to convert str, debug and encoded values

* more minor fixes

* revert unsafe 'static making

* fix indentation

* remove commented lines

* bump all them tracing versions

* cleaning up docs and info

* document new flag

* the new layered system handles span cloning better

* Apply suggestions from code review

Co-authored-by: David <dvdplm@gmail.com>

Co-authored-by: Matt Rutherford <mattrutherford@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: David <dvdplm@gmail.com>
2020-09-18 06:10:59 +00:00

161 lines
7.5 KiB
TOML

[package]
name = "node-cli"
version = "2.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Generic Substrate node implementation in Rust."
build = "build.rs"
edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
default-run = "substrate"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
[package.metadata.wasm-pack.profile.release]
# `wasm-opt` has some problems on linux, see
# https://github.com/rustwasm/wasm-pack/issues/781 etc.
wasm-opt = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[badges]
travis-ci = { repository = "paritytech/substrate" }
maintenance = { status = "actively-developed" }
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
is-it-maintained-open-issues = { repository = "paritytech/substrate" }
[[bin]]
name = "substrate"
path = "bin/main.rs"
required-features = ["cli"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# third-party dependencies
codec = { package = "parity-scale-codec", version = "1.3.4" }
serde = { version = "1.0.102", features = ["derive"] }
futures = { version = "0.3.1", features = ["compat"] }
hex-literal = "0.3.1"
log = "0.4.8"
rand = "0.7.2"
structopt = { version = "0.3.8", optional = true }
tracing = "0.1.19"
parking_lot = "0.10.0"
# primitives
sp-authority-discovery = { version = "2.0.0-rc6", path = "../../../primitives/authority-discovery" }
sp-consensus-babe = { version = "0.8.0-rc6", path = "../../../primitives/consensus/babe" }
grandpa-primitives = { version = "2.0.0-rc6", package = "sp-finality-grandpa", path = "../../../primitives/finality-grandpa" }
sp-core = { version = "2.0.0-rc6", path = "../../../primitives/core" }
sp-runtime = { version = "2.0.0-rc6", path = "../../../primitives/runtime" }
sp-timestamp = { version = "2.0.0-rc6", default-features = false, path = "../../../primitives/timestamp" }
sp-finality-tracker = { version = "2.0.0-rc6", default-features = false, path = "../../../primitives/finality-tracker" }
sp-inherents = { version = "2.0.0-rc6", path = "../../../primitives/inherents" }
sp-keyring = { version = "2.0.0-rc6", path = "../../../primitives/keyring" }
sp-io = { version = "2.0.0-rc6", path = "../../../primitives/io" }
sp-consensus = { version = "0.8.0-rc6", path = "../../../primitives/consensus/common" }
sp-transaction-pool = { version = "2.0.0-rc6", path = "../../../primitives/transaction-pool" }
# client dependencies
sc-client-api = { version = "2.0.0-rc6", path = "../../../client/api" }
sc-chain-spec = { version = "2.0.0-rc6", path = "../../../client/chain-spec" }
sc-consensus = { version = "0.8.0-rc6", path = "../../../client/consensus/common" }
sc-transaction-pool = { version = "2.0.0-rc6", path = "../../../client/transaction-pool" }
sc-network = { version = "0.8.0-rc6", path = "../../../client/network" }
sc-consensus-babe = { version = "0.8.0-rc6", path = "../../../client/consensus/babe" }
grandpa = { version = "0.8.0-rc6", package = "sc-finality-grandpa", path = "../../../client/finality-grandpa" }
sc-client-db = { version = "0.8.0-rc6", default-features = false, path = "../../../client/db" }
sc-offchain = { version = "2.0.0-rc6", path = "../../../client/offchain" }
sc-rpc = { version = "2.0.0-rc6", path = "../../../client/rpc" }
sc-basic-authorship = { version = "0.8.0-rc6", path = "../../../client/basic-authorship" }
sc-service = { version = "0.8.0-rc6", default-features = false, path = "../../../client/service" }
sc-tracing = { version = "2.0.0-rc6", path = "../../../client/tracing" }
sc-telemetry = { version = "2.0.0-rc6", path = "../../../client/telemetry" }
sc-authority-discovery = { version = "0.8.0-rc6", path = "../../../client/authority-discovery" }
# frame dependencies
pallet-indices = { version = "2.0.0-rc6", path = "../../../frame/indices" }
pallet-timestamp = { version = "2.0.0-rc6", default-features = false, path = "../../../frame/timestamp" }
pallet-contracts = { version = "2.0.0-rc6", path = "../../../frame/contracts" }
frame-system = { version = "2.0.0-rc6", path = "../../../frame/system" }
pallet-balances = { version = "2.0.0-rc6", path = "../../../frame/balances" }
pallet-transaction-payment = { version = "2.0.0-rc6", path = "../../../frame/transaction-payment" }
frame-support = { version = "2.0.0-rc6", default-features = false, path = "../../../frame/support" }
pallet-im-online = { version = "2.0.0-rc6", default-features = false, path = "../../../frame/im-online" }
pallet-authority-discovery = { version = "2.0.0-rc6", path = "../../../frame/authority-discovery" }
pallet-staking = { version = "2.0.0-rc6", path = "../../../frame/staking" }
pallet-grandpa = { version = "2.0.0-rc6", path = "../../../frame/grandpa" }
# node-specific dependencies
node-runtime = { version = "2.0.0-rc6", path = "../runtime" }
node-rpc = { version = "2.0.0-rc6", path = "../rpc" }
node-primitives = { version = "2.0.0-rc6", path = "../primitives" }
node-executor = { version = "2.0.0-rc6", path = "../executor" }
# CLI-specific dependencies
sc-cli = { version = "0.8.0-rc6", optional = true, path = "../../../client/cli" }
frame-benchmarking-cli = { version = "2.0.0-rc6", optional = true, path = "../../../utils/frame/benchmarking-cli" }
node-inspect = { version = "0.8.0-rc6", optional = true, path = "../inspect" }
# WASM-specific dependencies
wasm-bindgen = { version = "0.2.57", optional = true }
wasm-bindgen-futures = { version = "0.4.7", optional = true }
browser-utils = { package = "substrate-browser-utils", path = "../../../utils/browser", optional = true, version = "0.8.0-rc6"}
[target.'cfg(target_arch="x86_64")'.dependencies]
node-executor = { version = "2.0.0-rc6", path = "../executor", features = [ "wasmtime" ] }
sc-cli = { version = "0.8.0-rc6", optional = true, path = "../../../client/cli", features = [ "wasmtime" ] }
sc-service = { version = "0.8.0-rc6", default-features = false, path = "../../../client/service", features = [ "wasmtime" ] }
sp-trie = { version = "2.0.0-rc6", default-features = false, path = "../../../primitives/trie", features = ["memory-tracker"] }
[dev-dependencies]
sc-keystore = { version = "2.0.0-rc6", path = "../../../client/keystore" }
sc-consensus = { version = "0.8.0-rc6", path = "../../../client/consensus/common" }
sc-consensus-babe = { version = "0.8.0-rc6", features = ["test-helpers"], path = "../../../client/consensus/babe" }
sc-consensus-epochs = { version = "0.8.0-rc6", path = "../../../client/consensus/epochs" }
sc-service-test = { version = "2.0.0-rc6", path = "../../../client/service/test" }
futures = "0.3.4"
tempfile = "3.1.0"
assert_cmd = "1.0"
nix = "0.17"
serde_json = "1.0"
regex = "1"
platforms = "0.2.1"
[build-dependencies]
structopt = { version = "0.3.8", optional = true }
node-inspect = { version = "0.8.0-rc6", optional = true, path = "../inspect" }
frame-benchmarking-cli = { version = "2.0.0-rc6", optional = true, path = "../../../utils/frame/benchmarking-cli" }
substrate-build-script-utils = { version = "2.0.0-rc6", optional = true, path = "../../../utils/build-script-utils" }
substrate-frame-cli = { version = "2.0.0-rc6", optional = true, path = "../../../utils/frame/frame-utilities-cli" }
[build-dependencies.sc-cli]
version = "0.8.0-rc6"
package = "sc-cli"
path = "../../../client/cli"
optional = true
[features]
default = [ "cli" ]
browser = [
"browser-utils",
"wasm-bindgen",
"wasm-bindgen-futures",
]
cli = [
"node-executor/wasmi-errno",
"node-inspect",
"sc-cli",
"frame-benchmarking-cli",
"substrate-frame-cli",
"sc-service/db",
"structopt",
"substrate-build-script-utils",
]
runtime-benchmarks = [
"node-runtime/runtime-benchmarks",
"frame-benchmarking-cli",
]