Skip to content

How about once_cell instead of lazy_static #20

@ryo33

Description

@ryo33

It provides Lazy, a non-macro version of lazy_static.

Here is the link: https://github.com/matklad/once_cell
It says:

The API of once_cell is being proposed for inclusion in std.

Also, here is the tracking issue of it: rust-lang/rust#74465

This is a matter of preference, but I favor once_cell.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions