Open cylewitruk opened 1 month ago
Don't forget to update package.rust-version
to 1.80
in Cargo.toml files where LazyLock
is used
@jbencin I think all of your comments are resolved now. Really like const_format
, good tip!
I went a step further and reverted to const LazyCell
where appropriate, changed a bunch of static
s to const
s which didn't need to be static and did some other general cleanup.
I added rust-version
to the workspace config and added rust-version.workspace = true
to all of the package Cargo.toml
files -- doesn't really make sense for this project for them to deviate from eachother imo.
Resolves #5035 however using
std::sync::LazyLock
instead ofstd::cell::LazyCell
because most of the values are used as statics (LazyCell
is forconst
-like behavior). Also changed a bunch of.unwrap()
s to.expect()
s to improve eventual error interpretation.const
+LazyCell
could likely be used for a handful of the values, but to determine those the usage of each needs to be evaluated, so I opted forLazyLock
for all of them as it most closely mimicsstatic_lazy!
.