Browse Source
* Revert "wasi-adapter: Implement provider crate that embeds the adapter binaries (#8792)"
This reverts commit 2dbf8f15b3
.
* Enable requisite feature for cranelift-frontend testing
pull/8858/head
Alex Crichton
5 months ago
committed by
GitHub
14 changed files with 61 additions and 155 deletions
@ -1,19 +0,0 @@ |
|||
[package] |
|||
name = "wasi-preview1-component-adapter-provider" |
|||
version.workspace = true |
|||
authors.workspace = true |
|||
description = "Embedded wasi-preview1-component-adapter binaries" |
|||
license = "Apache-2.0 WITH LLVM-exception" |
|||
repository = "https://github.com/bytecodealliance/wasmtime" |
|||
documentation = "https://docs.rs/wasi-preview1-component-adapter-provider/" |
|||
categories = ["wasm"] |
|||
keywords = ["webassembly", "wasm"] |
|||
edition.workspace = true |
|||
|
|||
[lints] |
|||
workspace = true |
|||
|
|||
[package.metadata.docs.rs] |
|||
all-features = true |
|||
|
|||
[dependencies] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,51 +0,0 @@ |
|||
//! This crate contains the binaries of three WebAssembly modules:
|
|||
//!
|
|||
//! - [`WASI_SNAPSHOT_PREVIEW1_REACTOR_ADAPTER`]
|
|||
//! - [`WASI_SNAPSHOT_PREVIEW1_COMMAND_ADAPTER`]
|
|||
//! - [`WASI_SNAPSHOT_PREVIEW1_PROXY_ADAPTER`]
|
|||
//!
|
|||
//! These three modules bridge the wasip1 ABI to the wasip2 ABI of the component
|
|||
//! model.
|
|||
//!
|
|||
//! They can be given to the [`wit_component::ComponentEncoder::adapter`]
|
|||
//! method, using the [`WASI_SNAPSHOT_PREVIEW1_ADAPTER_NAME`], to translate a
|
|||
//! module from the historical WASM ABI to the canonical ABI.
|
|||
//!
|
|||
//! [`wit_component::ComponentEncoder::adapter`]: https://docs.rs/wit-component/latest/wit_component/struct.ComponentEncoder.html#method.adapter
|
|||
|
|||
/// The name of the adapters in this crate, which may be provided to
|
|||
/// [`wit_component::ComponentEncoder::adapter`].
|
|||
///
|
|||
/// [`wit_component::ComponentEncoder::adapter`]: https://docs.rs/wit-component/latest/wit_component/struct.ComponentEncoder.html#method.adapter
|
|||
pub const WASI_SNAPSHOT_PREVIEW1_ADAPTER_NAME: &str = "wasi_snapshot_preview1"; |
|||
|
|||
/// The "reactor" adapter provides the default adaptation from preview1 to
|
|||
/// preview2.
|
|||
///
|
|||
/// This adapter implements the [`wasi:cli/imports`] world.
|
|||
///
|
|||
/// [`wasi:cli/imports`]: https://github.com/WebAssembly/WASI/blob/01bb90d8b66cbc1d50349aaaab9ac5b143c9c98c/preview2/cli/imports.wit
|
|||
pub const WASI_SNAPSHOT_PREVIEW1_REACTOR_ADAPTER: &[u8] = |
|||
include_bytes!("../artefacts/wasi_snapshot_preview1.reactor.wasm"); |
|||
|
|||
/// The "command" adapter extends the ["reactor" adapter] and additionally
|
|||
/// exports a `run` function entrypoint.
|
|||
///
|
|||
/// This adapter implements the [`wasi:cli/command`] world.
|
|||
///
|
|||
/// ["reactor" adapter]: WASI_SNAPSHOT_PREVIEW1_REACTOR_ADAPTER
|
|||
/// [`wasi:cli/command`]: https://github.com/WebAssembly/WASI/blob/01bb90d8b66cbc1d50349aaaab9ac5b143c9c98c/preview2/cli/command.wit
|
|||
pub const WASI_SNAPSHOT_PREVIEW1_COMMAND_ADAPTER: &[u8] = |
|||
include_bytes!("../artefacts/wasi_snapshot_preview1.command.wasm"); |
|||
|
|||
/// The "proxy" adapter provides implements a HTTP proxy which is more
|
|||
/// restricted than the ["reactor" adapter] adapter, as it lacks filesystem,
|
|||
/// socket, environment, exit, and terminal support, but includes HTTP handlers
|
|||
/// for incoming and outgoing requests.
|
|||
///
|
|||
/// This adapter implements the [`wasi:http/proxy`] world.
|
|||
///
|
|||
/// ["reactor" adapter]: WASI_SNAPSHOT_PREVIEW1_REACTOR_ADAPTER
|
|||
/// [`wasi:http/proxy`]: https://github.com/WebAssembly/WASI/blob/01bb90d8b66cbc1d50349aaaab9ac5b143c9c98c/preview2/http/proxy.wit
|
|||
pub const WASI_SNAPSHOT_PREVIEW1_PROXY_ADAPTER: &[u8] = |
|||
include_bytes!("../artefacts/wasi_snapshot_preview1.proxy.wasm"); |
Loading…
Reference in new issue