Browse Source

wiggle use sites: remove ctx argument

pull/2701/head
Pat Hickey 4 years ago
parent
commit
bcebdd43ef
  1. 1
      crates/wasi-common/src/snapshots/preview_0.rs
  2. 1
      crates/wasi-common/src/snapshots/preview_1.rs
  3. 1
      crates/wasi-crypto/src/wiggle_interfaces/mod.rs
  4. 1
      crates/wasi-nn/src/witx.rs

1
crates/wasi-common/src/snapshots/preview_0.rs

@ -15,7 +15,6 @@ use wiggle::GuestPtr;
wiggle::from_witx!({
witx: ["$WASI_ROOT/phases/old/snapshot_0/witx/wasi_unstable.witx"],
ctx: WasiCtx,
errors: { errno => Error },
});

1
crates/wasi-common/src/snapshots/preview_1.rs

@ -21,7 +21,6 @@ use wiggle::GuestPtr;
wiggle::from_witx!({
witx: ["$WASI_ROOT/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
ctx: WasiCtx,
errors: { errno => Error },
});

1
crates/wasi-crypto/src/wiggle_interfaces/mod.rs

@ -2,7 +2,6 @@ pub use wasi_crypto::CryptoCtx as WasiCryptoCtx;
wiggle::from_witx!({
witx: ["$CARGO_MANIFEST_DIR/spec/witx/wasi_ephemeral_crypto.witx"],
ctx: WasiCryptoCtx
});
pub mod wasi_modules {

1
crates/wasi-nn/src/witx.rs

@ -5,7 +5,6 @@ use crate::ctx::WasiNnError;
// Generate the traits and types of wasi-nn in several Rust modules (e.g. `types`).
wiggle::from_witx!({
witx: ["$WASI_ROOT/phases/ephemeral/witx/wasi_ephemeral_nn.witx"],
ctx: WasiNnCtx,
errors: { nn_errno => WasiNnError }
});

Loading…
Cancel
Save