Skip to content

Commit a7d76ec

Browse files
authored
Enable warnings if component-model is disabled (bytecodealliance#10141)
Continuation of work in bytecodealliance#10131
1 parent b9b0ba4 commit a7d76ec

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

crates/wasmtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ reexport-wasmparser = []
356356

357357
# Enables instances of the traits defined in the wasm-wave crate, which
358358
# provides a human-readable text format for component values.
359-
wave = ["dep:wasm-wave"]
359+
wave = ["dep:wasm-wave", 'component-model']
360360

361361
# For platforms that Wasmtime does not have support for Wasmtime will disable
362362
# the use of virtual memory by default, for example allocating linear memories

crates/wasmtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@
292292
not(feature = "cranelift"),
293293
not(feature = "pooling-allocator"),
294294
not(feature = "runtime"),
295-
not(feature = "component-model"),
296295
not(feature = "std"),
297296
),
298297
allow(dead_code, unused_imports)

crates/wasmtime/src/runtime/vm/memory/shared_memory.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::prelude::*;
22
use crate::runtime::vm::memory::{validate_atomic_addr, LocalMemory, MmapMemory};
33
use crate::runtime::vm::parking_spot::{ParkingSpot, Waiter};
4-
use crate::runtime::vm::vmcontext::VMMemoryDefinition;
5-
use crate::runtime::vm::{Memory, VMStore, WaitResult};
4+
use crate::runtime::vm::{Memory, VMMemoryDefinition, VMStore, WaitResult};
65
use std::cell::RefCell;
76
use std::ops::Range;
87
use std::ptr::NonNull;

0 commit comments

Comments
 (0)