Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Take cargo features into account through USE flags. #19

Closed
wants to merge 1 commit into from
Closed

Take cargo features into account through USE flags. #19

wants to merge 1 commit into from

Conversation

Bromind
Copy link

@Bromind Bromind commented Nov 6, 2018

Almost fix #12
The main drawback, crate fetching : you still fetch all crates, even those depending on a feature you don't want (said otherwise, the CRATES variable of the ebuild is always the same). That being said, I don't know if we can do anything better, since crate dependencies are hardcoded in the ebuild when using the cargo eclass.

All use flags matching features in the default feature are activated by default (marked +)

@Bromind
Copy link
Author

Bromind commented Aug 5, 2020

Due to the changes in the cargo_metadata, this commit no longer works.

@cardoe, if you are interested, I can try to find a new way to fix #12 with the newer version of cargo_metada, but at first glance, it seems that it will be harder...

@Bromind Bromind closed this Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enumerate crate features as USE flags
1 participant