Skip to content

Commit

Permalink
add force debug feature (#85)
Browse files Browse the repository at this point in the history
so that I can make debugging build easier 

let me know if I should add this to system parachains as well

---------

Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
xlc and bkchr authored Jan 26, 2024
1 parent 4e41af1 commit 18a45cc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added

- Introduce chain spec generator ([polkadot-fellows/runtimes#127](https://github.com/polkadot-fellows/runtimes/pull/127))
- Add [Encointer](https://encointer.org) system parachain runtime, completing [RFC22](https://github.com/polkadot-fellows/RFCs/blob/main/text/0022-adopt-encointer-runtime.md) ([polkadot-fellows/runtimes#80](https://github.com/polkadot-fellows/runtimes/pull/80))
- Add [Encointer](https://encointer.org) system parachain runtime, completing [RFC22](https://github.com/polkadot-fellows/RFCs/blob/main/text/
0022-adopt-encointer-runtime.md) ([polkadot-fellows/runtimes#80](https://github.com/polkadot-fellows/runtimes/pull/80))
- Feature for enabling debug prints in the Polkadot and Kusama runtime ([polkadot-fellows/runtimes#85](https://github.com/polkadot-fellows/runtimes/pull/85))

### Changed

Expand Down
23 changes: 18 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions relay/kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ xcm = { package = "staging-xcm", default-features = false , version = "4.0.0" }
xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "4.0.0" }
xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "4.0.0" }

sp-debug-derive = { default-features = false, version = "10.0.0" }

[dev-dependencies]
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
keyring = { package = "sp-keyring", version = "28.0.0" }
Expand Down Expand Up @@ -216,6 +218,7 @@ std = [
"sp-application-crypto/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-genesis-builder/std",
"sp-io/std",
"sp-mmr-primitives/std",
Expand Down Expand Up @@ -356,3 +359,5 @@ on-chain-release-build = [ "sp-api/disable-logging" ]
fast-runtime = []

runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ]

force-debug = [ "sp-debug-derive/force-debug" ]
5 changes: 5 additions & 0 deletions relay/polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ xcm = { package = "staging-xcm", default-features = false , version = "4.0.0" }
xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "4.0.0" }
xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "4.0.0" }

sp-debug-derive = { default-features = false, version = "10.0.0" }

[dev-dependencies]
hex-literal = "0.4.1"
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
Expand Down Expand Up @@ -209,6 +211,7 @@ std = [
"sp-application-crypto/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-genesis-builder/std",
"sp-io/std",
"sp-mmr-primitives/std",
Expand Down Expand Up @@ -340,3 +343,5 @@ on-chain-release-build = [ "sp-api/disable-logging" ]
fast-runtime = []

runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ]

force-debug = [ "sp-debug-derive/force-debug" ]

0 comments on commit 18a45cc

Please sign in to comment.