1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Runtime spine for the generated rquickjs component.
//!
//! This is a single skeleton that supports two generation targets selected by a
//! Cargo feature flag:
//!
//! * `p2` (default) — the historical WASI Preview 2 path: synchronous exports
//! driven by `wstd::block_on`, the full Node.js builtin set, resource tables and
//! Wizer pre-initialization. Implemented in [`p2`].
//! * `p3` — the opt-in WASI Preview 3 path: `async` exports/imports driven directly
//! on the component-model async executor, depending only on `rquickjs` and
//! `wasip3` (no `wstd`, no `wasip2`, no P2 pollables). Implemented in [`p3`].
//!
//! Exactly one of the two features must be enabled. The generated code always
//! refers to `crate::internal::*`, so each target re-exports the public surface its
//! generated code expects.
compile_error!;
compile_error!;
pub
pub use *;
pub use *;