Skip to content

Release Notes - v0.1.265

Choose a tag to compare

@Tuntii Tuntii released this 02 Feb 15:09
· 102 commits to main since this release
59c1b9a

🐛 Bug Fixes

cargo-rustapi CLI

new Command - Positional Argument Fix

  • Issue: The new command rejected project names passed as positional arguments (e.g., cargo rustapi new my-project)
  • Error: unexpected argument 'my-project' found
  • Fix: Changed name from a flag (-n/--name) to a positional argument
  • Impact: 7 CLI tests were failing, now all pass
# Before (broken)
cargo-rustapi new my-project --template minimal  # ❌ Error

# After (fixed)
cargo-rustapi new my-project --template minimal  # ✅ Works

migrate create Command - CI Timeout Fix

  • Issue: migrate create command was timing out in CI coverage tests (>60 seconds)
  • Root Cause: The command unnecessarily checked for sqlx-cli installation (and tried to install it if missing), even though migrate create only creates local files
  • Fix: Moved ensure_sqlx_installed() check to only run for commands that actually need it (run, revert, status, reset)
  • Impact: test_migrate_create_generates_files test now completes in ~0.4 seconds instead of timing out

rustapi-rs

Doc Test Compilation Fix

  • Issue: The Quick Start doc test failed to compile due to Schema derive macro path resolution issues in the doc test environment
  • Error: failed to resolve: unresolved import for schema, SchemaRef, serde_json
  • Fix: Changed doc test from no_run to ignore since it's meant as documentation, not a runnable test
  • Note: The actual Schema derive macro functionality is tested in proper integration tests