trillium-api 0.3.0

an api handler for trillium.rs
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"
name = "trillium-api"
version = "0.3.0"
authors = ["Jacob Rothstein <hi@jbr.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "an api handler for trillium.rs"
readme = "README.md"
keywords = [
    "trillium",
    "framework",
    "async",
]
categories = [
    "web-programming::http-server",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/trillium-rs/trillium"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "forms",
    "url",
    "sonic-rs",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
forms = [
    "serde_urlencoded",
    "form_urlencoded",
]
serde_json = ["dep:serde_json"]
sonic-rs = ["dep:sonic-rs"]
url = ["dep:url"]

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

[[example]]
name = "api"
path = "examples/api.rs"

[[example]]
name = "cancel_on_disconnect"
path = "examples/cancel_on_disconnect.rs"

[[example]]
name = "todo_app"
path = "examples/todo_app.rs"

[[test]]
name = "disconnect-body"
path = "tests/disconnect-body.rs"

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

[dependencies.form_urlencoded]
version = "1.2.2"
optional = true

[dependencies.log]
version = "0.4.29"

[dependencies.mime]
version = "0.3.17"

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

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

[dependencies.serde_path_to_error]
version = "0.1.20"

[dependencies.serde_urlencoded]
version = "0.7.1"
optional = true

[dependencies.sonic-rs]
version = "0.5.8"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.trillium]
version = "1.0.0"

[dependencies.trillium-macros]
version = "0.1.0"

[dependencies.url]
version = "2.5.8"
optional = true

[dev-dependencies.async-channel]
version = "2.5.0"

[dev-dependencies.async-io]
version = "2.6.0"

[dev-dependencies.env_logger]
version = "0.11.10"

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

[dev-dependencies.test-harness]
version = "0.3.1"