# 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 = "afast"
version = "0.1.11"
authors = ["ahriknow <ahriknow@ahriknow.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance web backend framework for Rust. Auto generate client code (js, ts, kt, rs)."
readme = "README.md"
keywords = [
    "web",
    "framework",
    "backend",
    "http",
    "async",
]
categories = [
    "web-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/ahriknow/afast"

[features]
binary = []
code = ["http"]
default = [
    "tag-u8",
    "binary",
]
doc = [
    "http",
    "js",
]
hook = []
http = [
    "hyper",
    "hyper-util",
    "http-body-util",
]
js = []
kt = []
len64 = []
marker = []
ordinary-http = [
    "http",
    "dep:serde",
    "dep:serde_json",
]
ordinary-sse = [
    "ordinary-http",
    "futures-util",
]
ordinary-ws = [
    "ws",
    "ordinary-http",
]
rate-limit = []
rs = []
seq64 = []
tag-u16 = ["afastdata/tag-u16"]
tag-u32 = ["afastdata/tag-u32"]
tag-u8 = ["afastdata/tag-u8"]
tcp = ["binary"]
tls = [
    "http",
    "dep:tokio-rustls",
    "dep:rustls",
    "dep:rustls-pemfile",
]
ts = []
ws = [
    "tokio-tungstenite",
    "futures-util",
]

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

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

[dependencies.afastdata]
version = "0.0.10"

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

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

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

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

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

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

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

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

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

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tokio-tungstenite]
version = "0.29"
optional = true
