Skip to content

Downloading source #11

Open
Open
@ehuss

Description

@ehuss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-designStatus: needs design workimplementationImplementation exploration and tracking issuesstabilization blockerThis needs a resolution before stabilization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions