Skip to content

Allow passing a crate name to cargo fetch #2998

Closed
@Keruspe

Description

@Keruspe

It would be nice to be able to do somehting like cargo fetch foobar to fetch foobar's dependencies.

I'm the rust packager for the Exherbo distribution, which is source based. An install is divided into steps: fetch, unpack, configure, compile, test, install

Only the fetch phase is allowed to use the network.
For now I added a hack disabling the sandbox just for the CARGO_HOME=... cargo fetch command, but it would be great if we could simply move that to the fetch phase, when we don't have unpacked the tarball yet (and thus when we don't have access to Cargo.toml yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions