Closed AlexTMjugador closed 1 year ago
Thanks for the contribution! I wasn't aware of once_cell
being a thing, its API surely is nicer than lazy_static
's so I agree the change is worthwhile.
You'll just need to reword your commit so it follows Conventional Commits to which I migrated this project to in order to automate releases. In this case it should be "chore(deps): replace dependency on lazy_static
by once_cell
".
Since your other PR (#15) would be something like fix(lexer): fix injecting ...
it'll trigger a release packing both these changes together when I merge it afterwards.
Thanks for the prompt response! I focused my attention on older commits and didn't notice that the project migrated to Conventional Commits. I'll take care of rewording commits and fixing my other PR soon.
once_cell
is a more ergonomic alternative tolazy_static
which provides a more straightforward syntax for lazily initialized statics. Its API is also closer to the nightlystd::sync::LazyLock
, which should make it easier to migrate to it in the event that it gets stabilized.once_cell
is also pulled in transitively more often thanlazy_static
by the dependencies of this project, and I think it's likely that the ecosystem will move toonce_cell
.