Skip to content

Make getopts optional#10

Open
zjp-CN wants to merge 4 commits into
gamache:masterfrom
os-checker:make-getopts-optional
Open

Make getopts optional#10
zjp-CN wants to merge 4 commits into
gamache:masterfrom
os-checker:make-getopts-optional

Conversation

@zjp-CN

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

Copy link
Copy Markdown

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

blyxxyz commented Oct 12, 2024

Copy link
Copy Markdown
Contributor

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

zjp-CN commented Oct 12, 2024

Copy link
Copy Markdown
Author

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

eirnym commented Mar 18, 2025

Copy link
Copy Markdown

@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