# 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 = "schemaui"
version = "0.12.3"
authors = ["unic <yuniqueunic@gmail.com>"]
build = "build.rs"
exclude = [
    "web/ui/node_modules/**",
    "web/ui/.vite/**",
    "web/ui/.tmp/**",
    "web/ui/.DS_Store",
    "docs/**/*.gif",
    "docs/**/*.mp4",
]
include = [
    "Cargo.toml",
    "build.rs",
    "keymap/default.keymap.json",
    "src/**",
    "web/dist/**",
    "README.md",
    "README.ZH.md",
    "LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for generating TUI and Web UIs from JSON Schemas for configuration management."
documentation = "https://docs.rs/schemaui"
readme = "README.md"
keywords = [
    "tui",
    "schema",
    "configuration",
    "terminal",
    "cross-platform",
]
categories = [
    "command-line-interface",
    "config",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yuniqueunic/schemaui"

[features]
all_formats = [
    "json",
    "yaml",
    "toml",
]
debug = []
default = [
    "tui",
    "json",
]
full = [
    "all_formats",
    "tui",
    "web",
]
json = []
precompile = []
toml = ["dep:toml"]
tui = [
    "dep:crossterm",
    "dep:ratatui",
    "dep:unicode-width",
]
web = [
    "dep:include_dir",
    "dep:axum",
    "dep:tokio",
]
web-types = ["dep:ts-rs"]
yaml = ["dep:serde_yaml"]

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
features = [
    "json",
    "http1",
    "tokio",
    "original-uri",
]
optional = true
default-features = false

[dependencies.crossterm]
version = "0"
optional = true

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

[dependencies.indexmap]
version = "2"
features = [
    "serde",
    "std",
]
default-features = false

[dependencies.jsonschema]
version = "0.46"
default-features = false

[dependencies.percent-encoding]
version = "2"
features = ["alloc"]
default-features = false

[dependencies.ratatui]
version = "0.30"
features = ["crossterm"]
optional = true
default-features = false

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.sha2]
version = "0.11"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "net",
    "sync",
]
optional = true

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

[dependencies.ts-rs]
version = "12"
features = ["serde-compat"]
optional = true

[dependencies.unicode-width]
version = "0.2"
optional = true

[dev-dependencies.ureq]
version = "3"
features = ["rustls"]
default-features = false

[build-dependencies.serde]
version = "1"
features = ["derive"]
default-features = false

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

[build-dependencies.unicode-width]
version = "0.2"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "debuginfo"
