rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.9k stars 108 forks source link

Properly bump spin to 0.9 #191

Closed ghost closed 2 years ago

ghost commented 2 years ago

This PR bumps the spin crate to the latest version. spin depends on std by default (the std feature) so default-features=false is required. You don't need anything except Once from that crate anyway.

Unfortunately, MSRV needs to be bumped to 1.49, but only when the spin_no_std feature is enabled - normal std usage will continue work on old compilers as it has been. This bump is necessary since the spin crate requires 1.49 because of core::hint::spin_loop.

Pinging @KodrAus as the last person with write access noticed.