Skip to content
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

fix command-line argument parsing of integers #548

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Conversation

pjw91
Copy link

@pjw91 pjw91 commented Mar 17, 2025

This requires serde_json >= 1.0.130 (latest: 1.0.140)

It seems that version of serde_json pinned loosely to "1":

src/generator/templates/Cargo.toml.mako:serde_json = "1"

Thus, a rebuild should work.

Should I also upgrade to serde_json = "1.0.130"?

Closes #542

@paolobarbolini
Copy link
Contributor

Drive by review:

Should I also upgrade to serde_json = "1.0.130"?

Sounds like a good idea to me.

Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, great work!

It seems this bug was in the CLI code for a long time, maybe a copy paste error as well.

@Byron Byron merged commit 7ab6592 into Byron:main Mar 19, 2025
5 of 6 checks passed
@Byron
Copy link
Owner

Byron commented Mar 19, 2025

PS: If you think you can take on the CLI build failure, that would be extra-awesome! It's a known failure, but it's from times where this wasn't tested so changes could silently break the CLI. Maybe it's just a small thing, and the momentum from this PR could be used to solve maybe solve it more easily.

@pjw91 pjw91 deleted the i542 branch March 19, 2025 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

argument parse failed: invalid type: floating point 0.0, expected u32
3 participants