BUG: Invalid target directory in package.json cargo:check script
Is there an existing issue for this?
- [x] I have searched the existing issues
What happened?
What happened?
In the root package.json, the cargo:check script is configured as:
"cargo:check": "cd backend && cargo check"
The backend/ directory is the Python FastAPI sidecar, which contains no Cargo manifest (Cargo.toml). The Rust shell (Tauri v2) is located in frontend/src-tauri/.
Running npm run cargo:check from the repository root fails:
error: could not find `Cargo.toml` in `/path/to/PictoPy/backend` or any parent directory
Record
- [x] I agree to follow this project's Code of Conduct
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
I would like to work on it
Confirmed! I tested npm run cargo:check from root or /backend on latest dev, and it indeed fails with:
error: could not find `Cargo.toml` in `.../PictoPy/backend` or any parent directory
while i don't think the bug is breaking anything in the app or CI, it is a bug which is sitting there since 2025
@Prakhar1808 can you please assign me this issue i have a fix ready for this issue.