[package]
edition = "2024"
rust-version = "1.85"
name = "libtmux"
version = "0.1.0"
authors = ["libtmux contributors"]
build = false
include = [
"/assets/*",
"/Cargo.toml",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"/docs/design.md",
"/docs/findings.md",
"/docs/migration.md",
"/docs/parity.md",
"/benches/**/*.rs",
"/examples/**/*.rs",
"/examples/api/*.json",
"/examples/api/*.md",
"/examples/api/*.toml",
"/schema/**/*.json",
"/src/**/*.rs",
"/tests/fixtures/filter-v1/*.json",
"/tests/fixtures/dialect-v1/*.json",
"/tests/fixtures/layout-preflight.json",
"/tests/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async typed tmux client and object model"
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:tempfile",
"dep:futures-core",
"tokio/io-util",
"tokio/process",
"tokio/sync",
]
default = ["query"]
derive = [
"dep:libtmux-macros",
"query",
]
full = [
"blocking",
"control-mode",
"derive",
"plan",
"query",
"schema",
"serde",
"tracing",
]
plan = []
query = [
"dep:caseless",
"dep:regex",
]
schema = [
"dep:schemars",
"dep:serde_json",
"serde",
]
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 = "api_capture"
path = "examples/api_capture.rs"
[[example]]
name = "api_cardinality"
path = "examples/api_cardinality.rs"
required-features = ["query"]
[[example]]
name = "api_construction"
path = "examples/api_construction.rs"
[[example]]
name = "api_creation"
path = "examples/api_creation.rs"
[[example]]
name = "api_input"
path = "examples/api_input.rs"
[[example]]
name = "api_listings"
path = "examples/api_listings.rs"
[[example]]
name = "api_query"
path = "examples/api_query.rs"
required-features = ["query"]
[[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 = "orchestrate"
path = "examples/orchestrate.rs"
required-features = ["test-support"]
[[example]]
name = "recover"
path = "examples/recover.rs"
required-features = ["test-support"]
[[example]]
name = "scratch"
path = "examples/scratch.rs"
required-features = ["test-support"]
[[example]]
name = "sweep"
path = "examples/sweep.rs"
required-features = ["test-support"]
[[example]]
name = "watch"
path = "examples/watch.rs"
required-features = [
"control-mode",
"test-support",
]
[[test]]
name = "blocking"
path = "tests/blocking.rs"
[[test]]
name = "cancel_safety"
path = "tests/cancel_safety.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 = "control_mode_routing"
path = "tests/control_mode_routing.rs"
[[test]]
name = "daemon_version_check"
path = "tests/daemon_version_check.rs"
[[test]]
name = "examples_manifest"
path = "tests/examples_manifest.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 = "format_injection"
path = "tests/format_injection.rs"
[[test]]
name = "hierarchy"
path = "tests/hierarchy.rs"
[[test]]
name = "instrumentation"
path = "tests/instrumentation.rs"
[[test]]
name = "limits"
path = "tests/limits.rs"
[[test]]
name = "listing_failures"
path = "tests/listing_failures.rs"
[[test]]
name = "macros_readme"
path = "tests/macros_readme.rs"
[[test]]
name = "mutations"
path = "tests/mutations.rs"
[[test]]
name = "optional_control"
path = "tests/optional_control.rs"
[[test]]
name = "optional_features"
path = "tests/optional_features.rs"
required-features = ["test-support"]
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "pane_wait_dead"
path = "tests/pane_wait_dead.rs"
[[test]]
name = "plan"
path = "tests/plan.rs"
[[test]]
name = "plan_schema"
path = "tests/plan_schema.rs"
[[test]]
name = "positional_args"
path = "tests/positional_args.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "scoped"
path = "tests/scoped.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"]
[[bench]]
name = "waits"
path = "benches/waits.rs"
harness = false
required-features = [
"test-support",
"control-mode",
]
[dependencies.caseless]
version = "0.2"
optional = true
[dependencies.futures-core]
version = "0.3"
optional = true
[dependencies.libtmux-macros]
version = "=0.1.0"
optional = true
[dependencies.regex]
version = "1.13"
optional = true
[dependencies.rustix]
version = "1.1.4"
features = ["process"]
[dependencies.schemars]
version = "1"
optional = true
[dependencies.serde]
version = "1.0.225"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0.149"
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.36"
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"))']