plecto-host 0.3.8

Plecto's wasmtime embedding host: loads, sandboxes, and runs plecto:filter WASM components (the extension plane).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.96"
name = "plecto-host"
version = "0.3.8"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Plecto's wasmtime embedding host: loads, sandboxes, and runs plecto:filter WASM components (the extension plane)."
homepage = "https://github.com/Kaikei-e/PlectoProxy"
documentation = "https://docs.rs/plecto-host"
readme = "README.md"
keywords = [
    "proxy",
    "gateway",
    "wasm",
    "webassembly",
    "http",
]
categories = [
    "network-programming",
    "web-programming",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/Kaikei-e/PlectoProxy"

[features]
dhat-heap = []
fat-guest = [
    "dep:wasmtime-wasi",
    "dep:bytes",
    "dep:tokio",
    "wasmtime/component-model-async",
]
instruction-bench = []
outbound-http = [
    "dep:wasmtime-wasi-http",
    "dep:wasmtime-wasi",
    "dep:ipnet",
    "dep:tokio",
    "dep:hyper",
    "dep:http-body-util",
    "dep:bytes",
    "dep:rustls",
    "dep:tokio-rustls",
    "dep:webpki-roots",
    "wasmtime/component-model-async",
]
outbound-tcp = [
    "dep:wasmtime-wasi",
    "dep:ipnet",
    "dep:tokio",
    "wasmtime/component-model-async",
]
polyglot-conformance = []
streaming-body = [
    "dep:wasmtime-wasi",
    "wasmtime/component-model-async",
]
test-support = []

[lib]
name = "plecto_host"
path = "src/lib.rs"
bench = false

[[test]]
name = "apikey"
path = "tests/apikey.rs"

[[test]]
name = "compat_v02"
path = "tests/compat_v02.rs"

[[test]]
name = "conformance"
path = "tests/conformance.rs"

[[test]]
name = "cors"
path = "tests/cors.rs"

[[test]]
name = "e2e"
path = "tests/e2e.rs"

[[test]]
name = "extauthz"
path = "tests/extauthz.rs"

[[test]]
name = "jwt"
path = "tests/jwt.rs"

[[test]]
name = "observe"
path = "tests/observe.rs"

[[test]]
name = "polyglot"
path = "tests/polyglot.rs"

[[test]]
name = "polyglot_tier_b"
path = "tests/polyglot_tier_b.rs"

[[test]]
name = "pool"
path = "tests/pool.rs"

[[test]]
name = "ratelimit_redis"
path = "tests/ratelimit_redis.rs"

[[test]]
name = "streaming"
path = "tests/streaming.rs"

[[test]]
name = "tcp_gate"
path = "tests/tcp_gate.rs"

[[bench]]
name = "kv_backend"
path = "benches/kv_backend.rs"
harness = false

[[bench]]
name = "wasm"
path = "benches/wasm.rs"
harness = false

[[bench]]
name = "wasm_inst"
path = "benches/wasm_inst.rs"
harness = false
required-features = ["instruction-bench"]

[dependencies.anyhow]
version = "1"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1"
features = [
    "http1",
    "http2",
    "server",
    "client",
]
optional = true

[dependencies.ipnet]
version = "2"
optional = true

[dependencies.opentelemetry]
version = "0.32"
features = ["trace"]
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.pollster]
version = "0.4"

[dependencies.redb]
version = "4.1"

[dependencies.rustls]
version = "0.23"
features = [
    "aws_lc_rs",
    "prefer-post-quantum",
    "std",
    "tls12",
    "logging",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sigstore]
version = "0.14.0"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "net",
    "time",
    "io-util",
    "macros",
    "sync",
]
optional = true

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "aws_lc_rs",
    "tls12",
    "logging",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.wasmtime]
version = "46.0.1"

[dependencies.wasmtime-wasi]
version = "46.0.1"
optional = true

[dependencies.wasmtime-wasi-http]
version = "46.0.1"
optional = true

[dependencies.webpki-roots]
version = "1"
optional = true

[dependencies.zeroize]
version = "1"

[dev-dependencies.base64]
version = "0.22"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.dhat]
version = "0.3"

[dev-dependencies.gungraun]
version = "0.19"

[dev-dependencies.jsonwebtoken]
version = "10"
features = [
    "aws_lc_rs",
    "use_pem",
]
default-features = false

[dev-dependencies.opentelemetry-proto]
version = "0.32"
features = [
    "gen-tonic-messages",
    "trace",
]
default-features = false

[dev-dependencies.prost]
version = "0.14"

[dev-dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.wit-component]
version = "0.252"

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1