Skip to content

BUG: cargo:check script fails with "manifest not found" #1088

@Ujjiyara

Description

@Ujjiyara

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

What happened?
The cargo:check script defined in the root package.json attempts to run cargo check in the backend/ directory. However, the backend/ directory contains the Python backend code and has no Cargo.toml. The Rust code is located in frontend/src-tauri/.

Running npm run cargo:check results in:

error: could not find \`Cargo.toml\` in \`/path/to/PictoPy/backend\` or any parent directory

Proposed Fix:
Update package.json to point to the correct directory:

- "cargo:check": "cd backend && cargo check",
+ "cargo:check": "cd frontend/src-tauri && cargo check",

Record

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions