[package]
edition = "2024"
rust-version = "1.85"
name = "rusty-vipe"
version = "0.1.0"
authors = ["James Han <jsh562@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pop $EDITOR mid-pipe, edit the buffered bytes interactively, resume the pipeline with the edited output — a Rust port of moreutils `vipe` with strict-compat mode, cross-platform TTY reattachment (/dev/tty or CONIN$/CONOUT$), and a typed library API."
homepage = "https://github.com/jsh562/rusty-vipe"
documentation = "https://docs.rs/rusty-vipe"
readme = "README.md"
keywords = [
"vipe",
"moreutils",
"editor",
"pipe",
"cli",
]
categories = [
"command-line-utilities",
"text-editors",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jsh562/rusty-vipe"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
bench = ["dep:criterion"]
cli = [
"dep:clap",
"dep:clap_complete",
"dep:anyhow",
"dep:signal-hook",
]
default = ["cli"]
dev-helpers = []
vipe-alias = ["cli"]
[lib]
name = "rusty_vipe"
path = "src/lib.rs"
[[bin]]
name = "fake-editor"
path = "tests/bin/fake_editor.rs"
test = false
doctest = false
bench = false
required-features = ["dev-helpers"]
[[bin]]
name = "rusty-vipe"
path = "src/main.rs"
required-features = ["cli"]
[[bin]]
name = "vipe"
path = "src/bin/vipe.rs"
required-features = ["vipe-alias"]
[[test]]
name = "cli_errors"
path = "tests/cli_errors.rs"
[[test]]
name = "compat_default"
path = "tests/compat_default.rs"
[[test]]
name = "compat_strict"
path = "tests/compat_strict.rs"
[[test]]
name = "completions_drift"
path = "tests/completions_drift.rs"
[[test]]
name = "editor_resolution"
path = "tests/editor_resolution.rs"
[[test]]
name = "fake_editor_contract"
path = "tests/fake_editor_contract.rs"
[[test]]
name = "lib_api"
path = "tests/lib_api.rs"
[[test]]
name = "no_tty"
path = "tests/no_tty.rs"
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
required-features = ["bench"]
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
optional = true
[dependencies.clap_complete]
version = "4"
optional = true
[dependencies.criterion]
version = "0.5"
optional = true
[dependencies.shell-words]
version = "1"
[dependencies.signal-hook]
version = "0.3"
optional = true
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.insta]
version = "1"
features = ["yaml"]
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[target.'cfg(target_os = "linux")'.dev-dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_System_Console",
"Win32_System_Threading",
"Win32_Security",
]
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"