pub enum GenerationTarget {
WasiP2,
WasiP3,
}Expand description
Selects which WASI generation the wrapper crate targets.
The default (GenerationTarget::WasiP2) reproduces the historical behavior:
synchronous exports/imports backed by the full Preview 2 skeleton (wasip2,
wstd, golem-wasi-http, Node.js builtins, Wizer pre-initialization).
GenerationTarget::WasiP3 is the opt-in Preview 3 path. It uses the
same skeleton crate compiled with the p3 Cargo feature instead of p2: a
minimal async runtime spine depending only on rquickjs, wasip3 and a renamed
wit-bindgen (so the Node.js builtins are not duplicated). It supports synchronous
and asynchronous WIT exports and imports, including Wizer pre-initialization.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GenerationTarget
impl Clone for GenerationTarget
Source§fn clone(&self) -> GenerationTarget
fn clone(&self) -> GenerationTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GenerationTarget
Source§impl Debug for GenerationTarget
impl Debug for GenerationTarget
Source§impl Default for GenerationTarget
impl Default for GenerationTarget
Source§fn default() -> GenerationTarget
fn default() -> GenerationTarget
Returns the “default value” for a type. Read more
impl Eq for GenerationTarget
Source§impl PartialEq for GenerationTarget
impl PartialEq for GenerationTarget
impl StructuralPartialEq for GenerationTarget
Auto Trait Implementations§
impl Freeze for GenerationTarget
impl RefUnwindSafe for GenerationTarget
impl Send for GenerationTarget
impl Sync for GenerationTarget
impl Unpin for GenerationTarget
impl UnsafeUnpin for GenerationTarget
impl UnwindSafe for GenerationTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.