-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
support for env cfg dependencies #13150
Comments
Instead of proposing a solution, could you elaborate more on the workflow issue you encountered? Why optional dependencies don't work well for your case? |
The use case is : This isn't really possible to do with optional dependencies or it would be really counterintuitive. And will probably require that crate FYI, this feature would be useful for a possible feature in |
Why the use case needs this solution and how this relates to |
This is the comment that talk about a solution that would require this feature burtonageo/cargo-bundle#12 (comment) This will enable application to have a compagnion crate that load ressource depending on ENV set by cargo bundle. But imaging one type of package need a dep to load the ressource (that actually the case for mac-os: https://github.com/burtonageo/cargo-bundle/pull/93/files)? If we want to do it rn, the client app would need to mess with a lot of features, just to import the right feature of cargo-bundle-compagnion crate. Of course, I am aware that this is a niche case, but I don't see too much of a disadvantage in adding this feature, other than adding complexity to cargo |
So the use case is switching between on-disk and bundled resource files.\ This is common in GUIs, games, etc. This is a fairly wide problem with a lot of people affected. I feel like this should be examined holistically, to see what each of the different ecosystems is doing and comparing their trade offs. Example alternative solutions
|
Problem
I would like to define dependencies based on environment variables
Proposed Solution
Notes
No response
The text was updated successfully, but these errors were encountered: