For example I define 2 features without dependencies:
[features]
default = []
py2 = []
py3 = []
Based on selected feature (--features py3
) I want to enable different features for a dependency (cpython
):
[dependencies.cpython]
default-features = false
# features = ["python27-sys"] I want to select this if py2 is enabled
features = ["python3-sys"]
optional = true
Can I do this? Or simply can I select features for a dependency from command line as well?
It was discussed here. One can do it with
/
.I've seen nothing about it in documentation or official pages.