Is there an existing issue for this?
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
Is there an existing issue for this?
What happened?
What happened?
The
cargo:checkscript defined in the rootpackage.jsonattempts to runcargo checkin thebackend/directory. However, thebackend/directory contains the Python backend code and has noCargo.toml. The Rust code is located infrontend/src-tauri/.Running
npm run cargo:checkresults in:Proposed Fix:
Update
package.jsonto point to the correct directory:Record