fetchlet-http 0.1.0

Serve fetchlet applications through Tower, hyper, axum and actix-web
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.100.0"
name = "fetchlet-http"
version = "0.1.0"
build = "build.rs"
exclude = [
    "package.json",
    "vite.config.ts",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Serve fetchlet applications through Tower, hyper, axum and actix-web"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/SegaraRai/fetchlet"

[package.metadata.docs.rs]
features = [
    "fetchlet/quickjs",
    "process",
    "dev-reload",
    "vite-dev",
    "axum-websocket",
    "actix-websocket",
    "hyper",
]

[features]
actix = [
    "dep:actix-web",
    "dep:futures-core",
    "dep:tokio",
]
actix-websocket = [
    "actix",
    "dep:actix-ws",
    "dep:actix-http",
]
axum = [
    "dep:axum",
    "dep:tower-http",
    "dep:tokio",
    "tokio/net",
    "tokio/signal",
]
axum-websocket = [
    "axum",
    "axum/ws",
]
default = []
dev-reload = ["dep:tokio"]
hyper = ["dep:hyper"]
process = ["fetchlet/process"]
vite-dev = [
    "dep:hyper",
    "hyper/client",
    "dep:hyper-util",
    "dep:tokio",
]

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

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

[[test]]
name = "actix_websocket"
path = "tests/actix_websocket.rs"
required-features = ["actix-websocket"]

[[test]]
name = "artifact"
path = "tests/artifact.rs"
required-features = ["axum"]

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

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

[[test]]
name = "axum_router"
path = "tests/axum_router.rs"
required-features = ["axum"]

[[test]]
name = "axum_websocket"
path = "tests/axum_websocket.rs"
required-features = ["axum-websocket"]

[[test]]
name = "dev_reload"
path = "tests/dev_reload.rs"
required-features = [
    "dev-reload",
    "axum",
]

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

[[test]]
name = "server"
path = "tests/server.rs"
required-features = ["axum"]

[[test]]
name = "server_isolation"
path = "tests/server_isolation.rs"
harness = false
required-features = [
    "axum",
    "process",
]

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

[[test]]
name = "vite_dev"
path = "tests/vite_dev.rs"
required-features = [
    "vite-dev",
    "axum",
]

[[test]]
name = "webview"
path = "tests/webview.rs"
required-features = ["axum"]

[dependencies.actix-http]
version = "3"
features = ["ws"]
optional = true
default-features = false

[dependencies.actix-web]
version = "4"
optional = true
default-features = false

[dependencies.actix-ws]
version = "0.4"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.brotli-decompressor]
version = "6"

[dependencies.bytes]
version = "1"

[dependencies.fetchlet]
version = "=0.1.0"
default-features = false

[dependencies.futures-core]
version = "0.3"
optional = true

[dependencies.http]
version = "1"

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

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

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

[dependencies.hyper-util]
version = "0.1"
features = [
    "client-legacy",
    "http1",
    "tokio",
]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tower-http]
version = "0.7"
features = ["fs"]
optional = true

[dependencies.tower-service]
version = "0.3"

[dev-dependencies.actix-http]
version = "3"

[dev-dependencies.actix-web]
version = "4"
features = ["macros"]
default-features = false

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.brotli-decompressor]
version = "6"

[dev-dependencies.fetchlet]
version = "=0.1.0"
features = [
    "quickjs",
    "boa",
    "v8",
    "web-apis",
]
default-features = false

[dev-dependencies.futures-util]
version = "0.3"
features = ["sink"]
default-features = false

[dev-dependencies.hyper]
version = "1"
features = [
    "http1",
    "server",
    "client",
]

[dev-dependencies.hyper-util]
version = "0.1"
features = ["tokio"]

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

[dev-dependencies.tokio-tungstenite]
version = "0.30"

[dev-dependencies.tower]
version = "0.5"
features = ["util"]