-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validate Codegen Settings #11
Merged
Merged
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
874e795
change interface
tadeohepperle ca78ad5
recursive derives
tadeohepperle 4fe27fa
added test and comments
tadeohepperle 8f3af3b
Merge branch 'master' into recursive-derives
tadeohepperle ce60070
readd test
tadeohepperle 390cd15
formatting adjustment
tadeohepperle fcfb267
fix example and unused dependencies
tadeohepperle ffa5ea3
add documentation to everything.
tadeohepperle 8ae1090
fix bugs in generic recursion of container types
tadeohepperle 83bda09
clippy fix
tadeohepperle 66302dc
fix dependencies
tadeohepperle f7fff3b
remove the generated rs code
tadeohepperle 1be27b3
make scale_typegen directly accessible
tadeohepperle 7ff03ad
Debug and Clone derives on relevant structs
tadeohepperle dcdeef5
fix comments in code
tadeohepperle 4cf3e7b
add compact encoding differentiation
tadeohepperle 361fa5b
fix pipeline error by hiding scale-typegen in description behind flag
tadeohepperle ddda6e0
add access to type registry
tadeohepperle 9163658
give middleware access to transformer to resolve types
tadeohepperle 619529c
nit: fix docs on recurse_policy
tadeohepperle 89e4de0
add struct prefix, fix variant space bug
tadeohepperle 1798db5
add cargo machete in CI/CD
tadeohepperle 68cbc09
remove #![deny(unused_crate_dependencies)] in description crate
tadeohepperle 68e2857
introduce validation, currently broken tests
tadeohepperle f9bad26
fix syn path issues
tadeohepperle f052257
add test for type suggestions
tadeohepperle 8904669
introduce cache hit policy
tadeohepperle 119bf73
fine grained control over cache hit behavior
tadeohepperle cfec37d
remove should_continue and other things
tadeohepperle 588b7a9
Merge branch 'recursive-derives' into tadeohepperle/validate-codegen
tadeohepperle e0a4e68
remove smallvec
tadeohepperle 47fae43
remove smallvec
tadeohepperle 55f6464
generic arguments are working much better now
tadeohepperle ed27633
Merge branch 'recursive-derives' into tadeohepperle/validate-codegen
tadeohepperle be6186a
fix test
tadeohepperle 0f283b0
merge
tadeohepperle 2921dcd
restructure code
tadeohepperle 1233641
validation error display
tadeohepperle 08f60d9
remove panics from docs
tadeohepperle 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
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.
nit; It would be interesting to see if we could provide alternative types. Since we cannot find type
a::b::Ty
, we could inspect the type registry forTy
and return all valid paths.Which for an xcm MultiLocation it would return both v2 and v3 entries, which might make things easier during development. Tho, this could probably be a follow-up
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.
I have a feeling that Subxt won't be able to use the function that produces this error, so it may well be that it's not that useful for us actually, and instead we'll lean on those other
validation.rs
functions, one of which does provide a list of similar pathsThere 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.
Yeah, the
similar_type_paths_in_registry
function can do that, but I have not put it into theSettingsValidationError
, to not bloat it too much. We should definitely do this though from the subxt macro side.