Skip to content

Allow specifying a custom toolchain in rust-toolchain? #2458

@anp

Description

@anp

A project at work uses prebuilt toolchain binaries from internal infrastructure. We currently provide instructions on how to link that location with rustup for use with cargo and other tools. Ideally we'd be able to specify that relationship in version control and have rustup 'just work' when run within our directory tree.

I see that TOML support in the rust-toolchain file was recently merged (super exciting for other reasons too!) and I'm wondering whether it could be used to specify a "local" custom toolchain for a repository. Maybe something like this?

[toolchain]
path = "prebuilts/.../bin"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions