-
Notifications
You must be signed in to change notification settings - Fork 31
feat: add enum variants #244
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
feat: add enum variants #244
Conversation
|
Could you revert the |
|
Ah, it seems many of my dependencies have raised their MSRV (both Min and Max version it seems, even) :') |
|
Indeed, I'm seeing that the wasm crate requires a newer version of Rust: I'll check what's the MSRV I can get away with. I'll check if StaticType supports the reflection, the manual building might be a relic of when I was trying the recursion. |
Also remove unnecessary simple type definition
|
WASM Bindgen MSRV is 1.76, which was released in February 2024, about fifteen months ago now. |
|
I thought that the tests passed locally the other day, but now they don't anymore ... and the errors are not related to the changes I'm proposing here. (Edit: It's likely that I only tested the When running the tests are the root of the crate: When running from the serde_dhall folder: Any idea how I could fix these? Or do these only work on Github for some reason? I'll make another commit now that runs clippy on the other crates if it's OK. Since these changes are in their own commit, you should be able to trivially revert them if you prefer. |
|
Could you make a separate PR for the clippy fixes? Regarding the dhall.abnf error, did you maybe change the dhall-lang submodule to another commit than the one in version control? |
|
Btw a MSRV change is not a minor change, we should bump to |
|
Sure thing! I've updated the version to 0.13.0 in the three different files that require the change, and undid the clippy changes. However, in updating the version, there will necessarily be a change in the Cargo.lock file. Concerning the submodule, I had not initialized it, so I don't think I had modified the commit it points to. I'm not entirely sure what is happening there. Edit: When fetching for your repo (instead of my fork), git reports that the referenced commit on dhall-lang does not exist: |
|
I'll merge #245 into this branch to avoid conflicts with the objective of merging 245 before this PR. |
|
I did the changelog and version updates myself; could you rebase on top of master? |
…-simple-type-issue-242-impl0
|
Regarding dhall I'm on 204a9d9dd167d2c9038539148a09825ded62f1b8, how did you get that other commit? |
…-simple-type-issue-242-impl0
|
Sorry, I got pretty confused trying to undo the clippy changes, and with the various merges. So I cherry picked the commit that implements the enum struct variants onto its own branch here: #246 . |
This PR adds enum variants to simple types. The tests are separate from the enum function in serde.rs because these require a type annotation.
This is a zeroth implementation of #242 . A subsequent PR, if I can figure it out (likely with help), will enable recursive types.
This PR also runs clippy on the codebase, cleaning up some legacy implementation. This is a separate commit to make it easy to undo.