# 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.2"
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)."
readme = "README.md"
keywords = [
    "web",
    "framework",
    "backend",
    "http",
    "async",
]
categories = [
    "web-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/ahriknow/afast"

[features]
code = ["http"]
default = ["tag-u8"]
doc = [
    "http",
    "js",
]
http = [
    "hyper",
    "hyper-util",
    "http-body-util",
]
js = []
kt = []
len64 = []
ordinary-http = [
    "http",
    "dep:serde",
    "dep:serde_json",
]
seq64 = []
tag-u16 = ["afastdata/tag-u16"]
tag-u32 = ["afastdata/tag-u32"]
tag-u8 = ["afastdata/tag-u8"]
tcp = []
ts = []
ws = [
    "tokio-tungstenite",
    "futures-util",
]

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

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

[dependencies.afastdata]
version = "0.0.6"

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

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

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

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
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-tungstenite]
version = "0.26"
optional = true
