# 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 = "2021"
rust-version = "1.82.0"
name = "gilt"
version = "0.2.1"
build = false
exclude = [".claude/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, rich terminal formatting library — Rust port of Python's rich"
homepage = "https://github.com/khalidelborai/gilt"
documentation = "https://docs.rs/gilt"
readme = "README.md"
keywords = [
    "terminal",
    "rich",
    "formatting",
    "ansi",
    "cli",
]
categories = [
    "command-line-interface",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/khalidelborai/gilt"

[features]
anstyle = ["dep:anstyle"]
default = []
derive = ["dep:gilt-derive"]
eyre = ["dep:eyre"]
miette = ["dep:miette"]
tracing = [
    "dep:tracing",
    "dep:tracing-subscriber",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "derive_table"
path = "tests/derive_table.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false

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

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

[dependencies.gilt-derive]
version = "0.1.0"
optional = true

[dependencies.log]
version = "0.4"
features = ["std"]

[dependencies.miette]
version = "7"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.pulldown-cmark]
version = "0.12"

[dependencies.regex]
version = "1"

[dependencies.rpassword]
version = "7.4.0"

[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1"

[dependencies.syntect]
version = "5"
features = [
    "default-syntaxes",
    "default-themes",
    "regex-fancy",
]
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]
optional = true

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

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.pretty_assertions]
version = "1"
