colored-rs / colored

(Rust) Coloring terminal so simple you already know how to do it !
Mozilla Public License 2.0
1.73k stars 83 forks source link

Move away from lazy_static #163

Closed xTachyon closed 3 months ago

xTachyon commented 9 months ago

Is there a plan to move away from lazy_static? This seems to pull an ancient version of spin that, at least for me, results in a duplicated dependency.

I think the new way of doing this is through OnceLock, which conveniently is introduced in 1.70, which is the MSRV for this crate.

kurtlawrence commented 9 months ago

Hi @xTachyon! We would welcome the change if you would like to raise a PR :smile:

RuboGubo commented 3 months ago

should this issue be open?

spenserblack commented 3 months ago

Looks like #164 intended to close this, but unfortunately (and somewhat surprisingly) "solves" isn't one of the keywords that GitHub picks up. "resolves" is, though 🙂