wiggle use sites: remove ctx argument
This commit is contained in:
@@ -15,7 +15,6 @@ use wiggle::GuestPtr;
|
|||||||
|
|
||||||
wiggle::from_witx!({
|
wiggle::from_witx!({
|
||||||
witx: ["$WASI_ROOT/phases/old/snapshot_0/witx/wasi_unstable.witx"],
|
witx: ["$WASI_ROOT/phases/old/snapshot_0/witx/wasi_unstable.witx"],
|
||||||
ctx: WasiCtx,
|
|
||||||
errors: { errno => Error },
|
errors: { errno => Error },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ use wiggle::GuestPtr;
|
|||||||
|
|
||||||
wiggle::from_witx!({
|
wiggle::from_witx!({
|
||||||
witx: ["$WASI_ROOT/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
|
witx: ["$WASI_ROOT/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
|
||||||
ctx: WasiCtx,
|
|
||||||
errors: { errno => Error },
|
errors: { errno => Error },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ pub use wasi_crypto::CryptoCtx as WasiCryptoCtx;
|
|||||||
|
|
||||||
wiggle::from_witx!({
|
wiggle::from_witx!({
|
||||||
witx: ["$CARGO_MANIFEST_DIR/spec/witx/wasi_ephemeral_crypto.witx"],
|
witx: ["$CARGO_MANIFEST_DIR/spec/witx/wasi_ephemeral_crypto.witx"],
|
||||||
ctx: WasiCryptoCtx
|
|
||||||
});
|
});
|
||||||
|
|
||||||
pub mod wasi_modules {
|
pub mod wasi_modules {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ use crate::ctx::WasiNnError;
|
|||||||
// Generate the traits and types of wasi-nn in several Rust modules (e.g. `types`).
|
// Generate the traits and types of wasi-nn in several Rust modules (e.g. `types`).
|
||||||
wiggle::from_witx!({
|
wiggle::from_witx!({
|
||||||
witx: ["$WASI_ROOT/phases/ephemeral/witx/wasi_ephemeral_nn.witx"],
|
witx: ["$WASI_ROOT/phases/ephemeral/witx/wasi_ephemeral_nn.witx"],
|
||||||
ctx: WasiNnCtx,
|
|
||||||
errors: { nn_errno => WasiNnError }
|
errors: { nn_errno => WasiNnError }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user