Skip to content

Commit

Permalink
Enable warnings if component-model is disabled
Browse files Browse the repository at this point in the history
Continuation of work in bytecodealliance#10131
  • Loading branch information
alexcrichton committed Jan 28, 2025
1 parent b9b0ba4 commit 5488bca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ reexport-wasmparser = []

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

# For platforms that Wasmtime does not have support for Wasmtime will disable
# the use of virtual memory by default, for example allocating linear memories
Expand Down
1 change: 0 additions & 1 deletion crates/wasmtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@
not(feature = "cranelift"),
not(feature = "pooling-allocator"),
not(feature = "runtime"),
not(feature = "component-model"),
not(feature = "std"),
),
allow(dead_code, unused_imports)
Expand Down
3 changes: 1 addition & 2 deletions crates/wasmtime/src/runtime/vm/memory/shared_memory.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::prelude::*;
use crate::runtime::vm::memory::{validate_atomic_addr, LocalMemory, MmapMemory};
use crate::runtime::vm::parking_spot::{ParkingSpot, Waiter};
use crate::runtime::vm::vmcontext::VMMemoryDefinition;
use crate::runtime::vm::{Memory, VMStore, WaitResult};
use crate::runtime::vm::{Memory, VMMemoryDefinition, VMStore, WaitResult};
use std::cell::RefCell;
use std::ops::Range;
use std::ptr::NonNull;
Expand Down

0 comments on commit 5488bca

Please sign in to comment.