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

Remove unnecessary lazy_static dependency #176

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

Conversation

atezet
Copy link
Contributor

@atezet atezet commented Sep 30, 2024

Note that this PR upgrades the MSRV to 1.80

Resolves #175
Closes #119
Closes #170

@spenserblack
Copy link
Collaborator

Edited PR body to link to relevant issue

Copy link
Collaborator

@spenserblack spenserblack left a comment

Choose a reason for hiding this comment

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

LGTM (but see nitpick). But I'm personally not sure when we should decide it's time to jump from 1.70 to 1.80.

Cargo.toml Outdated
"Win32_Foundation",
"Win32_System_Console",
]
features = ["Win32_Foundation", "Win32_System_Console"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm personally pretty nitpicky about unnecessary noise in diffs.

For example, if I used git blame to find who created these features, the blame would pick you if this PR was merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this change in a force push

Copy link
Collaborator

@spenserblack spenserblack left a comment

Choose a reason for hiding this comment

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

Should've run tests before reviewing 😅

The tests should also change in this PR.

@atezet
Copy link
Contributor Author

atezet commented Sep 30, 2024

Thanks! About when to merge; I'm not sure either. I'll leave that to you if that's okay. I didn't notice that there was already an issue for this.

@spenserblack
Copy link
Collaborator

No problem! I'll leave this PR open to give other maintainers a chance to offer their thoughts.

This PR conflicts with #170, but I'm thinking that this PR looks a little better.

@atezet
Copy link
Contributor Author

atezet commented Sep 30, 2024

It does; but the other one doesn't require upgrading the MSRV, if I'm not mistaken. Still a breaking change nonetheless

@kurtlawrence
Copy link
Collaborator

Lgtm!

@atezet
Copy link
Contributor Author

atezet commented Oct 2, 2024

Thanks! To fix the semver check, should I increase the crate's version? Or is that done in a separate PR

@spenserblack
Copy link
Collaborator

Thanks! To fix the semver check, should I increase the crate's version?

Good question! @kurtlawrence What I've been doing in a personal project is increasing the crate version whenever a PR makes a change that would bump it. It makes it pretty easy to release since your crate version is already at the correct incrementation, and you just have to compare the current crate version to the latest release if you need to double-check if you need to bump the version.

@kurtlawrence
Copy link
Collaborator

Thanks! To fix the semver check, should I increase the crate's version?

Good question! @kurtlawrence What I've been doing in a personal project is increasing the crate version whenever a PR makes a change that would bump it. It makes it pretty easy to release since your crate version is already at the correct incrementation, and you just have to compare the current crate version to the latest release if you need to double-check if you need to bump the version.

I don't particularly mind. This crate doesn't see a lot of changes, so increasing/publishing with each PR is probably fine and would avoid having main go too far out of date with crates.io

I think if I was more active with this repo I'd try to bundle a bunch of PRs into a single release, but unfortunately I don't have much time to spend on this 😢

Thanks @spenserblack for being active in the repo ❤️

@atezet
Copy link
Contributor Author

atezet commented Oct 3, 2024

Tiny question; shall I make it 2.2.0 or 3.0.0?

@spenserblack
Copy link
Collaborator

I've heard some arguments to the contrary, but IMO an increase in the MSRV is a breaking (major) release.

@atezet
Copy link
Contributor Author

atezet commented Oct 4, 2024

Bumped the version to 3.0.0. However, I noticed clippy mentioned a lot of things to me; would you want me to fix these (in a separate PR) as well before merging this one and bumping the version to 3.0.0 (some of them break backwards compatibility)? I'd happily do it as I'm working on the code already anyway

@spenserblack
Copy link
Collaborator

@atezet Just a warning that I just force-pushed (formatting nitpick).

@atezet
Copy link
Contributor Author

atezet commented Oct 9, 2024

Oh, did I reintroduce that with the version bump? Thanks!

@spenserblack
Copy link
Collaborator

No problem! I'm guessing it's an auto-formatter at work. My personal trick is to call git add --patch (-p for short). This starts an interactive session that allows you to stage chunks instead of entire files, and also gives you a chance to review the changes. This helps me commit only the changes I want.

@atezet
Copy link
Contributor Author

atezet commented Oct 23, 2024

Anything needed to get this merged?

@spenserblack
Copy link
Collaborator

Anything needed to get this merged?

It looks good, but I'm personally not merging yet because I'm not sure how other maintainers feel about this making it in to the next release.

@atezet
Copy link
Contributor Author

atezet commented Oct 23, 2024

Any way to reach them?

@spenserblack
Copy link
Collaborator

@kurtlawrence Since you've been maintaining before me I don't want to step on any toes. Thoughts on merging this?

@spenserblack
Copy link
Collaborator

On December 9th we bumped up minimum version 1.70 (released June 2023). At that time 1.74 was already out. So you could say that we support roughly 6 months back, or 4 minor releases back 🤷 If we want to roughly follow this schedule, next year would be when the MSRV would be bumped to 1.80.

@atezet
Copy link
Contributor Author

atezet commented Oct 24, 2024

That makes sense. Although I feel like it wouldn't really matter if there aren't any other updates in the meantime (which you'll never know of course).

@spenserblack
Copy link
Collaborator

I've actually seen the practice of keeping PRs unmerged until shortly before a new release. The linguist repository is an example of that.

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.

Use standard LazyLock (Rust 1.80) instead of lazy_static dependencies.
3 participants