[package]
edition = "2024"
rust-version = "1.85"
name = "folk-plugin-http"
version = "0.2.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP plugin for Folk — accepts connections via hyper and dispatches to PHP workers"
homepage = "https://github.com/Folk-Project"
readme = "README.md"
keywords = [
"folk",
"php",
"http",
"plugin",
]
categories = [
"asynchronous",
"web-programming",
]
license = "MIT"
repository = "https://github.com/Folk-Project/folk-plugin-http"
[features]
default = ["tls"]
h2c = [
"dep:hyper-util",
"dep:hyper",
]
tls = ["dep:axum-server"]
[lib]
name = "folk_plugin_http"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.folk-api]
version = "0.2"
[dependencies.humantime-serde]
version = "1"
[dependencies.hyper]
version = "1"
optional = true
[dependencies.hyper-util]
version = "0.1"
features = [
"http1",
"http2",
"server-auto",
"tokio",
]
optional = true
[dependencies.ipnet]
version = "2"
features = ["serde"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tower]
version = "0.5"
features = [
"limit",
"timeout",
]
[dependencies.tower-http]
version = "0.6"
features = [
"timeout",
"limit",
"compression-full",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.toml]
version = "0.8"