Sastri
Named after C. V. Runganada Sastri (1819–1881) — interpreter, jurist, and polyglot who bridged many languages. Sastri does the same for install channels: one Rust binary, many front doors.
Scaffold multi-ecosystem packaging and CI/CD for Rust CLIs — the pattern from one binary, many front doors.
One native binary on GitHub Releases is the source of truth. Homebrew, Scoop, mise/asdf, and CI are thin wrappers around that artifact.
Docs: Quick start · Guide · Usage
Install
# Homebrew
# Scoop (Windows)
# mise
# asdf
# curl
|
# crates.io
Quick start
# In your Rust CLI repo
# or
Commands
Config (Sastri.toml)
Holds names, repos, orgs, enabled mechanisms. No tokens.
[]
= "greet"
= "Tiny example CLI"
= "latentmeta"
= "greet"
= "greet"
= "0.1.0"
= "Cargo.toml"
= "MIT"
[]
= "latentmeta/homebrew-tap"
= "latentmeta/scoop-bucket"
= "latentmeta/asdf-greet"
[]
= true
= true
= true
= true
= true
= true
= true
= true
= false
= false
= false
Full field reference: docs/usage.md.
What gets generated
| Mechanism | Output |
|---|---|
ci |
.github/workflows/ci.yml (fmt, clippy, tests, llvm-cov) |
github_releases |
.github/workflows/release.yml (+ crates.io) |
install_sh |
scripts/install.sh |
homebrew / scoop / asdf / mise |
under packaging/ |
setup_action |
.github/actions/setup-<bin>/ |
This repository dogfoods itself via the root Sastri.toml.
Extending (Ruby, Haskell, …)
- Add
src/engine/my_eco.rsimplementingMechanism - Register in
registry::all - Add a default key in
SastriConfig::default_mechanisms - Ship — wizard / TUI / CLI need no other changes
Stubs ruby_gem and haskell_cabal already exist as templates.
Architecture
GitHub Releases (+ SHA256SUMS)
│
├─ CI · install.sh · setup Action · mise · asdf
├─ Homebrew tap · Scoop bucket
└─ (optional) npm · PyPI · Hex · …
License
MIT