Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two environment configuration files are added to be used in the edk2 repository for Rust development but to also serve as a configuration reference for downstream repositories for the settings being used in edk2. A goal in these changes is support a standalone Rust build experience using the command line where that build support can be leveraged within the edk2 build system. A component for achieving this is the "cargo-make task runner" that allows the "cargo make" command to be used to directly build and test individual Rust packages with simple commands. It also allows the details to be captured in a single makefile. These files have no impact on users not building Rust code. - `Makefile.toml` - Defines the tasks and environment settings used to build and test code. For more information: https://github.com/sagiegurari/cargo-make?tab=readme-ov-file#usage - `rustfmt.toml` - Defines Rust formatting options used. Automatically read by the `cargo fmt` command in the workspace. For more information: https://github.com/rust-lang/rustfmt - `rust-toolchain.toml` - Defines the exact Rust toolchain supported in this repository. This ensures developers build with a toolchain that is used by all other developers and CI. For more information: https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file Co-authored-by: Joey Vagedes <[email protected]> Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information