dare-rust-workspace

dare-rust-workspace is a command for Claude Code from dewtech-technologies/dare-method. It costs 0 tokens per session (2,021 once invoked), scanned A, original, MIT.

A planning and migration guide for Rust projects that use Cargo, Rust’s build and package tool, especially those built with Axum, a Rust web framework. It helps decide between one crate and a multi-crate workspace.

In plain words
What is it for?
Use it when designing a new Rust project or moving an existing single-crate project into a Cargo workspace.
Why use it?
It turns a structural decision or a large migration into explicit criteria and incremental steps.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/dewtech-technologies/dare-method/dare-rust-workspace
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dare-rust-workspace

README.md
[![agentmods](https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-rust-workspace.svg)](https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-rust-workspace)
Your own site
<a href="https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-rust-workspace"><img src="https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-rust-workspace.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02021
Opus 5 $0.00000 $0.01010
Sonnet 5 $0.00000 $0.00404
Haiku 4.5 $0.00000 $0.00202

Measured yesterday against content hash 8ddb8eb6b6ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dare-rust-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

implementations/claude/.claude/commands/dare-rust-workspace.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/dare-rust-workspace

Decisão e migração de Cargo workspace multi-crate para projetos Rust/Axum. Cobre dois cenários:

  • Cenário A — Design/Blueprint: decidir desde o início se o projeto nasce single-crate ou workspace.
  • Cenário B — Migração: propor plano de PRs incrementais para transformar um projeto single-crate maduro em workspace.

Como usar

/dare-rust-workspace                # análise contextual (lê BLUEPRINT/src/)
/dare-rust-workspace --design       # foco em decisão para projeto novo
/dare-rust-workspace --migrate      # foco em plano de migração

O que fazer

1) Detectar o cenário

  • Se existe DARE/BLUEPRINT.md mas o src/ ainda não existe ou tem < 5 arquivos → Cenário A (decisão)
  • Se src/ tem > 30 arquivos .rs ou múltiplas subpastas top-level → Cenário B (migração)
  • Caso intermediário (15–30 arquivos) → mostrar os critérios e perguntar ao usuário

2) Cenário A — Decisão na fase Design/Blueprint

Aplique os critérios:

Comece single-crate quando TODOS forem verdadeiros:

  • Apenas 1 binário (HTTP server)
  • < 30 arquivos .rs esperados
  • 1–2 sistemas externos (DB; ou DB + cache)
  • Equipe ≤ 2 devs
  • Sem deploy independente para subcomponentes

Comece workspace quando QUALQUER for verdadeiro:

  • ≥ 2 binários previstos (API + worker; API + admin)
  • ≥ 3 sistemas externos (PG + Redis + Rabbit + Qdrant + Neo4j…)
  • Deploy independente desejado (workers em pods separados)
  • Fronteiras arquiteturais críticas (domain puro; SDK publicável)
  • Equipe ≥ 3 devs em paralelo

Layout recomendado para workspace (use <p> como prefixo do projeto):

projeto/
├── Cargo.toml                    # workspace root
├── crates/
│   ├── <p>-domain/    (lib)      # entities puras
│   ├── <p>-config/    (lib)
│   ├── <p>-db/        (lib)
│   ├── <p>-cache/     (lib)
│   ├── <p>-queue/     (lib)
│   ├── <p>-services/  (lib)      # business logic
│   ├── <p>-integrators/ (lib)    # clientes externos
│   ├── <p>-api/       (bin+lib)  # HTTP server
│   ├── <p>-worker-<X>/ (bin)     # 1 binário por worker
│   └── <p>-e2e/       (tests)
└── xtask/                        # scripts em Rust

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 210 lines · 0 tokens per session scan A 8ddb8eb6b6ce

Subscribe to this mod's changes

dare-rust-workspace is a command published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,021 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.