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).
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).