[package]
edition = "2024"
rust-version = "1.85"
name = "libtmux"
version = "0.1.0-alpha.8"
authors = ["libtmux contributors"]
build = false
include = [
"/Cargo.toml",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"/docs/design.md",
"/docs/parity.md",
"/benches/**/*.rs",
"/examples/**/*.rs",
"/schema/**/*.json",
"/src/**/*.rs",
"/tests/fixtures/filter-v1/*.json",
"/tests/fixtures/dialect-v1/*.json",
"/tests/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async typed tmux client and object model (alpha)"
documentation = "https://docs.rs/libtmux"
readme = "README.md"
keywords = [
"tmux",
"terminal",
"multiplexer",
"async",
"tokio",
]
categories = [
"api-bindings",
"asynchronous",
"os::unix-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/libtmux/libtmux-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
blocking = ["tokio/rt"]
control-mode = [
"dep:futures-core",
"tokio/io-util",
"tokio/process",
"tokio/sync",
]
default = ["query"]
derive = [
"dep:libtmux-macros",
"query",
]
full = [
"blocking",
"control-mode",
"derive",
"plan",
"query",
"serde",
"tracing",
]
plan = []
query = [
"dep:caseless",
"dep:regex",
]
serde = ["dep:serde"]
test-support = [
"dep:tempfile",
"rustix/fs",
"rustix/net",
]
tracing = ["dep:tracing"]
unstable-fuzzing = [
"control-mode",
"query",
"serde",
]
[lib]
name = "libtmux"
path = "src/lib.rs"
[[example]]
name = "find"
path = "examples/find.rs"
required-features = ["query"]
[[example]]
name = "inspect"
path = "examples/inspect.rs"
[[example]]
name = "matrix"
path = "examples/matrix.rs"
required-features = [
"plan",
"control-mode",
"blocking",
"test-support",
"query",
]
[[example]]
name = "scratch"
path = "examples/scratch.rs"
required-features = ["test-support"]
[[example]]
name = "sweep"
path = "examples/sweep.rs"
required-features = ["test-support"]
[[test]]
name = "blocking"
path = "tests/blocking.rs"
[[test]]
name = "command"
path = "tests/command.rs"
[[test]]
name = "command_budget"
path = "tests/command_budget.rs"
[[test]]
name = "command_chain"
path = "tests/command_chain.rs"
[[test]]
name = "commands"
path = "tests/commands.rs"
[[test]]
name = "control"
path = "tests/control.rs"
[[test]]
name = "filter_derive"
path = "tests/filter_derive.rs"
required-features = ["derive"]
[[test]]
name = "filter_dialect"
path = "tests/filter_dialect.rs"
[[test]]
name = "filter_hierarchy"
path = "tests/filter_hierarchy.rs"
[[test]]
name = "filter_serde"
path = "tests/filter_serde.rs"
[[test]]
name = "filter_tree"
path = "tests/filter_tree.rs"
[[test]]
name = "hierarchy"
path = "tests/hierarchy.rs"
[[test]]
name = "limits"
path = "tests/limits.rs"
[[test]]
name = "macros_readme"
path = "tests/macros_readme.rs"
[[test]]
name = "mutations"
path = "tests/mutations.rs"
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "plan"
path = "tests/plan.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "server_command"
path = "tests/server_command.rs"
[[test]]
name = "target"
path = "tests/target.rs"
[[test]]
name = "test_server"
path = "tests/test_server.rs"
[[test]]
name = "tmux_text"
path = "tests/tmux_text.rs"
[[test]]
name = "version"
path = "tests/version.rs"
[[bench]]
name = "hierarchy"
path = "benches/hierarchy.rs"
harness = false
required-features = ["test-support"]
[dependencies.caseless]
version = "0.2"
optional = true
[dependencies.futures-core]
version = "0.3"
optional = true
[dependencies.libtmux-macros]
version = "=0.1.0-alpha.8"
optional = true
[dependencies.regex]
version = "1.13"
optional = true
[dependencies.rustix]
version = "1.1.4"
features = ["process"]
[dependencies.serde]
version = "1.0.225"
features = ["derive"]
optional = true
[dependencies.tempfile]
version = "3.20"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.40"
features = [
"io-util",
"macros",
"process",
"rt",
"sync",
"time",
]
[dependencies.tracing]
version = "0.1.29"
optional = true
[dev-dependencies.criterion]
version = "0.7.0"
features = ["async_tokio"]
[dev-dependencies.futures-core]
version = "0.3"
[dev-dependencies.jsonschema]
version = "=0.49.9"
default-features = false
[dev-dependencies.serde_json]
version = "1.0.149"
[dev-dependencies.static_assertions]
version = "1.1.0"
[dev-dependencies.tempfile]
version = "3.20"
[dev-dependencies.tokio]
version = "1.40"
features = [
"macros",
"rt-multi-thread",
]
[dev-dependencies.tokio-stream]
version = "0.1.19"
[dev-dependencies.tracing-subscriber]
version = "0.3.23"
[lints.clippy]
await_holding_invalid_type = "deny"
await_holding_lock = "deny"
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_os, values("cygwin"))']