1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-17 16:12:39 +02:00
Eric Githinji 291c2b08e3
Make install-tools command work from any directory in the workspace. (#2725)
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>
2025-05-06 09:55:55 +03:00
..
2025-04-07 12:18:49 +02:00

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.