dhuseby / cargo-bootstrap

Bootstrapping script for Rust Cargo when cross-compilation is difficult or impossible.
BSD 2-Clause "Simplified" License
37 stars 9 forks source link

Recursively resolve feature dependencies #6

Closed stevenjm closed 9 years ago

stevenjm commented 9 years ago

This is needed to build the num crate, as a dependency of serde. The problem is that one of the default features itself has feature dependencies, like so:

bigint = ["rustc-serialize", "rand"] default = ["complex", "rational", "bigint"]

Previously, this would have enabled "complex", "rational" and "bigint", but not "rustc-serialize" or "rand", resulting in a build failure. With this patch, resolution is performed recursively, and this build succeeds.

dhuseby commented 9 years ago

Thanks!