phoenix-runtime 0.1.1

Application lifecycle and Hyper server runtime for Phoenix
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.95"
name = "phoenix-runtime"
version = "0.1.1"
authors = ["ApiZero <api@zerois.cn>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Application lifecycle and Hyper server runtime for Phoenix"
homepage = "https://apizero.cn/"
readme = false
license = "MIT"
repository = "https://github.com/MageGojo/Phoenix-rs"

[features]
default = [
    "tls",
    "metrics",
    "websocket",
    "sse",
]
metrics = ["dep:phoenix-metrics"]
sse = ["phoenix-http/sse"]
tls = [
    "dep:rustls",
    "dep:rustls-pemfile",
    "dep:tokio-rustls",
]
websocket = ["phoenix-http/websocket"]

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

[dependencies.bytes]
version = "1"

[dependencies.futures-util]
version = "0.3"

[dependencies.http]
version = "1"

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

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

[dependencies.hyper-util]
version = "0.1"
features = [
    "http1",
    "http2",
    "server",
    "server-auto",
    "tokio",
]

[dependencies.phoenix-http]
version = "0.1.1"
default-features = false

[dependencies.phoenix-metrics]
version = "0.1.1"
optional = true

[dependencies.phoenix-routing]
version = "0.1.1"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2.2"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "macros",
    "net",
    "process",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.phoenix-http]
version = "0.1.1"
features = [
    "websocket",
    "sse",
]

[dev-dependencies.phoenix-metrics]
version = "0.1.1"

[dev-dependencies.rcgen]
version = "0.14"
features = [
    "crypto",
    "pem",
    "ring",
]
default-features = false

[dev-dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
default-features = false

[dev-dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
]
default-features = false

[dev-dependencies.tokio-tungstenite]
version = "0.29"
features = ["handshake"]
default-features = false

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

[lints.rust]
unsafe_code = "forbid"