You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have (on a private repository) a binary application (src/main.rs) with an additional binary used for deployment stuff. This binary has required_features set.
In this configuration, cargo chef will only download dependencies, but not compile them.
Here is a minimal reproducing example (Dockerfile is copied from cargo-chef README):
That seems to include required-features = ["feature"] and all the other relevant bits in Cargo.toml, so I'm a bit puzzled as to why it's not working as expected when invoking cargo chef cook.
I currently have (on a private repository) a binary application (
src/main.rs
) with an additional binary used for deployment stuff. This binary hasrequired_features
set.In this configuration, cargo chef will only download dependencies, but not compile them.
Here is a minimal reproducing example (Dockerfile is copied from cargo-chef README):
with Cargo.toml
When I build the docker image, I got
However, when I comment the
required_features
, I get:The text was updated successfully, but these errors were encountered: