UNPKG

validstart

Version:

ValidStart is a powerful and intuitive command-line interface (CLI) tool meticulously crafted to streamline the project setup process.

10 lines (6 loc) 317 B
import { execa } from "execa";; import chalk from "chalk";; export async function scaffoldLibRust({ projectName }: any): Promise<void> { await execa("cargo", ["new", "--lib", projectName], { stdio: "inherit" }); console.log(chalk.green(`✅ Rust library '${projectName}' scaffolded using Cargo.`)); }