Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construction of globals should be punted to a third-party library #161

Open
mmastrac opened this issue Sep 1, 2021 · 2 comments
Open

Construction of globals should be punted to a third-party library #161

mmastrac opened this issue Sep 1, 2021 · 2 comments
Labels

Comments

@mmastrac
Copy link
Owner

mmastrac commented Sep 1, 2021

The static initialization of variables is a holdover from pre-const Rust. We should translate them to a form compatible with a third-party library, for example:

https://crates.io/crates/static_init

@mmastrac mmastrac mentioned this issue Sep 1, 2021
3 tasks
@mmastrac mmastrac added the 1.0 label Sep 1, 2021
@dmgolembiowski
Copy link

The static initialization of variables is a holdover from pre-const Rust. We should translate them to a form compatible with a third-party library, for example:

https://crates.io/crates/static_init

Do either of the cache-fn or lazy-fn crates meet the need for pre-const support?

@dtolnay
Copy link
Contributor

dtolnay commented Mar 27, 2023

All those crates depend on syn so they may not work out for this, given #124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants