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

Migrate most of wasmtime from lazy_static to once_cell #4368

Conversation

sunfishcode
Copy link
Member

Several of Wasmtime's dependencies have migrated from lazy_static to once_cell, including crossbeam, clap, and tracing. This PR updates to those versions, and ports all of Wasmtime's own uses of lazy_static to once_cell.

And, once_cell has a friendlier API, with no macro and no ref keyword.

That said, there still are a few transitive dependencies on lazy_static.

@sunfishcode sunfishcode force-pushed the sunfishcode/minimize-lazy-static branch 2 times, most recently from 0e9b82a to f32304e Compare July 2, 2022 15:57
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator fuzzing Issues related to our fuzzing infrastructure isle Related to the ISLE domain-specific language wasi Issues pertaining to WASI wasmtime:api Related to the API of the `wasmtime` crate itself labels Jul 2, 2022
@github-actions
Copy link

github-actions bot commented Jul 2, 2022

Subscribe to Label Action

cc @cfallin, @fitzgen, @kubkon, @peterhuene

This issue or pull request has been labeled: "cranelift", "fuzzing", "isle", "wasi", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • cfallin: isle
  • fitzgen: fuzzing, isle
  • kubkon: wasi
  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@sunfishcode sunfishcode force-pushed the sunfishcode/minimize-lazy-static branch from 7af80ce to b653340 Compare July 5, 2022 15:38
@sunfishcode sunfishcode force-pushed the sunfishcode/minimize-lazy-static branch from b653340 to 19cbc8f Compare July 5, 2022 16:02
@sunfishcode sunfishcode merged commit 371ae80 into bytecodealliance:main Jul 5, 2022
@sunfishcode sunfishcode deleted the sunfishcode/minimize-lazy-static branch July 5, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator fuzzing Issues related to our fuzzing infrastructure isle Related to the ISLE domain-specific language wasi Issues pertaining to WASI wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants