Skip to content

feat: add Rocket as Rust web framework option#143

Merged
Marve10s merged 1 commit intomainfrom
worktree-agent-a492343e
Apr 10, 2026
Merged

feat: add Rocket as Rust web framework option#143
Marve10s merged 1 commit intomainfrom
worktree-agent-a492343e

Conversation

@Marve10s
Copy link
Copy Markdown
Owner

@Marve10s Marve10s commented Apr 9, 2026

Summary

  • Adds "rocket" to RustWebFrameworkSchema alongside axum and actix-web
  • Full Rocket v0.5 template with #[launch] macro, rocket::State, rocket_cors, and Json responses
  • Covers all ORM integrations (sea-orm, sqlx, diesel, none) and all logging/error handling combos
  • Includes async-graphql-rocket integration for GraphQL support

Files changed (13)

File Change
packages/types/src/schemas.ts Add "rocket" to enum
packages/types/src/option-metadata.ts Add label override
apps/cli/src/prompts/rust-ecosystem.ts Add prompt option
templates/rust-base/Cargo.toml.hbs Add rocket + rocket_cors + async-graphql-rocket deps
templates/rust-base/crates/server/Cargo.toml.hbs Add workspace dep refs
templates/rust-base/crates/server/src/main.rs.hbs Full Rocket block (~265 lines)
apps/web/src/lib/constant.ts Add TECH_OPTIONS entry
apps/web/src/lib/tech-icons.ts Add icon
apps/web/src/lib/tech-resource-links.ts Add docs/github links
packages/template-generator/src/processors/readme-generator.ts Add Rocket description
apps/cli/test/rust-ecosystem.test.ts Add 5 Rocket tests
apps/cli/test/template-snapshots.test.ts Add snapshot combo

Verification

  • cli-builder-sync.test.ts: 352 pass
  • rust-ecosystem.test.ts: 113 pass
  • template-validation.test.ts: 92 pass
  • template-snapshots.test.ts: 66 pass (updated)

cargo check results (all 4 combos pass)

  • rocket + sea-orm: Finished dev profile in 38s
  • rocket + sqlx: Finished dev profile in 36s
  • rocket + diesel: Finished dev profile in 35s
  • rocket + none: Finished dev profile in 32s

Test plan

  • Schema enum updated, auto-derives propagate
  • CLI prompt includes Rocket option
  • Web builder shows Rocket card with icon and links
  • All 4 ORM combos scaffold and pass cargo check
  • Auto-sync test (cli-builder-sync) passes
  • Rust ecosystem tests pass (incl. new Rocket tests)
  • Template validation tests pass
  • Snapshot updated

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-fullstack-web Ignored Ignored Preview Apr 10, 2026 10:24am

@github-actions github-actions bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Apr 9, 2026
Add Rocket v0.5 alongside Axum and Actix-web in the Rust ecosystem.
Includes full ORM integration (sea-orm, sqlx, diesel), CORS via
rocket_cors, GraphQL via async-graphql-rocket, and all logging/error
handling combinations. Verified with cargo check on 4 combos.
@Marve10s Marve10s force-pushed the worktree-agent-a492343e branch from 3fd88a3 to 532ecb2 Compare April 10, 2026 10:23
@Marve10s Marve10s enabled auto-merge (squash) April 10, 2026 10:23
@Marve10s Marve10s merged commit a5e3ae4 into main Apr 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant