{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "arcships-rutis--embed-plugins-in-a-rust-app",
 "repo": "arcships/rutis",
 "repo_url": "https://github.com/arcships/rutis",
 "repo_slug": "arcships-rutis",
 "title": "Add a plugin lifecycle to a Rust application",
 "page_title": "How to add a plugin lifecycle to a Rust application with Rutis",
 "summary": "Run plugins in a Rust program that starts once dependencies are ready and cleans up on stop.",
 "who": "A Rust developer building a long-running program that must swap providers and release resources without leaking them.",
 "problem": "Hand-managing startup order, rollback and cleanup for swappable components is error-prone when components are replaced repeatedly.",
 "outcome": "A Rust program in which a dependent plugin starts when its service appears, restarts when the provider is replaced, and releases everything exactly once.",
 "steps": [
  "Run `cargo add rutis` and `cargo add tokio --features full` in 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 quickstart` from a clone of the repository to see the lifecycle in action."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/arcships-rutis/embed-plugins-in-a-rust-app/",
 "md": "https://dedupedai.com/use-cases/arcships-rutis/embed-plugins-in-a-rust-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/arcships-rutis--embed-plugins-in-a-rust-app.json",
 "api_version": "v1"
}
