Skip to content

Commit a071fe4

Browse files
committed
alt: Build X as if its a dependency of Y
1 parent 969cb03 commit a071fe4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

text/3692-feature-unification.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ Supporting excludes adds environment/project configuration complexity as well as
114114

115115
This field will not apply to `cargo install` to match the behavior of `resolver.incompatible-rust-versions`.
116116

117+
The `workspace` setting breaks down if there are more than one "application" in
118+
a workspace, particularly if there are shared dependencies with intentionally
119+
disjoint feature sets.
120+
What this use case is really modeling is being able to tell Cargo "build package X as if its a dependency of package Y".
121+
There are many similar use cases to this (e.g. [cargo#2644](https://github.com/rust-lang/cargo/issues/2644), [cargo#14434](https://github.com/rust-lang/cargo/issues/14434)).
122+
While a solution that targeted this higher-level need would cover more uses cases,
123+
there is a lot more work to do within the design space and it could end up being more unwieldy.
124+
The solution offered in this RFC is simple in that it is just a re-framing of what already happens on the command line.
125+
117126
# Prior art
118127
[prior-art]: #prior-art
119128

0 commit comments

Comments
 (0)