[package]
name = "oomtop-cli"
description = "oomtop: see the OOM coming. Terminal resource monitor for local AI work."
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
authors.workspace = true
readme = "../../README.md"
documentation = "https://github.com/iprajax/oomtop/blob/main/docs/cli.md"
keywords.workspace = true
categories.workspace = true
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/oomtop-{ version }-{ target }.tar.gz"
bin-dir = "oomtop-{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/oomtop-{ version }-universal-apple-darwin.tar.gz"
bin-dir = "oomtop-{ version }-universal-apple-darwin/{ bin }{ binary-ext }"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/oomtop-{ version }-universal-apple-darwin.tar.gz"
bin-dir = "oomtop-{ version }-universal-apple-darwin/{ bin }{ binary-ext }"
[[bin]]
name = "oomtop"
path = "src/main.rs"
[dependencies]
oomtop-core = { workspace = true }
oomtop-collect = { workspace = true }
oomtop-detect = { workspace = true }
oomtop-adapters = { workspace = true }
oomtop-config = { workspace = true }
oomtop-state = { workspace = true }
oomtop-tui = { workspace = true }
oomtop-mcp = { workspace = true }
oomtop-serve = { workspace = true }
clap = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
libc = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
tikv-jemallocator = "0.6"
[dev-dependencies]
tempfile = { workspace = true }
sha2 = { workspace = true }
[package.metadata.deb]
name = "oomtop"
maintainer = "oomtop contributors <noreply@users.noreply.github.com>"
copyright = "oomtop contributors, MIT License"
license-file = ["../../LICENSE", "0"]
extended-description = """\
Terminal resource monitor for local AI work: true memory accounting (PSS/SwapPss, GPU via NVML \
and drm fdinfo), attribution of every process to its agent session, app, sandbox or model server, \
headroom checks, OOM forecast, throttle explanations and an MCP server for agents."""
section = "utils"
priority = "optional"
depends = "libc6 (>= 2.28), libgcc-s1 | libgcc1"
assets = [
["target/release/oomtop", "usr/bin/", "755"],
["../../README.md", "usr/share/doc/oomtop/README.md", "644"],
["../../docs/config.md", "usr/share/doc/oomtop/config.md", "644"],
["../../docs/themes.md", "usr/share/doc/oomtop/themes.md", "644"],
["../../docs/mcp.md", "usr/share/doc/oomtop/mcp.md", "644"],
["../../docs/cli.md", "usr/share/doc/oomtop/cli.md", "644"],
]
[package.metadata.generate-rpm]
name = "oomtop"
summary = "Know before you run out of memory: true memory, attribution and headroom for local AI work"
license = "MIT"
auto-req = "no"
requires = { glibc = ">= 2.28", libgcc = "*" }
assets = [
{ source = "target/release/oomtop", dest = "/usr/bin/oomtop", mode = "755" },
{ source = "../../README.md", dest = "/usr/share/doc/oomtop/README.md", mode = "644", doc = true },
{ source = "../../docs/config.md", dest = "/usr/share/doc/oomtop/config.md", mode = "644", doc = true },
{ source = "../../docs/themes.md", dest = "/usr/share/doc/oomtop/themes.md", mode = "644", doc = true },
{ source = "../../docs/mcp.md", dest = "/usr/share/doc/oomtop/mcp.md", mode = "644", doc = true },
{ source = "../../docs/cli.md", dest = "/usr/share/doc/oomtop/cli.md", mode = "644", doc = true },
{ source = "../../LICENSE", dest = "/usr/share/licenses/oomtop/LICENSE", mode = "644", doc = true },
]