LukeMathWalker / cargo-chef

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

Use `cargo metadata` to resolve targets #214

Closed Kobzol closed 1 year ago

Kobzol commented 1 year ago

This should help generate the correct entrypoint file paths, instead of guessing them.

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

Kobzol commented 1 year ago

I added a few Ord derives and used BTreeSets to avoid manual sorting.