wasmer-compiler 4.0.0

Base compiler abstraction for Wasmer WebAssembly runtime
Documentation
[package]
name = "wasmer-compiler"
description = "Base compiler abstraction for Wasmer WebAssembly runtime"
categories = ["wasm", "no-std"]
keywords = ["wasm", "webassembly", "compiler"]
readme = "README.md"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[dependencies]
wasmer-types = { path = "../types", version = "=4.0.0", default-features = false }
wasmer-object = { path = "../object", version = "=4.0.0", optional = true }
wasmparser = { version = "0.95", optional = true, default-features = false }
enumset = "1.0.2"
hashbrown = { version = "0.11", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
thiserror = "1.0"
serde_bytes = { version = "0.11", optional = true }
smallvec = "1.6"

backtrace = "0.3"
memmap2 = "0.5"
more-asserts = "0.2"
lazy_static = "1.4"

cfg-if = "1.0"
leb128 = "0.2"
enum-iterator = "0.7.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasmer-vm = { path = "../vm", version = "=4.0.0" }
region = { version = "3.0" }

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winnt", "impl-default"] }

[features]
default = ["std" ]
# This feature is for compiler implementors, it enables using `Compiler` and
# `CompilerConfig`, as well as the included wasmparser.
# Disable this feature if you just want a headless engine.
translator = ["wasmparser"]
compiler = ["translator"]
wasmer-artifact-load = []
wasmer-artifact-create = []
static-artifact-load = []
static-artifact-create = ["wasmer-object"]
std = ["wasmer-types/std"]
core = ["hashbrown", "wasmer-types/core"]
enable-serde = ["serde", "serde_bytes", "wasmer-types/enable-serde"]

[badges]
maintenance = { status = "experimental" }

[package.metadata.docs.rs]
features = [
    "static-artifact-create",
    "static-artifact-load",
    "wasmer-artifact-create",
    "wasmer-artifact-load",
]