actions-rust-lang / setup-rust-toolchain

Setup a specific Rust toolchain with extra features like problem matchers
MIT License
180 stars 32 forks source link

feature request: support `rust-toolchain.toml` files #1

Closed smallstepman closed 2 years ago

smallstepman commented 2 years ago
jonasbb commented 2 years ago

This should do the trick.

if [ -f "rust-toolchain.toml" ]; then
    rustup show
fi

rustup show might not work forever (https://github.com/rust-lang/rustup/issues/1397) but I don't know of a better way.

I don't know what you mean with your last point. A toolchain file should always take priority over the default toolchain (via rustup default).

smallstepman commented 2 years ago

Nice! a.d. last point - I imagined it possible to be able to stay

I do have rust-toolchain.toml, but I don’t want to use it

sorry for that last point being very unclear 😅

in the end, I don’t find it being a crucial feature to have