-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
chore: prepare tokio-macros v2.0.0 #5580
Conversation
I don't think increasing the major version is the right solution here. tokio-macros is also dependent on tokio's private APIs, so it is not always easy to determine in exactly which cases you need to increase the major version or not. Instead, I would recommend using the same version number as tokio and using the |
If we were intended to support the use of the latest tokio-macros and older tokio together, I think it may need a major release. However, if we did not intend to support it, the current behavior of being able to depend on a newer version that may not work by mistake is a bug. (Older versions could break at any time anyway, and may also already be broken.) That said, I'm not opposed to making a major release here. It indeed helps for previous versions that are not currently broken. |
This isn't a requirement, but what we need to avoid is breaking LTS releases. Unfortunately, all the current LTS releases do not use So, I think the proposal is:
We should be good moving forward. Do you agree? |
I don't think we actually want |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment based on the discussino.
tokio/Cargo.toml
Outdated
@@ -97,7 +97,7 @@ stats = [] | |||
autocfg = "1.1" | |||
|
|||
[dependencies] | |||
tokio-macros = { version = "1.7.0", path = "../tokio-macros", optional = true } | |||
tokio-macros = { version = "2.0.0", path = "../tokio-macros", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this to pin the dependence to 2.0.x
per the discussion.
That's okay too. I was thinking of the following (a way that doesn't bump to 2.0):
Yeah, |
@taiki-e, our policy is patch releases for "important" bug fixes only. Minor releases for everything else. |
How about this solution?
|
@Darksonn Sounds good to me!
I was mainly thinking about the case of tokio's private API being changed to fix a bug in tokio-macros (and the opposite). That said, I think my concern is addressed by the solution proposed by Darksonn:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks
2.0.0 (March 24th, 2023)
This major release updates the dependency on the syn crate to 2.0.0, and increases the MSRV to 1.56.
As part of this release, we are adopting a policy of incrementing the tokio-macros major version more often. This reduces the chance of issues where people are confused about the same version of Tokio not behaving in the same way, if you happen to be using two different versions of tokio-macros.
syn
(#5572)