Skip to content

Add support for cargo --config arguments#34

Open
erickt wants to merge 1 commit into
RalfJung:masterfrom
erickt:master
Open

Add support for cargo --config arguments#34
erickt wants to merge 1 commit into
RalfJung:masterfrom
erickt:master

Conversation

@erickt

@erickt erickt commented May 19, 2026

Copy link
Copy Markdown

This allows users to pass down custom config options to cargo. This could be used to do things like pointing cargo at a vendored directory tree for building a sysroot when isolated from the network.

This allows users to pass down custom config options to cargo. This
could be used to do things like pointing cargo at a vendored directory
tree for building a sysroot when isolated from the network.
erickt added a commit to erickt/miri that referenced this pull request May 20, 2026
This allows us to do things like point cargo at a vendored directory to
support offline builds of the sysroot.

Note: this is blocked on
RalfJung/rustc-build-sysroot#34 being landed and
released in a build.
@RalfJung

Copy link
Copy Markdown
Owner

As mentioned in rust-lang/miri#5051, I don't think this is the right approach. Instead we should use rust-lang/rust#156196 and check whether a .cargo/config.toml exists, and if yes tell cargo to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants