Skip to content

Commit 26c0fbf

Browse files
committed
Fixup rebase conflicts
1 parent 86b1c34 commit 26c0fbf

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/wasmtime/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ smallvec = { workspace = true, optional = true }
6262
hashbrown = { workspace = true, features = ["default-hasher"] }
6363
bitflags = { workspace = true }
6464
futures = { workspace = true, features = ["alloc"], optional = true }
65+
bytes = { workspace = true, optional = true }
6566

6667
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
6768
workspace = true
@@ -391,4 +392,7 @@ component-model-async = [
391392
"component-model",
392393
"std",
393394
"wasmtime-component-macro?/component-model-async",
395+
"dep:futures",
396+
"futures/std",
397+
"dep:bytes",
394398
]

crates/wasmtime/src/runtime/component/concurrent.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ use wasmtime_environ::component::{
8989
use wasmtime_environ::{PrimaryMap, fact};
9090

9191
pub use futures_and_streams::{
92-
ErrorContext, FutureReader, FutureWriter, HostFuture, HostStream, StreamReader, StreamWriter,
93-
Watch,
92+
ErrorContext, FutureReader, FutureWriter, HostFuture, HostStream, ReadBuffer, StreamReader,
93+
StreamWriter, VecBuffer, Watch, WriteBuffer,
9494
};
9595
pub(crate) use futures_and_streams::{
9696
ResourcePair, lower_error_context_to_index, lower_future_to_index, lower_stream_to_index,
@@ -4537,15 +4537,6 @@ pub(crate) enum WaitableCheck {
45374537
Yield,
45384538
}
45394539

4540-
/// Helper struct for nulling out an `AtomicPtr<u8>` on drop.
4541-
pub(crate) struct ResetPtr<'a>(pub(crate) &'a AtomicPtr<u8>);
4542-
4543-
impl<'a> Drop for ResetPtr<'a> {
4544-
fn drop(&mut self) {
4545-
self.0.store(ptr::null_mut(), Relaxed);
4546-
}
4547-
}
4548-
45494540
/// Drop the specified pointer as a `Box<T>`.
45504541
///
45514542
/// SAFETY: The specified pointer must be a valid `*mut T` which was originally

crates/wasmtime/src/runtime/component/func.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,10 @@ impl Func {
904904
})
905905
.collect()
906906
}
907+
908+
pub(crate) fn instance(&self) -> Instance {
909+
self.instance
910+
}
907911
}
908912

909913
/// Lower parameters of the specified type using the specified function.

crates/wasmtime/src/runtime/component/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ pub use self::component::{Component, ComponentExportIndex};
118118
#[cfg(feature = "component-model-async")]
119119
pub use self::concurrent::{
120120
AbortOnDropHandle, Access, Accessor, AccessorTask, ErrorContext, FutureReader, FutureWriter,
121-
HostFuture, HostStream, StreamReader, StreamWriter, VMComponentAsyncStore, Watch,
121+
HostFuture, HostStream, ReadBuffer, StreamReader, StreamWriter, VMComponentAsyncStore,
122+
VecBuffer, Watch, WriteBuffer,
122123
};
123124
pub use self::func::{
124125
ComponentNamedList, ComponentType, Func, Lift, Lower, TypedFunc, WasmList, WasmStr,

0 commit comments

Comments
 (0)