# 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"
name = "isola"
version = "0.4.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Isola runtime"
homepage = "https://brian14708.github.io/isola/"
documentation = "https://docs.rs/isola"
readme = false
license = "Apache-2.0"
repository = "https://github.com/brian14708/isola"
resolver = "2"

[features]
default = ["serde"]
serde = [
    "dep:base64",
    "dep:minicbor",
    "dep:minicbor-serde",
    "dep:serde",
    "dep:serde-transcode",
    "dep:serde_json",
]

[lib]
name = "isola"
path = "src/lib.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["serde"]

[[bench]]
name = "isola-integration-bench"
path = "benches/integration.rs"
harness = false
required-features = ["serde"]

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1.10"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.3"

[dependencies.http-body]
version = "1.0"

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

[dependencies.hyper]
version = "1.4"

[dependencies.minicbor]
version = "2.0"
optional = true

[dependencies.minicbor-serde]
version = "0.6"
features = ["alloc"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.serde]
version = "1.0"
optional = true

[dependencies.serde-transcode]
version = "1.1"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.smallvec]
version = "1.13"
features = ["const_new"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.45"
features = [
    "fs",
    "time",
    "macros",
    "rt",
    "sync",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tracing]
version = "0.1"

[dependencies.wasmtime]
version = "43.0"
features = [
    "cranelift",
    "async",
    "parallel-compilation",
]
default-features = false

[dependencies.wasmtime-wasi]
version = "43.0"

[dependencies.wasmtime-wasi-http]
version = "43.0"
features = ["p2"]
default-features = false

[dependencies.wasmtime-wizer]
version = "43.0"
features = [
    "component-model",
    "wasmtime",
]
default-features = false

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.reqwest]
version = "0.13"
features = [
    "http2",
    "stream",
    "gzip",
    "rustls",
]
default-features = false

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
all = "warn"
nursery = "warn"
pedantic = "warn"
