A build script is a special source file in Rust, and this file is executed during the build process of a project. A build script performs several tasks, including the following:
* Generating code
* Setting environment variables
* Compiling external dependencies
* Configuring build options