Skip to content

Commit e6e7a58

Browse files
committed
feat(templates): add Rust framework with cargo, actix, and rocket variants
This commit introduces support for Rust in the framework templates, including variants for Cargo, Actix Web, and Rocket. This allows users to quickly bootstrap Rust projects with these popular tools.
1 parent 07bdd91 commit e6e7a58

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/templates.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,31 @@ export const FRAMEWORKS: Framework[] = [
143143
}
144144
],
145145
},
146+
{
147+
name: "rust",
148+
display: "Rust",
149+
color: red,
150+
variants: [
151+
{
152+
name: "rust-cargo",
153+
display: "Cargo New Project",
154+
color: red,
155+
customCommand: "cargo new TARGET_DIR",
156+
},
157+
{
158+
name: "rust-actix",
159+
display: "Actix Web Project",
160+
color: lightRed,
161+
customCommand: "cargo new TARGET_DIR && cd TARGET_DIR && cargo add actix-web",
162+
},
163+
{
164+
name: "rust-rocket",
165+
display: "Rocket Web Framework",
166+
color: magenta,
167+
customCommand: "cargo new TARGET_DIR && cd TARGET_DIR && cargo add rocket",
168+
}
169+
],
170+
},
146171
{
147172
name: "vite",
148173
display: "Vite",

0 commit comments

Comments
 (0)