Skip to content

Resolve 330+ Backend Compilation Errors & Establish CI/CD Pipeline #128

@anonfedora

Description

@anonfedora

Description:
The current Rust backend in backend/ has over 330 compilation errors primarily related to SQLx query verification, type annotations, and ambiguous imports. This issue is a blocker for all other backend development.

Key Tasks:

  • Set up a local PostgreSQL instance and run existing migrations in backend/migrations.
  • Execute cargo sqlx prepare to generate offline query metadata for all services.
  • Resolve ~16 type ambiguity errors in wallet_service.rs and other files by using fully qualified paths or renaming conflicting types.
  • Add explicit type annotations for ~113 generic parameter errors throughout the service layer.
  • Fix ~30 miscellaneous errors including conflicting trait implementations and mismatched closure signatures.
  • Implement a GitHub Actions CI pipeline that runs cargo check and cargo test on every PR.

Acceptance Criteria:

  • The backend project compiles successfully with cargo build.
  • cargo sqlx prepare is integrated into the build process.
  • CI pipeline is green and prevents regressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions