-
Notifications
You must be signed in to change notification settings - Fork 256
Fix runtime no-std/std builds, and other missing features #3426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
653561a
Add missing std feature in tests
teor2345 94bff8b
Add missing std features in subspace-runtime
teor2345 d6fc9bf
Add missing std feature in subspace-test-runtime
teor2345 5b61b04
Add missing std features in sc-consensus-subspace
teor2345 a02058f
Add missing sc-domains std features
teor2345 8867a33
Add missing std features to sc-proof-of-time
teor2345 1661bc9
Add missing std features to sc-subspace-block-relay
teor2345 e07b9b1
Add missing std feature to subspace-networking
teor2345 c657f0b
Add missing std features to domain-block-preprocessor
teor2345 fb6542e
Add missing tokio/rt feature in subspace-data-retrieval
teor2345 a0c83d0
Add missing test-ethereum test dependencies
teor2345 e1db651
Add missing std test dependencies
teor2345 f31db60
Add missing rand/std dependencies in benchmarks
teor2345 5ae530b
Build runtimes in CI
teor2345 226c277
Check each crate individually to make sure no_std works
teor2345 75217f5
Use descriptive names and comments
teor2345 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,14 @@ rlp = { workspace = true, optional = true } | |
| num-traits.workspace = true | ||
| rand = { workspace = true, features = ["min_const_gen"] } | ||
|
|
||
| # test-ethereum dependencies | ||
| ethereum.workspace = true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this to be duplicated in test deps and actual deps ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it is required by the tests, but optional for production code. |
||
| fp-self-contained = { workspace = true, features = ["default"] } | ||
| frame-system.workspace = true | ||
| libsecp256k1 = { workspace = true, features = ["static-context", "hmac"] } | ||
| pallet-evm.workspace = true | ||
| rlp.workspace = true | ||
|
|
||
| [features] | ||
| default = ["std"] | ||
| std = [ | ||
|
|
@@ -76,6 +84,13 @@ std = [ | |
| "subspace-core-primitives/std", | ||
| "subspace-runtime-primitives/std", | ||
| "trie-db/std", | ||
| # test-ethereum dependencies | ||
| "ethereum?/std", | ||
| "fp-self-contained?/std", | ||
| "frame-system?/std", | ||
| "libsecp256k1?/std", | ||
| "pallet-evm?/std", | ||
| "rlp?/std", | ||
| ] | ||
| runtime-benchmarks = [] | ||
| test-ethereum = [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically not required if we can just clippy consensus runtime and domain runtimes with no-std
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would only discover some issues. The runtimes all build with commit 94bff8b, but there are fixes to 10+ other crates that are only covered by this check (see the fix commits after that commit).
It only takes
2.5 minutes(edit: still working out how long it takes) to run these checks, so it seems worth doing them.