LukeMathWalker / cargo-chef

A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.
Apache License 2.0
1.81k stars 117 forks source link

Add Cargo workspace builder to skeleton tests #201

Closed Kobzol closed 1 year ago

Kobzol commented 1 year ago

Description of changes: This PR adds a simple builder struct to define Cargo workspace directories in a more declarative way. I found a few bugs in the tests, but didn't fix them in this PR to keep original functionality (after this refactor, I'll send another PR with cargo metadata, which will fix the tests).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.