diff --git a/Cargo.lock b/Cargo.lock index d42e29dd885d0..0f7d435df19aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18887,6 +18887,7 @@ dependencies = [ "polkadot-sdk", "scale-info", "serde_json", + "sp-debug-derive 14.0.0", ] [[package]] diff --git a/prdoc/pr_10383.prdoc b/prdoc/pr_10383.prdoc new file mode 100644 index 0000000000000..6735dca503273 --- /dev/null +++ b/prdoc/pr_10383.prdoc @@ -0,0 +1,13 @@ +title: Enable force debug in revive dev node +doc: +- audience: Runtime Dev + description: "This change ensures that all types that implement `RuntimeDebug` are\ + \ fully displayed in log output of the revive dev node, instead of just showing\ + \ ``.\n\nUnfortunately, the trait `RuntimeDebugNoBound`, that we\ + \ also use frequently in pallet-revive, is not affected and will still output\ + \ `` (it does not check for the `force-debug` feature flag, instead\ + \ it only fully outputs values when either one of the features `std` or `try_runtime`\ + \ is enabled \u2013\_this is something we implement as a general change)." +crates: +- name: revive-dev-runtime + bump: patch diff --git a/substrate/frame/revive/dev-node/runtime/Cargo.toml b/substrate/frame/revive/dev-node/runtime/Cargo.toml index f949211d2ae71..dcc05dc2120d1 100644 --- a/substrate/frame/revive/dev-node/runtime/Cargo.toml +++ b/substrate/frame/revive/dev-node/runtime/Cargo.toml @@ -25,6 +25,7 @@ polkadot-sdk = { workspace = true, features = [ ] } scale-info = { workspace = true } serde_json = { workspace = true, default-features = false, features = ["alloc"] } +sp-debug-derive = { workspace = true, features = ["force-debug"] } [build-dependencies] polkadot-sdk = { optional = true, workspace = true, features = ["substrate-wasm-builder"] } @@ -36,4 +37,5 @@ std = [ "polkadot-sdk/std", "scale-info/std", "serde_json/std", + "sp-debug-derive/std", ]