Originally created by @cheeselemon
npm run tauri dev
CI=true npm run tauri build
npm run tauri build -- --debug
The error you're encountering indicates that Tauri is trying to use Rust's Cargo build system, but it cannot find the necessary Rust setup to compile the project. This is likely because either Rust is not installed, or the environment isn’t configured properly for Tauri's Rust dependencies.
Tauri uses Rust, so ensure you have the Rust toolchain installed. You can install Rust using rustup
:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Since you are building for universal-apple-darwin, you will need to install the necessary Rust targets. Use:
rustup target add aarch64-apple-darwin x86_64-apple-darwin
npm run tauri build -- --debug
https://discord.com/channels/616186924390023171/1096449326672248903/1096449326672248903