This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Restructure frame_support
macro related exports
#14745
Merged
paritytech-processbot
merged 33 commits into
master
from
jg/restructure-macro-related-exports
Aug 23, 2023
Merged
Changes from 20 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1dfc9b4
make reexports private
juangirini dccfaeb
make reexports private 2
juangirini 9706353
make reexports private for runtime-benchmarking
juangirini 7d6c124
make reexports private for try-runtime
juangirini 87fd6de
fix for try-runtime
juangirini 1ffc743
make reexports private for tests
juangirini 222b45d
rebase and fix conflicts
juangirini e795557
fmt
juangirini 4c9ef13
make reexports private for tests
juangirini 4d0b806
make reexports private for experimental
juangirini e32c82f
fix beefy
juangirini 4386de3
fix ui test
juangirini 54657c0
fix ui test
juangirini 3566961
fix benches
juangirini 08de067
Merge branch 'master' into jg/restructure-macro-related-exports
juangirini c419d4a
".git/.scripts/commands/fmt/fmt.sh"
b931ecb
fix contracts use
juangirini f4e5f55
wip
juangirini 4ecbfff
wip
juangirini b7eaa34
Merge remote-tracking branch 'origin/master' into jg/restructure-macr…
juangirini 095356c
do not reexport sp_api::metadata_ir
juangirini 3bc2ddc
Merge branch 'master' into jg/restructure-macro-related-exports
juangirini 3816fc4
fix CI checks
juangirini 32f74a6
fix support tests
juangirini 7d7d73b
".git/.scripts/commands/fmt/fmt.sh"
86ddd81
Update frame/support/src/lib.rs
juangirini 5d00dfd
import codec directly
juangirini a6a4e3d
fmt
juangirini 4df379c
Merge remote-tracking branch 'origin/master' into jg/restructure-macr…
0fcc322
fix node-cli tests
juangirini daf3dcb
Merge remote-tracking branch 'origin/master' into jg/restructure-macr…
e94e54b
Merge remote-tracking branch 'origin/master' into jg/restructure-macr…
20a95f2
Merge branch 'master' into jg/restructure-macro-related-exports
juangirini 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
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.
this feels..wrong.
curious why we need to do it this way, and can't just pull
Encode
andDecode
from theircodec
crate.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.
To make it correct, you would need to re-export codec from
frame-benchmarking
.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.
yes, benchmarking re-exports will follow in the parent issue https://github.com/paritytech/substrate/issues/14213
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.
Because its a macro that emits code. The emitted code cannot make the assumption that
codec
is in theCargo.toml
of the crate that it is being used by.We therefore need to ship a macro will all exports that it needs.