Skip to content

Un-deprecate rust-toolchain-version or alternative?Β #2019

@DaniPopes

Description

@DaniPopes

By default dist will use the GHA runner's default cargo version, which may be a version or two behind the latest stable. Using rust-toolchain-version will add a step that installs and forces the provided rust toolchain version. However it is deprecated, asking users to use the rust-toolchain.toml file.

My problem is that I develop locally using the nightly toolchain, and would like to release binaries using stable. I don't want developers to be forced to use a stable rust-toolchain if they use nightly locally like I do, because it usually just breaks any command if for example ~/.cargo/config.toml contains nightly-only configs.

Ideally I can keep using rust-toolchain-version, or alternatively I'd inject a single step like rustup update stable && rustup default stable (if this is not already possible). What do you think? Thanks!

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