# 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.90"
name = "afast"
version = "0.0.8"
authors = ["ahriknow <ahriknow@ahriknow.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AFast: high-performance async Rust web framework with HTTP, WS, TCP support, automatic client generation, validation, and documentation."
homepage = "https://github.com/ahriroot/afast"
documentation = "https://docs.rs/afast"
readme = "README.md"
keywords = [
    "framework",
    "async",
    "web",
    "tcp",
    "codegen",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ahriroot/afast"

[features]
code = ["afast-macros/code"]
default = ["http"]
doc = [
    "afast-macros/doc",
    "code",
    "tower-http/fs",
    "include_dir",
    "mime_guess",
]
http = [
    "axum",
    "http-body-util",
    "tower-http",
]
js = [
    "afast-macros/js",
    "code",
]
tcp = []
trace = ["backtrace"]
ts = [
    "afast-macros/ts",
    "code",
]
ws = [
    "axum",
    "axum/ws",
    "tower-http",
]

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

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

[dependencies.afast-macros]
version = "0.0.8"

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

[dependencies.backtrace]
version = "0.3"
optional = true

[dependencies.http-body-util]
version = "0.1"
features = ["full"]
optional = true

[dependencies.include_dir]
version = "0.7"
optional = true

[dependencies.mime_guess]
version = "2.0"
optional = true

[dependencies.tokio]
version = "1.48"
features = ["full"]

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true
