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

Fixes for recent crates #12

Closed lucab closed 8 years ago

lucab commented 8 years ago

This PR contains a cosmetic fixes plus two changes to let bootstrap.py run on recent crates.

The first one relaxes the semver parser a bit, by trimming withespaces after the operator and before the major digit (some crates are doing this now).

The second one avoids discarding the "optional" flag on dependencies, allowing to download/build fewer stuff and faster.

Both tested with a recent cargo 0.6.0 tarball and current crates.io registry index in an unconventional setup (offline/two-stages bootstrapping of a debian package).

dhuseby commented 8 years ago

this looks great! thanks