Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying dependencies for individual artifacts #2887

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
Add swift to prior art section and add links
  • Loading branch information
dmarcuse committed Mar 27, 2020
commit 7de23cb5d96d3a90ddd4885346e37e46c100cc8f
5 changes: 3 additions & 2 deletions text/0000-cargo-artifact-specific-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ Specifically for test/bench/example artifacts, the `dev-dependencies` section ma
# Prior art
[prior-art]: #prior-art

- CMake allows, and in fact, recommends, specifying library dependencies that only apply to a specific build artifact through its `target_link_libraries` command
- Gradle allows different build artifacts to use different source sets/dependency configurations
- CMake allows, and in fact, recommends, specifying library dependencies that only apply to a specific build artifact through its `target_link_libraries` command [(Source)](https://cmake.org/cmake/help/latest/command/target_link_libraries.html)
- Swift is implementing functionality to specify dependencies per-target by specifying dependencies in the package manifest and then enabling them for targets as necessary [(Source)](https://github.com/apple/swift-evolution/blob/master/proposals/0226-package-manager-target-based-dep-resolution.md)
- Gradle allows different build artifacts to use different source sets/dependency configurations (this is less directly comparable due to the way Java loads libraries at runtime)

# Unresolved questions
[unresolved-questions]: #unresolved-questions
Expand Down