Skip to content

Make getopts optional #10

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zjp-CN
Copy link

@zjp-CN zjp-CN commented Oct 11, 2024

This PR mainly gates getopts as a default feature, so if jsonxf is used as a library, getopts won't be included in user's Cargo.lock.

Besides I explicitly set edition to 2021, update the Cargo.lock and fix the README.

But I bump the jsonxf version to v0.1.2, so would you mind making a release on crates.io?

@blyxxyz
Copy link
Contributor

blyxxyz commented Oct 12, 2024

Nice! This'll let us keep getopts out of our dependency tree as well.

I wouldn't bump the edition though, unless it's useful for code changes the only effect is to raise the MSRV.

@zjp-CN
Copy link
Author

zjp-CN commented Oct 12, 2024

The only reason to set the edition is Cargo is emitting a warning for lack of edition field.

I don't mind setting it back to 2015.

zjp-CN added a commit to os-checker/os-checker that referenced this pull request Nov 12, 2024
@eirnym
Copy link

eirnym commented Mar 18, 2025

@gamache any news to include this patch?!

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.

4 participants