Who it is forA Rust developer building a long-running program that must swap providers and release resources without leaking them.
The problemHand-managing startup order, rollback and cleanup for swappable components is error-prone when components are replaced repeatedly.
The outcomeA Rust program in which a dependent plugin starts when its service appears, restarts when the provider is replaced, and releases everything exactly once.
What you need first
- Node.js with npm, or Bun, for the TypeScript path
- uv for the Python path
- Go for the Go path
- A Rust toolchain with cargo for the embedding path
Steps
- Run
cargo add rutisandcargo add tokio --features fullin your Rust project. - Define a plugin that provides a service and another plugin that depends on it, as shown in the README quick start.
- Run
cargo run -p rutis --example quickstartfrom a clone of the repository to see the lifecycle in action.
Prompt for your agent
Using the repo arcships/rutis, add the rutis and tokio crates to <target> with `cargo add rutis` and `cargo add tokio --features full`, then run `cargo run -p rutis --example quickstart` from a clone. Expected output: the listener printing a greeting, then printing a new greeting after the provider is replaced. Verify that the listener restarts without any change to its own code.
Caveat. The README describes the Rust API as the core, so expect to read the docs at docs.rs/rutis for the full set of calls beyond the example.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for arcships/rutis and "Add a plugin lifecycle to a Rust application"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer