Files
pezkuwi-subxt/substrate/primitives/debug-derive/Cargo.toml
T
Bastian Köcher d0c480c79f sp-debug-derive: Add force-debug feature (#9996)
* sp-debug-derive: Add `force-debug` feature

Sometimes users want to have proper debug information even inside the
wasm runtime, when they use `RuntimeDebug`. To not fork Substrate to
change a type to a normal `Debug` derive, this pr introduces the
`force-debug` feature. This feature can be enabled by the user in their
runtime and then the types will use the normal Debug derive instead of
printing `wasm:stripped`.

* Fixes
2021-10-12 10:33:43 +00:00

34 lines
929 B
TOML

[package]
name = "sp-debug-derive"
version = "3.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "Apache-2.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
description = "Macros to derive runtime debug implementation."
documentation = "https://docs.rs/sp-debug-derive"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
proc-macro = true
[dependencies]
quote = "1.0.10"
syn = "1.0.80"
proc-macro2 = "1.0"
[features]
default = [ "std" ]
std = []
# By default `RuntimeDebug` implements `Debug` that outputs `<wasm:stripped>` when `std` is
# disabled. However, sometimes downstream users need to have the real `Debug` implementation for
# debugging purposes. If this is required, a user only needs to add this crate as a dependency of
# their runtime and enable the `force-debug` feature.
force-debug = []
[dev-dependencies]