-
Notifications
You must be signed in to change notification settings - Fork 30
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
Handle #[codec(index = …)]
in regular enums
#80
Merged
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
37c0a57
Parameterize CompactForm String for optional SCALE impl
ascjones 643f09d
Merge remote-tracking branch 'origin/master' into aj-compact-string
dvdplm 9a7ccbf
Fix no-std compilation
dvdplm 254fee1
Obey the fmt
dvdplm e74e4f9
Introduce String trait for Form
ascjones 7860c79
Rename "Compact" to "Frozen" (and associated fallout)
dvdplm 579f958
Docs cleanup and more renames
dvdplm 8333e5a
Cleanup
dvdplm 2818f7b
More cleanup
dvdplm 7706a38
Merge branch 'aj-compact-string' into dp-rename-compact-to-frozen
dvdplm e03a2cd
obey the fmt
dvdplm 3a95663
Add a `compact` flag to `Field` to indicate that this type is to be e…
dvdplm 004e107
Clippy warnings
dvdplm 93a9aeb
Acommodate older clippy
dvdplm 6569e50
Derive (scale) compact fields
dvdplm f098101
Merge branch 'master' into dp-flag-types-as-compact
dvdplm b43cdfc
Use utils from parity-scale-codec-derive
dvdplm eda2769
Merge remote-tracking branch 'origin/master' into dp-flag-types-as-co…
dvdplm 6321da9
Merge branch 'dp-flag-types-as-compact' into dp-handle-scale-skip
dvdplm 1d32a38
Merge remote-tracking branch 'origin/master' into dp-handle-scale-skip
dvdplm d1700b2
fmt
dvdplm 3387355
Merge branch 'master' into dp-handle-scale-skip
dvdplm d29c9be
Attempt to fix CI
dvdplm 0426479
FIx CI take 2
dvdplm 0a97eb1
Merge branch 'master' into dp-handle-scale-skip
dvdplm 81e3519
Merge branch 'master' into dp-handle-scale-skip
dvdplm e8d2a74
Use is_compact from utils
dvdplm d9239c5
Fn is enough
dvdplm 98292c5
Doc tweaks
dvdplm 71d7e11
Add tests for enums
dvdplm 00aee2f
Add test for indexed enum
dvdplm a31acc5
Oops
dvdplm e70425f
Update derive/src/utils.rs
dvdplm abdb081
Review feedback
dvdplm c53eb38
fmt
dvdplm 7c0c6f8
wip
dvdplm 1a0a030
Add indexed_*
dvdplm 2dd05cb
Renames, sort out todos
dvdplm 81e6fc3
fmt
dvdplm 14bbbe9
Capture docs for types, fields, and enum variants
ascjones 4e696dc
Add docs to derive tests
ascjones 55fc739
Fmt
ascjones ded2f3f
Fmt
ascjones 3b78d47
Make clippy happy
ascjones c74422d
Fix struct docs tests
ascjones 329d915
Fix struct docs tests
ascjones 637ab5a
Add missing Vec import
ascjones efdd3e4
Fix test
ascjones 77fc88a
Clear docs
ascjones 33f16f1
Merge branch 'master' into dp-handle-scale-index-in-regular-enums
dvdplm f06b059
Cleanup
dvdplm d15566f
Random change to kick CI in the butt
dvdplm 0d4d126
Fix(?) trybuild
dvdplm 912fbcb
Merge branch 'master' into aj-docs
ascjones 4151589
Promote build to it's own mod, split fields and variant builders
ascjones a0743b0
Refactor variant construction with builder
ascjones fd6f893
Fix up derive and unit tests with Variant builder
ascjones 52f5e83
Fmt
ascjones 2d2ab5c
Condense build module back to single file
ascjones c4bf49d
Fix up doc tests
ascjones 05d875b
Fix up README
ascjones 790a6b8
Define initial field builder
ascjones 0f3b795
Fix up field building
ascjones 655279a
Fix tests
ascjones 63b986a
Fully qualify calls to stringify
ascjones 150ef4e
Default impl for FieldBuilder
ascjones 43551f4
Fix up default impl
ascjones 0decd01
Fix spelling errors
ascjones e031939
Remove clear_docs
ascjones fdd96c3
Fully qualify module_path
ascjones 585a671
Update derive/src/lib.rs
ascjones a7179b5
Merge remote-tracking branch 'origin/aj-docs' into aj-docs
ascjones 4d73ae4
Use callback for variant builder
ascjones 59ff44c
Update README
ascjones e8ea40b
Remove leading space in doc comments
ascjones 1c01b94
Satisfy clippy
ascjones 0edec05
Add test for doc capture
ascjones fcc8985
Rename index back to discriminant, changes for this will be in https:…
ascjones 6fb8042
Rename index back to discriminant, changes for this will be in https:…
ascjones a0430e4
Merge branch 'master' into dp-handle-scale-index-in-regular-enums
ascjones 1cc85a7
Merge branch 'aj-docs' into dp-handle-scale-index-in-regular-enums
ascjones 8e61118
Update builders and fix tests
ascjones 0bb56bf
Merge branch 'master' into dp-handle-scale-index-in-regular-enums
ascjones b8ee0a7
Restore index on variant builder and fix tests
ascjones 2ebcd0c
Fmt
ascjones e016e9e
Clippy
ascjones 0a61395
Clippy
ascjones 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 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
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.
It's hard to overstate how much nicer this is compared to what I had.
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 was one of my goals with the builder pattern changes, so thanks!, The main priorities being type safe construction and friendliness for the derive macro. The tradeoff being that it is not fantastic for constructing type infos by hand, but we are assuming that is not very common.