-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Specifying features of dependencies on the command line #13199
Comments
Thanks for the report! Features of packages in a workspace can be specified with the When building a standalone package (like I would recommend configuring your dependencies (like |
Thanks for the clarification... ... however, docs.rs is building from the workspace, right? In particular, the feature resolution should never be a problem in any other circumstance I can foresee since it is never intended that |
I do not think so. I believe it just downloads and extracts the |
Thanks @ehuss; that concludes this issue. |
From #3058 it sounds like one is not supposed to be able to specify features of dependencies on the command-line, though it's not clear since the example involves transitive features (two slashes).
Attempt to replicate that fails, as expected:
However, using a single slash is currently functional:
Should this be supported?
Aside: in this particular case, this approach feels justifiable since
kas-widgets
is only ever intended to be used in addition tokas-core
(here renamedkas
), thus it makes no sense to re-export its features underkas-widgets
.This came up on docs.rs: it would appear that their build process does not support correct dependency retrieval for features enabled in this way.
The text was updated successfully, but these errors were encountered: