2.1 KiB · text History b868907
[package]
name = "gitgud-cli"
version = "0.1.0"
edition = "2024"
description = "Command-line client for a GitGud forge"
license = "AGPL-3.0-or-later"

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

[dependencies]
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
clap = { version = "4", features = ["derive", "env", "wrap_help"] }
dirs = "7"
ratatui = "0.30"
reqwest = { version = "0.13", default-features = false, features = ["json", "http2", "charset", "rustls", "rustls-native-certs", "system-proxy"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "sync"] }
toml = "1"
url = "2"

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

[package.metadata.deb]
name = "gg"
maintainer = "GitGud <noreply@gitgud.local>"
copyright = "The GitGud authors, AGPL-3.0-or-later"
license-file = ["../LICENSE.md", "0"]
section = "utils"
priority = "optional"
extended-description = """
Talks to the same /api/mobile/v1 surface the GitGud Android app uses:
repositories, CI runs and logs, issues, pull requests, wiki pages and
packages, plus an interactive CI dashboard.
"""
assets = [
    ["target/release/gg", "usr/bin/", "755"],
    ["README.md", "usr/share/doc/gg/README.md", "644"],
]

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