In The Wild with 4,384 Active Installs
FREE RAG Converter Online – RAGconverter.com
Deputy

A personally-owned, verified vault and supply-chain gate for your code dependencies.
Archive every crate you build against, scan it, and gate what reaches production — so a
registry outage, a takedown, or a hijacked release can’t change your build.
Deputy takes the full transitive dependency closure of your repositories, downloads every
crate into a local encrypted vault you own, verifies and scans each one, and gates what
reaches production — so your builds can consume your verified copies instead of trusting a
live registry. If crates.io changes, disappears, or ships a compromised release, you still
hold the exact bytes you vetted.
Part of Remade With Rust by
Mata Network.
cargo install deputy-cli # provides the `deputy` binary
How to
For someone who just installed Deputy — not a contributor building the workspace.
1. Install and set a passphrase
cargo install deputy-cli
Requires Rust 1.85+. The vault is created at ~/.deputy (Windows: %USERPROFILE%\.deputy), or $DEPUTY_VAULT if you set it. The passphrase is the at-rest encryption key (Argon2id) — Deputy never stores it:
export DEPUTY_PASSPHRASE='choose-a-strong-passphrase' # bash / zsh
# PowerShell: $env:DEPUTY_PASSPHRASE = 'choose-a-strong-passphrase'
2. Open the dashboard (Send Plans, New Versions, Scan)
The desktop app is not on crates.io. Clone this repo and run it against the same vault:
git clone https://github.com/Remade-With-Rust/deputy
cd deputy
export DEPUTY_PASSPHRASE='choose-a-strong-passphrase'
export DEPUTY_NO_MID=1 # local identity for a first run; omit this when using mID
cargo run -p deputy-ui --features desktop
Do not use dx serve for the desktop app. The window embeds the API at http://127.0.0.1:7878.
- Connect with GitHub — approve access in the browser (the
repo scope is what lets Deputy read lockfiles and write plans).
- Pick repositories (or a local folder) and download them into a named workspace.
- Scan that workspace.
- New Versions — crates.io releases newer than each repo’s
Cargo.lock.
- Send Plans commits
docs/plans/deputy-upgrades.md into each GitHub repo (creates docs/plans/ if it is missing). The file is that repo’s Cargo.lock only — crates you declared and their transitive deps — not other repos in the workspace and not Deputy’s vault. latest is crates.io’s newest release of that crate name, held until it is at least 7 days old. Compatible bumps are usually cargo update; new majors need a Cargo.toml change. Local folders are skipped.
- Check the versions you want in the vault, then Redeploy to Production.
- Production is what has been promoted.
3. Command line (no dashboard)
Same passphrase, then the pipeline against a repo that has a Cargo.lock:
deputy discover ./my-app
deputy acquire ./my-app
deputy analyze ./my-app
deputy scan ./my-app # non-zero if anything is flagged
deputy promote ./my-app
deputy gate ./my-app # the CI check — non-zero unless every dep is promoted + receipted
deputy serve --no-mid --port 7878 is the localhost API (UI, agents, POST /folders/upgrade-plans). mID is on by default; --no-mid is the local-dev toggle.
Full design: docs/.
Why
A modern Rust app pulls in hundreds of transitive crates. You don’t control them, you can’t
easily prove what you’re actually building against, and a single upstream incident — a yanked
crate, a hijacked maintainer account, a re-published tarball — can change your build out from
under you.
Deputy is the personal backstop:
- Redundancy — a private, content-addressed copy of every dependency’s source, so an
upstream outage or takedown can’t stop you building.
- Integrity — every artifact is SHA-256-verified on acquisition and re-checked on scan; a
re-published
name@version with different bytes is flagged, not silently accepted.
- A gate — only dependencies you’ve scanned clean and promoted reach production; the
deploy gate is fail-closed.
Features
- Recursive acquisition — drives off
Cargo.lock (the resolved transitive graph), fetches
each .crate from crates.io, SHA-256-verifies it against the lockfile checksum, and seals it
into the vault. Shared dependencies are de-duplicated — downloaded once across all your
repos and sessions.
- Content-addressed encrypted vault — two stores (
dirty/staging and prod), each
AES-256-GCM-sealed under an Argon2id-derived key, addressed by SHA-256.
- Advisory scanning — checks pinned versions against the RUSTSEC database with computed
CVSS v3.1 severity and correct multi-branch “not-patched” matching, plus integrity and
substitution detection (same
name@version, different hash).
- Dep Analytics — language mix across crate sources (bars + per-crate languages/lines).
- New Versions — tracks scanned dependencies for newer releases and public advisories.
Check versions to migrate into production, or Send Plans to commit a per-repo
docs/plans/deputy-upgrades.md for that GitHub repo’s Cargo.lock (direct + transitive).
Only crates.io releases at least a week old are listed.
- Staging → production — promote scanned-clean dependencies into
prod with hash-chained,
mID-attributed receipts; hold anything not ready in staging.
- Offline-coverage check — reports exactly which dependencies are safely archived vs. gaps
(git deps, non-crates.io registries, failed acquisitions).
- mID authentication — sign in with MATA Sovereign ID;
every mutating operation is gated by a verified identity, a scoped SpaceDB capability, and a
typed mata-cap
deputy:<action> grant.
- Three surfaces — an HTTP API (API-first), a
deputy CLI, and a Dioxus desktop (and web) UI.
How it works
The pipeline is a content-addressed, identity-gated state machine
(docs/PIPELINE.md):
Discover ─▶ Acquire ─▶ Analyze ─▶ Scan ─┬─ clean ────▶ Promote ─▶ Deploy
(lockfile) (fetch+verify+seal) └─ findings ─▶ Quarantine
- Discover — read each repo’s
Cargo.lock; pin every crates.io dependency to its
checksum.
- Acquire — fetch, SHA-256-verify, and seal each unique crate into the
dirty store.
- Analyze — language + supply-chain risk analytics over the acquired set.
- Scan — advisory, integrity, and substitution checks → a clean/findings verdict.
- Promote — move clean artifacts
dirty → prod with a hash-chained receipt.
- Deploy — vendor the prod copies into your build behind a fail-closed gate.
The crates
Deputy is a Cargo workspace. Each library crate is published independently; install
deputy-cli for the binary, or depend on the libraries to embed Deputy.
| Crate |
Role |
deputy-core |
Domain types, the artifact state machine, trait contracts. No I/O. |
deputy-alloc |
rusty_alloc seam. Deliverables declare #[global_allocator] here; libraries never do. |
deputy-crypto |
Argon2id key derivation + AES-256-GCM sealing. |
deputy-store |
The content-addressed dirty/prod vault + encrypted metadata DB. |
deputy-id |
MATA mID verification and Deputy’s session/identity model. |
deputy-ecosystem |
Lockfile parsing + fetch/verify, behind the DepEcosystem trait (Cargo first). |
deputy-acquire |
The fetch → verify → seal acquisition pipeline. |
deputy-analyze |
Language + supply-chain risk analysis of crate sources. |
deputy-scan |
Advisory / integrity / substitution scanning → verdicts. |
deputy-deploy |
Promotion receipts, the fail-closed gate, and vendoring. |
deputy-api |
The HTTP API + service layer that composes the pipeline. |
deputy-cli |
The deputy command-line binary. |
deputy-ui |
The Dioxus desktop (and web) dashboard (not published). |
Design
- Security-first, API-first. Every mutating path is gated by a verified mID session and a
scoped SpaceDB capability; the API is the
source of truth, with the CLI and UI as clients.
- Confidentiality and authentication are separate. At-rest encryption uses an Argon2id
passphrase-derived key; mID (P-256, sign/verify only) authenticates who is acting. mID is
never a key-derivation source.
- Pure Rust, native + WASM. The same codebase targets macOS/Linux/Windows and the browser
via Dioxus.
Full design lives in docs/ — start with ARCHITECTURE.md,
then THREAT_MODEL.md, PIPELINE.md,
STORAGE.md, and AUTH.md.
Building from source
cargo build --workspace # build all crates
cargo test --workspace # run the test suite
cargo clippy --workspace --all-targets -- -D warnings
cargo deny check # supply-chain / license gate (dogfooding the mission)
Requires Rust 1.85+. The desktop UI:
DEPUTY_PASSPHRASE='…' DEPUTY_NO_MID=1 cargo run -p deputy-ui --features desktop
Contributing
Contributions are welcome — see CONTRIBUTING.md. Security issues: please
follow SECURITY.md. Release process: RELEASING.md.
The Remade With Rust ecosystem
Remade With Rust is an initiative by Mata Network
to rebuild essential C and C++ tools in Rust — for the memory safety, the
predictable performance, and the freedom of a permissive license. Each project
is a reimplementation, not a fork: same wire protocols and file formats, new
code you can actually depend on. No copyleft. No surprises.
| Project |
What it is |
| 🎬 remade_ffmpeg_rs |
Our FFmpeg alternative. Drop-in ffmpeg and ffprobe binaries — demux → decode → filter → encode → mux, rebuilt as composable Rust crates with zero GPL/LGPL. Apache-2.0. |
| 🧠 FFAI |
Our sister project: media for AI. “The AI media toolkit, remade with rust.” Embedded ASR + TTS (Mercury), OCR (Carmenta) and vision-language captioning (Argus) behind an ffmpeg-style, swap-by-name architecture — no Python, no CUDA. MIT OR Apache-2.0. |
| 🌐 Mata Network |
The home page. “Stop sacrificing your privacy for convenience.” Sovereign, self-hostable privacy infrastructure — wallet & identity, password manager, contact manager, and a browser extension that stops information leaking as you browse. Remade With Rust is its open-source arm. |
→ All projects: github.com/Remade-With-Rust
License
Deputy is free for anyone to use, for any purpose, including commercially — no fees, no
copyleft. It is dual-licensed, at your option, under either of:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in
this project, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any
additional terms or conditions.
评论