Update dependencies and use Once::new() instead of ONCE_INIT
This commit is contained in:
10
Cargo.toml
10
Cargo.toml
@@ -27,11 +27,11 @@ winx = { path = "winx" }
|
|||||||
winapi = "0.3"
|
winapi = "0.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||||
wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||||
wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||||
wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||||
cranelift-codegen = "0.41.0"
|
cranelift-codegen = "0.44.0"
|
||||||
cranelift-entity = "0.44.0"
|
cranelift-entity = "0.44.0"
|
||||||
cranelift-wasm = "0.44.0"
|
cranelift-wasm = "0.44.0"
|
||||||
cranelift-native = "0.44.0"
|
cranelift-native = "0.44.0"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
mod runtime;
|
mod runtime;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
use std::sync::{Once, ONCE_INIT};
|
use std::sync::Once;
|
||||||
|
|
||||||
static LOG_INIT: Once = ONCE_INIT;
|
static LOG_INIT: Once = Once::new();
|
||||||
|
|
||||||
fn setup_log() {
|
fn setup_log() {
|
||||||
LOG_INIT.call_once(|| {
|
LOG_INIT.call_once(|| {
|
||||||
|
|||||||
Reference in New Issue
Block a user