Open
Description
This issue is for working through the implementation issues with downloading the standard library source.
Rustup is currently capable of downloading the rust-src
component which contains the source for the standard library crates. It does not include dependencies (like libc
) but it does include Cargo.lock
from which dependencies can be inferred.
There are multiple questions on how Cargo will handle acquiring the standard library source:
- I would prefer if it didn't solely rely on rustup being installed, though what the alternative is I do not know.
- Acquiring dependencies may be tricky. Likely the
Cargo.lock
file will need to be parsed to find the versions, and then download from crates.io. Some possible alternatives:- Include all dependencies in the original source download.
- Record dependency versions in a different format than
Cargo.lock
.