# 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 = "tairitsu-web"
version = "0.4.4"
authors = ["langyo <langyo.china@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tairitsu Web Framework - Modular WebAssembly-first framework with SSR, CSR, SSG support"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/celestia-island/tairitsu"
resolver = "2"

[package.metadata.docs.rs]
features = ["full"]

[features]
browser = [
    "vdom",
    "hooks",
    "macros",
    "style",
    "router",
]
browser-full = [
    "vdom",
    "hooks",
    "macros",
    "style",
    "router",
    "data-fetcher",
    "hmr",
    "fast-refresh",
    "error-overlay",
]
data-fetcher = ["ssr"]
default = [
    "vdom",
    "hooks",
    "macros",
    "style",
    "ssr",
]
error-overlay = [
    "ssr",
    "hmr",
]
fast-refresh = [
    "ssr",
    "hmr",
]
full = [
    "browser-full",
    "server",
]
hmr = ["ssr"]
hooks = ["dep:tairitsu-hooks"]
i18n = [
    "hooks",
    "dep:iso639_enum",
]
macros = ["dep:tairitsu-macros"]
packager = [
    "dep:tairitsu",
    "dep:tairitsu-packager",
]
router = []
runtime = ["dep:tairitsu"]
server = [
    "ssr",
    "packager",
]
ssr = [
    "dep:tairitsu",
    "dep:tairitsu-ssr",
]
style = ["dep:tairitsu-style"]
vdom = ["dep:tairitsu-vdom"]
wit-bindings = ["dep:wit-bindgen"]

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

[dependencies.anyhow]
version = "^1"

[dependencies.iso639_enum]
version = "0.6"
optional = true

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

[dependencies.serde_json]
version = "^1"

[dependencies.tairitsu]
version = "0.4.4"
optional = true

[dependencies.tairitsu-hooks]
version = "0.4.4"
optional = true

[dependencies.tairitsu-macros]
version = "0.4.4"
optional = true

[dependencies.tairitsu-packager]
version = "0.4.4"
optional = true

[dependencies.tairitsu-ssr]
version = "0.4.4"
optional = true

[dependencies.tairitsu-style]
version = "0.4.4"
optional = true

[dependencies.tairitsu-vdom]
version = "0.4.4"
optional = true

[dependencies.toml]
version = "^0.8"

[dependencies.tracing]
version = "^0.1"

[dependencies.wasm-bindgen]
version = "^0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "^0.4"
optional = true

[dependencies.wit-bindgen]
version = "^0.50"
features = ["macros"]
optional = true

[dev-dependencies.tokio]
version = "^1"
features = [
    "sync",
    "macros",
    "io-util",
    "rt",
    "time",
    "signal",
    "sync",
    "macros",
    "io-util",
    "rt",
    "time",
]
default-features = false

[build-dependencies.toml]
version = "^0.8"
