DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add a plugin lifecycle to a Rust application with Rutis

Run plugins in a Rust program that starts once dependencies are ready and cleans up on stop.

Short answer: Run cargo add rutis and cargo add tokio --features full in your Rust project; then 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 quickstart from a clone of the repository to see the lifecycle in action. All steps.

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

  1. Run cargo add rutis and cargo add tokio --features full in your Rust project.
  2. Define a plugin that provides a service and another plugin that depends on it, as shown in the README quick start.
  3. Run cargo run -p rutis --example quickstart from 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer