# 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.63.0"
name = "crossterm"
version = "0.28.1"
authors = ["T. Post"]
exclude = [
    "target",
    "Cargo.lock",
]
description = "A crossplatform terminal library for manipulating terminals."
documentation = "https://docs.rs/crossterm/"
readme = "README.md"
keywords = [
    "event",
    "color",
    "cli",
    "input",
    "terminal",
]
categories = [
    "command-line-interface",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/crossterm-rs/crossterm"

[package.metadata.docs.rs]
all-features = true

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

[[example]]
name = "event-read"
required-features = [
    "bracketed-paste",
    "events",
]

[[example]]
name = "event-match-modifiers"
required-features = [
    "bracketed-paste",
    "events",
]

[[example]]
name = "event-poll-read"
required-features = [
    "bracketed-paste",
    "events",
]

[[example]]
name = "event-stream-async-std"
required-features = [
    "event-stream",
    "events",
]

[[example]]
name = "event-stream-tokio"
required-features = [
    "event-stream",
    "events",
]

[[example]]
name = "event-read-char-line"
required-features = ["events"]

[[example]]
name = "stderr"
required-features = ["events"]

[[example]]
name = "key-display"
required-features = ["events"]

[dependencies.bitflags]
version = "2.3"

[dependencies.futures-core]
version = "0.3"
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

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

[dev-dependencies.async-std]
version = "1.12"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.futures-timer]
version = "3.0"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.serial_test]
version = "2.0.0"

[dev-dependencies.temp-env]
version = "0.3.6"

[dev-dependencies.tokio]
version = "1.25"
features = ["full"]

[features]
bracketed-paste = []
default = [
    "bracketed-paste",
    "windows",
    "events",
]
event-stream = [
    "dep:futures-core",
    "events",
]
events = [
    "dep:mio",
    "dep:signal-hook",
    "dep:signal-hook-mio",
]
serde = [
    "dep:serde",
    "bitflags/serde",
]
use-dev-tty = [
    "filedescriptor",
    "rustix/process",
]
windows = [
    "dep:winapi",
    "dep:crossterm_winapi",
]

[target."cfg(unix)".dependencies.filedescriptor]
version = "0.8"
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true
default-features = false

[target."cfg(unix)".dependencies.mio]
version = "1.0"
features = ["os-poll"]
optional = true

[target."cfg(unix)".dependencies.rustix]
version = "0.38.34"
features = [
    "std",
    "stdio",
    "termios",
]
default-features = false

[target."cfg(unix)".dependencies.signal-hook]
version = "0.3.17"
optional = true

[target."cfg(unix)".dependencies.signal-hook-mio]
version = "0.2.4"
features = ["support-v1_0"]
optional = true

[target."cfg(windows)".dependencies.crossterm_winapi]
version = "0.9.1"
optional = true

[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = [
    "winuser",
    "winerror",
]
optional = true
