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

RFC: moving the minimum required version of Rust to 1.70.0 by end of 2023 #24

Closed
adriandelgado opened this issue Apr 10, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@adriandelgado
Copy link
Contributor

adriandelgado commented Apr 10, 2023

If everything goes well OnceCell is going to land on Rust 1.70 (June 1st). See: rust-lang/rust#105587

It's always nice to get rid of a dependency.

@jmcnamara
Copy link
Owner

It's always nice to get rid of a dependency.

Agreed. This will need to wait until Rust 1.70, right?

@jmcnamara jmcnamara self-assigned this Apr 10, 2023
@jmcnamara jmcnamara added the enhancement New feature or request label Apr 10, 2023
@adriandelgado
Copy link
Contributor Author

Agreed. This will need to wait until Rust 1.70, right?

Yep. I don't know if you have a MSRV. I would suggest not to have it since this crate is in rapid/frequent development and changes.

@jmcnamara
Copy link
Owner

Yep. I don't know if you have a MSRV.

I don't. If this has a hard requirement on Rust 1.70 then I'm probably going to pass on this change for a year or more.

I'll close it for now.

@jmcnamara jmcnamara reopened this Jun 2, 2023
@jmcnamara
Copy link
Owner

jmcnamara commented Jun 2, 2023

Reopening this since Rust v1.70 is out. I'm looking for opinions on whether people would any concerns about having v1.70 as a MSRV for rust_xlsxwriter in order to drop a dependency. The current implicit MSRV is v1.68.2.

@jmcnamara jmcnamara changed the title Drop lazy_static dependency once std gets OnceCell RFC: moving the minimum required eraion of Rust to 1.70.0 Jun 3, 2023
@jmcnamara jmcnamara changed the title RFC: moving the minimum required eraion of Rust to 1.70.0 RFC: moving the minimum required version of Rust to 1.70.0 Jun 4, 2023
@jmcnamara jmcnamara changed the title RFC: moving the minimum required version of Rust to 1.70.0 RFC: moving the minimum required version of Rust to 1.70.0 by end of 2023 Jul 28, 2023
@jmcnamara
Copy link
Owner

Closing again. The MSRV of rust_xlsxwriter will depend on the MSRV of Polars if it is eventually integrated for xlsx generation.

@jmcnamara jmcnamara closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@jmcnamara jmcnamara reopened this Jun 14, 2024
jmcnamara added a commit that referenced this issue Jun 14, 2024
Remove dependency on lazy_static and replace it with std::cell::OnceCell.

Feature request #24
@jmcnamara
Copy link
Owner

Just to note that I had to push the MSRV to v1.73.0 to pick up the latest 2.x versions of zip.rs which includes a fix required by rust_xlsxwriter. As a result of that I also replaced lazy_static with std::cell::OnceCell.

This will be upstreamed soon in rust_xlsxwriter v0.67.0.

@adriandelgado
Copy link
Contributor Author

I left some comments on the commit in question. Please check them out before releasing v0.67.0.

jmcnamara added a commit that referenced this issue Jun 14, 2024
Remove dependency on lazy_static and replace it with std::cell::OnceLock.

Feature request #24
@jmcnamara
Copy link
Owner

jmcnamara commented Jun 14, 2024

@adriandelgado Thanks for the input. When you get a chance can you have a look at the revised (and rebased) change on main. The main code change is the macro-ised in lib.rs and the test handler.

@jmcnamara jmcnamara reopened this Jun 16, 2024
@jmcnamara
Copy link
Owner

Fixed in v0.67.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants