Files
learn-rust/create_project.sh
2025-07-01 10:58:49 +03:00

14 lines
239 B
Bash
Executable File

#!/bin/bash
name="$1"
if [ -z "$name" ]; then
echo "Usage: ./monorepo-cargo-new.sh <project_name>"
exit 1
fi
cargo new "$name" --vcs none
echo " \"$name\"," >> Cargo.toml
echo "✅ Project '$name' created and added to workspace!"