Migrate most of wasmtime from lazy_static to once_cell (#4368)
* Update tracing-core to a version which doesn't depend on lazy-static. * Update crossbeam-utils to a version that doesn't depend on lazy-static. * Update crossbeam-epoch to a version that doesn't depend on lazy-static. * Update clap to a version that doesn't depend on lazy-static. * Convert Wasmtime's own use of lazy_static to once_cell. * Make `GDB_REGISTRATION`'s comment a doc comment. * Fix compilation on Windows.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
use more_asserts::assert_gt;
|
||||
pub mod config;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref TESTCONFIG: config::TestConfig = config::TestConfig::from_env();
|
||||
}
|
||||
pub static TESTCONFIG: Lazy<config::TestConfig> = Lazy::new(config::TestConfig::from_env);
|
||||
|
||||
// The `wasi` crate version 0.9.0 and beyond, doesn't
|
||||
// seem to define these constants, so we do it ourselves.
|
||||
|
||||
Reference in New Issue
Block a user