mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-17 16:12:39 +02:00
This fixes #2708 by creating a CARGO_WORKSPACE_DIR env variable to act as an anchor path, allowing the installation of mdbook-exerciser and mdbook-course to succeed from any directory within the repository. Based on the approach mentioned here: https://github.com/rust-lang/cargo/issues/3946#issuecomment-973132993 --------- Co-authored-by: Eric Githinji <egithinji@google.com>
xtask
The purpose of the xtask binary is to enable cross platform task automation
within the project (somewhat similar to how npm run
is used in Node.js
projects to run scripts). Please see
cargo xtask for more information.
To add support for a new task, add a new arm to the match
in the
execute_task
function, and add a new handler function that contains the logic.