tork 0.1.0

A FastAPI-style backend web framework for Rust, built on Hyper and Tokio. Annotation-based routers, dependency injection, and OpenAPI out of the box.
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 = "2021"
rust-version = "1.96"
name = "tork"
version = "0.1.0"
authors = ["muzakon <hasanmuzak@hotmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A FastAPI-style backend web framework for Rust, built on Hyper and Tokio. Annotation-based routers, dependency injection, and OpenAPI out of the box."
readme = false
license = "MIT"
repository = "https://github.com/tork-rs/tork"

[features]
default = ["openapi"]
openapi = ["dep:tork-openapi"]
otel = ["tork-core/otel"]
redis = ["tork-core/redis"]
tls = ["tork-core/tls"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.garde]
version = "0.23"
features = [
    "derive",
    "email",
]

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.tork-core]
version = "0.1.0"

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

[dependencies.tork-openapi]
version = "0.1.0"
optional = true

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

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

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

[dev-dependencies.garde]
version = "0.23"
features = [
    "derive",
    "email",
]

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

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

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.rcgen]
version = "0.13"

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

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

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

[dev-dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "signal",
    "sync",
    "time",
]

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

[dev-dependencies.tokio-tungstenite]
version = "0.24"
features = [
    "handshake",
    "connect",
]
default-features = false

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