zenops 0.18.0

Declarative system configuration management for shell config and dotfiles.
Documentation
[pkg.cargo]
enable = "detect"
description = "Rust toolchain (cargo) — loads ~/.cargo/env into the shell."

[pkg.cargo.install_hint.brew]
packages = ["rustup-init"]

# Fedora ships `rustup` directly; running it populates `~/.cargo/env` the
# same way `rustup-init` does under brew, satisfying the pkg's detect.
[pkg.cargo.install_hint.dnf5]
packages = ["rustup"]

# Ubuntu 24.04 (noble) also ships a `rustup` apt package — same idea.
[pkg.cargo.install_hint.apt]
packages = ["rustup"]

# Arch ships `rustup` in extra; behavior matches Fedora's and Ubuntu's.
[pkg.cargo.install_hint.pacman]
packages = ["rustup"]

# Can't bootstrap the cargo pkg via cargo itself.
[pkg.cargo.install_hint.cargo]
packages = []

[pkg.cargo.detect]
exists = "~/.cargo/env"

[[pkg.cargo.shell.env_init.bash]]
type = "comment"
text = "Rust/Cargo environment"

[[pkg.cargo.shell.env_init.bash]]
type = "source"
path = "~/.cargo/env"

[[pkg.cargo.shell.env_init.zsh]]
type = "comment"
text = "Rust/Cargo environment"

[[pkg.cargo.shell.env_init.zsh]]
type = "source"
path = "~/.cargo/env"