-
|
Describe the bug I want to layer dependencies onto each other for individual packages instead of using solutions like hakari to unify features across crates. Reproduction Try passing existing artifacts to buildDepsOnly. They are not used due to Line 62 in 0cea393 I propose making |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Without something like hakari cargo is just going to start rebuilding lots of deps, AFAIK, at least ones that are not identically configured in previous and current configuration. I don't think it is going to work like how you'd like. Passing |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Lyndeno ! It is intentional (by design) that You may want to use something like |
Beta Was this translation helpful? Give feedback.
Hi @Lyndeno ! It is intentional (by design) that
buildDepsOnlydoes not acceptcargoArtifacts: it is meant to be the starting point for creating the initial set of artifacts. Afterwards you are free to layer/chain other derivations however you'd like (and all other functions do accept overriding thecargoArtifacts).You may want to use something like
cargoBuild/mkCargoDerivationalong withmkDummySrcto customize yourcargoArtifactsfurther before calling something likebuildPackage. Hope this helps!