2.1 KiB · text History 2977adf
[package]
name = "vigil-cli"
version = "0.1.0"
edition = "2024"
description = "Command-line client for a Vigil error tracker"
license = "AGPL-3.0-or-later"

[[bin]]
name = "vgl"
path = "src/main.rs"

[dependencies]
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
clap = { version = "4", features = ["derive", "wrap_help"] }
dirs = "7"
reqwest = { version = "0.13", default-features = false, features = ["blocking", "json", "charset", "rustls", "rustls-native-certs", "system-proxy"] }
rpassword = "7"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "1"
url = "2"

[dev-dependencies]
tempfile = "3"

# ── packaging ────────────────────────────────────────────────────────
#
# `cargo deb` and `cargo generate-rpm` build the two packages CI
# publishes, from this metadata. Both are runnable by hand, so a
# packaging bug can be reproduced without pushing a commit:
#
#   cargo build --release && cargo deb && cargo generate-rpm
#
# CI overrides only what varies per build: the version stamp and the
# maintainer.

[package.metadata.deb]
name = "vgl"
maintainer = "Vigil <noreply@vigil.local>"
copyright = "The Vigil authors, AGPL-3.0-or-later"
license-file = ["../LICENSE", "0"]
section = "utils"
priority = "optional"
extended-description = """
Manages a Vigil (Sentry-compatible) error tracker from the shell over its
/api/0 API: organizations, teams, projects, DSN keys, issues, releases,
cron and uptime monitors.
"""
assets = [
    ["target/release/vgl", "usr/bin/", "755"],
    ["README.md", "usr/share/doc/vgl/README.md", "644"],
]

[package.metadata.generate-rpm]
name = "vgl"
summary = "Command-line client for a Vigil error tracker"
assets = [
    { source = "target/release/vgl", dest = "/usr/bin/vgl", mode = "755" },
    { source = "README.md", dest = "/usr/share/doc/vgl/README.md", mode = "644", doc = true },
    { source = "../LICENSE", dest = "/usr/share/licenses/vgl/LICENSE", mode = "644", doc = true },
]