Leafwing-Studios / cargo-cache

Cache your Cargo build files
Apache License 2.0
13 stars 2 forks source link

Allow specifying the manifest path (`Cargo.toml`) #33

Closed BD103 closed 2 months ago

BD103 commented 2 months ago

Closes #30!

This adds the manifest-path input to this action, which defaults to the Cargo.toml in the current working directory. For motivation behind this change, please see the linked issue.

This changed required a small refactor of our Cargo detection logic. Because I used cargo locate-project to find the Cargo.lock, I moved the entire check that Cargo is installed to a separate, earlier step. As part of this change I modified the wording slightly, but it should still behave the same.