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

17 lines
291 B
Bash
Executable File

#!/bin/bash
set -e
name="$1"
if [ -z "$name" ]; then
echo "❌ Usage: ./create_project.sh <project_name>"
exit 1
fi
# Step 1: Create new cargo project without Git
cargo new "$name" --vcs none
echo "✅ Project '$name' created and added to workspace!"
echo "add $name to Cargo.toml"