matklad / once_cell

Rust library for single assignment cells and lazy statics without macros
Apache License 2.0
1.84k stars 110 forks source link

Release 1.15.0 #198

Closed matklad closed 2 years ago

matklad commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Canceled.

matklad commented 2 years ago

bors r+

matklad commented 2 years ago

NB: this bump MSRV to 1.56.0. I think this should be fine, but, if you have specific objection to that, I'd love to hear.

This PR pushes 1.15.0-pre.1, I'll upgrade that to 1.15.0 proper next week.

bors[bot] commented 2 years ago

Build succeeded:

notgull commented 2 years ago

My main objection is that Debian stable still uses Rust 1.48, so this would prevent crates I maintain that are dependent on this crate from building on there.

matklad commented 2 years ago

re-reading https://github.com/rust-lang/libs-team/issues/72, I think my stance on that is that once-cell intends to support projects which generally keep with up-to-date Rust, while also providing generous comparability window. It is a non-goal to support use-cases which have to use old compilers without intention to upgrade.

For debian-stable-like specifically, I think the reasonable choices are:

This is based primarily on two observations:

matklad commented 2 years ago

From tokio discussion:

Tokio has MSRV of 6 month, but it also has a 12 month LTS, which means that effective MSRV for tokio is 18.

I don't think it makes sense for once_cell to chase downstream LTS promises (which is a restatement of the policy above that says that once_cell generally caters to users who aspire to use a somewhat up-to-date compiler).

So, I'll cut a release!