# 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 = "2018"
name = "termwiz"
version = "0.23.3"
authors = ["Wez Furlong"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal Wizardry for Unix and Windows"
documentation = "https://docs.rs/termwiz"
readme = "README.md"
keywords = [
    "terminal",
    "readline",
    "console",
    "curses",
]
license = "MIT"
repository = "https://github.com/wezterm/wezterm"
resolver = "2"

[package.metadata.docs.rs]
features = ["docs"]
rustdoc-args = [
    "--cfg",
    'feature="docs"',
]

[features]
docs = [
    "widgets",
    "use_serde",
]
use_image = ["image"]
use_serde = [
    "serde",
    "wezterm-color-types/use_serde",
    "wezterm-blob-leases/serde",
    "bitflags/serde",
    "wezterm-input-types/serde",
]
widgets = [
    "cassowary",
    "fnv",
]

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

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

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

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

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

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

[[example]]
name = "strip-ansi-escapes"
path = "examples/strip-ansi-escapes.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.bitflags]
version = "2.0"

[dependencies.cassowary]
version = "0.3"
optional = true

[dependencies.fancy-regex]
version = "0.11"

[dependencies.filedescriptor]
version = "0.8.3"

[dependencies.finl_unicode]
version = "1.2"

[dependencies.fixedbitset]
version = "0.4"

[dependencies.fnv]
version = "1.0"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.image]
version = "0.25"
optional = true

[dependencies.lazy_static]
version = "1.4"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.memmem]
version = "0.1"

[dependencies.num-derive]
version = "0.4"

[dependencies.num-traits]
version = "0.2"

[dependencies.ordered-float]
version = "4.1"

[dependencies.pest]
version = "2.7"

[dependencies.pest_derive]
version = "2.7"

[dependencies.phf]
version = "0.11"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
    "derive",
]
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.siphasher]
version = "1.0.1"

[dependencies.terminfo]
version = "0.9"

[dependencies.thiserror]
version = "1.0"

[dependencies.ucd-trie]
version = "0.1"

[dependencies.unicode-segmentation]
version = "1.12"

[dependencies.vtparse]
version = "0.6.2"

[dependencies.wezterm-bidi]
version = "0.2.3"

[dependencies.wezterm-blob-leases]
version = "0.1.1"

[dependencies.wezterm-color-types]
version = "0.3"

[dependencies.wezterm-dynamic]
version = "0.2.1"

[dependencies.wezterm-input-types]
version = "0.1"

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.k9]
version = "0.12.0"

[dev-dependencies.varbincode]
version = "0.1"

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = [
    "mman",
    "fs",
]

[target."cfg(unix)".dependencies.signal-hook]
version = "0.3"

[target."cfg(unix)".dependencies.termios]
version = "0.3"

[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = [
    "winbase",
    "winerror",
    "winnls",
    "winuser",
    "consoleapi",
    "handleapi",
    "fileapi",
    "synchapi",
    "memoryapi",
    "winnt",
    "impl-default",
]
