Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 789 Bytes

File metadata and controls

40 lines (27 loc) · 789 Bytes

Commands

This file documents the most common commands used in my Rust projects.

# Create a new Rust binary project
cargo new my_project --bin

# Create a new Rust library project
cargo new my_project --lib

# Build the project in debug mode
cargo build

# Build the project in release mode
cargo build --release

# Run tests
cargo test

# Format the codebase
cargo fmt

# Check for common issues and enforce coding standards
cargo clippy

# Run the project (if it's a binary)
cargo run

# Generate documentation
cargo doc

# Clean the project build artifacts
cargo clean

# Database migration
sqlx migrate run

These commands cover the basic workflow for developing, testing, and maintaining Rust projects. Adjust them as needed based on your specific project requirements.