cargo-samply 0.3.3

A cargo subcommand to automate the process of running samply for project binaries
Documentation
# Justfile for cargo-samply
# Run all checks (test, clippy, format)
check:
    #!/usr/bin/env bash
    echo "๐Ÿ” Running all checks..."
    echo ""
    echo "๐Ÿ“ Checking formatting..."
    cargo fmt --check
    echo "โœ… Formatting check passed"
    echo ""
    echo "๐Ÿ“Ž Running clippy..."
    cargo clippy --all-targets --all-features
    echo "โœ… Clippy check passed"
    echo ""
    echo "๐Ÿงช Running tests..."
    cargo test --release
    echo "โœ… All tests passed"
    echo ""
    echo "๐ŸŽ‰ All checks passed successfully!"

# Run strict checks (test, clippy with deny warnings, format)
check-strict:
    #!/usr/bin/env bash
    echo "๐Ÿ” Running strict checks..."
    echo ""
    echo "๐Ÿ“ Checking formatting..."
    cargo fmt --check
    echo "โœ… Formatting check passed"
    echo ""
    echo "๐Ÿ“Ž Running clippy (strict)..."
    cargo clippy --all-targets --all-features -- -D warnings
    echo "โœ… Clippy strict check passed"
    echo ""
    echo "๐Ÿงช Running tests..."
    cargo test --release
    echo "โœ… All tests passed"
    echo ""
    echo "๐ŸŽ‰ All strict checks passed successfully!"
# Clean all target directories from test cargo projects
clean:
    #!/usr/bin/env bash
    echo "Cleaning target directories from test projects..."
    find tests/ -name "target" -type d -exec rm -rf {} + 2>/dev/null || true
    echo "Done cleaning test target directories."

# Clean main project target directory
clean-main:
    cargo clean

# Clean everything (main project + test projects)
clean-all: clean clean-main
    echo "All target directories cleaned."

# Run tests (matches CI configuration)
test:
     cargo test --release

# Run tests with trycmd overwrite (for updating test snapshots)
test-overwrite:
    TRYCMD=overwrite cargo test --release