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
This commit is contained in:
Bastian Köcher
2021-10-12 12:33:43 +02:00
committed by GitHub
parent 98c157886c
commit d0c480c79f
4 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ zeroize = { version = "1.4.2", default-features = false }
secrecy = { version = "0.8.0", default-features = false }
lazy_static = { version = "1.4.0", default-features = false, optional = true }
parking_lot = { version = "0.11.1", optional = true }
sp-debug-derive = { version = "3.0.0", path = "../debug-derive" }
sp-debug-derive = { version = "3.0.0", default-features = false, path = "../debug-derive" }
sp-externalities = { version = "0.10.0-dev", optional = true, path = "../externalities" }
sp-storage = { version = "4.0.0-dev", default-features = false, path = "../storage" }
parity-util-mem = { version = "0.10.0", default-features = false, features = [