cargo-watch/Cargo.toml

129 lines
4.2 KiB
TOML

[package]
name = "cargo-watch"
version = "8.1.2"
authors = ["Félix Saparelli <felix@passcod.name>"]
license = "Apache-2.0"
description = "Watch your Cargo-based project and run commands when files change"
keywords = ["cargo", "watch", "compile", "notify"]
categories = ["command-line-utilities", "development-tools"]
homepage = "https://watchexec.github.io/#cargo-watch"
documentation = "https://github.com/watchexec/cargo-watch#readme"
repository = "https://github.com/watchexec/cargo-watch"
readme = "README.md"
edition = "2021"
resolver = "2"
rust-version = "1.60.0"
include = ["src", "examples", "tests", "build.rs", "/*manifest*", "README.md"]
[[bin]]
name = "cargo-watch"
[dependencies]
argfile = "0.1.4"
clap = { version = "3.2.8", features = ["derive"] }
console-subscriber = { version = "0.1.6", optional = true }
dunce = "1.0.2"
futures = "0.3.21"
miette = { version = "5.3.0", features = ["fancy-no-backtrace"] }
mimalloc = { version = "0.1.29", optional = true }
shlex = "1.1.0"
tracing = "0.1.35"
watchexec = "2.1.0"
wild = "2.0.4"
[dependencies.tokio]
version = "1.19.2"
features = [
"fs",
"io-std",
"parking_lot",
"process",
"rt",
"rt-multi-thread",
"signal",
"sync",
]
[dependencies.tracing-subscriber]
version = "0.3.14"
features = [
"env-filter",
"fmt",
]
[target.'cfg(not(target_os="freebsd"))'.dependencies]
notify-rust = "4.5.8"
[build-dependencies]
embed-resource = "1.7.3"
[dev-dependencies]
clap_complete = "3.2.3"
clap_complete_fig = "3.2.4"
dircpy = "0.3.10"
duct = "0.13.5"
tempfile = "3.3.0"
trycmd = "0.13.4"
[features]
dev-console = ["console-subscriber"]
mimalloc = ["dep:mimalloc"]
[profile.release]
debug = 1 # for stack traces
lto = "fat"
codegen-units = 1
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.{ archive-format }"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tzst"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[package.metadata.deb]
maintainer = "Félix Saparelli <felix@passcod.name>"
license-file = ["LICENSE", "0"]
section = "devel"
depends = "libc6, libgcc-s1"
# conf-files = [] # look me up when config file lands
assets = [
["target/release/cargo-watch", "usr/bin/cargo-watch", "755"],
["README.md", "usr/share/doc/cargo-watch/README", "644"],
["USAGE.md", "usr/share/doc/cargo-watch/USAGE", "644"],
["TROUBLESHOOT.md", "usr/share/doc/cargo-watch/TROUBLESHOOT", "644"],
["cargo-watch.1", "usr/share/man/man1/cargo-watch.1", "644"],
["logo.svg", "usr/share/icons/hicolor/scalable/apps/cargo-watch.svg", "644"],
["completions/cargo-watch.bash", "usr/share/bash-completion/completions/cargo-watch", "644"],
["completions/cargo-watch.elv", "usr/share/elvish/lib/cargo-watch.elv", "644"],
["completions/cargo-watch.fish", "usr/share/fish/completions/cargo-watch.fish", "644"],
["completions/_cargo-watch.zsh", "usr/share/zsh/site-functions/_cargo-watch", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/cargo-watch", dest = "/usr/bin/cargo-watch", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/cargo-watch/README", mode = "644", doc = true },
{ source = "USAGE.md", dest = "/usr/share/doc/cargo-watch/USAGE", mode = "644", doc = true },
{ source = "TROUBLESHOOT.md", dest = "/usr/share/doc/cargo-watch/TROUBLESHOOT", mode = "644", doc = true },
{ source = "cargo-watch.1", dest = "/usr/share/man/man1/cargo-watch.1.html", mode = "644" },
{ source = "logo.svg", dest = "/usr/share/icons/hicolor/scalable/apps/cargo-watch.svg", mode = "644" },
{ source = "completions/cargo-watch.bash", dest = "usr/share/bash-completion/completions/cargo-watch", mode = "644" },
{ source = "completions/cargo-watch.elv", dest = "/usr/share/elvish/lib/cargo-watch.elv", mode = "644" },
{ source = "completions/cargo-watch.fish", dest = "/usr/share/fish/completions/cargo-watch.fish", mode = "644" },
{ source = "completions/_cargo-watch.zsh", dest = "/usr/share/zsh/site-functions/_cargo-watch", mode = "644" },
# set conf = true for config file when that lands
]
auto-req = "disabled"
# technically incorrect when using musl, but these are probably
# present on every rpm-using system, so let's worry about it if
# someone asks.
[package.metadata.generate-rpm.requires]
glibc = "*"
libgcc = "*"