Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve Error Handling for Cargo in Bootstrap Script (#4211)
### Overview This pull request introduces an improvement to the `bootstrap_native.sh` script. It adds a preliminary check to verify whether Cargo, the Rust package manager, is installed in the environment. This enhancement is aimed at providing clearer error messages to developers setting up the project. ### Changes Made - Added a check in `bootstrap_native.sh` to determine if the `cargo` command is available in the system. - If Cargo is not found, the script now outputs a user-friendly error message: `Cargo is not installed. Please install Cargo and the Rust toolchain.` ### Motivation During the setup process, particularly for new contributors or in environments where Rust is not yet installed, the absence of Cargo could lead to a cryptic error message. By explicitly checking for Cargo and providing a clear error message, we make the setup process more developer-friendly and intuitive.
- Loading branch information