clechasseur / rs-cargo

📦 GitHub Action for Rust `cargo` command
MIT License
5 stars 1 forks source link

Accept rust-toolchain.toml in workspace root #117

Open CeciliaZ030 opened 2 months ago

CeciliaZ030 commented 2 months ago

Feature request: automatically config toolchain based on rust-toolchain.toml in workspace root actions-rs has gone deprecated, please make this compatible with the new .toml format of toolchain specification. Propose usage:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Rust toolchain
        uses: clechasseur/rs-cargo@v2
        with:
          profile: minimal
          toolchain-file: rust-toolchain.toml
          override: true
clechasseur commented 2 weeks ago

@CeciliaZ030 Since this action runs cargo from the specified working directory, if that directory contains a rust-toolchain.toml or rust-toolchain file, I assume it'll be used. Do you mean add something to override the rust-toolchain.toml file itself? Is there a way to do that when invoking cargo? I don't see any way of doing that in the documentation.

(Sorry for the late reply, I haven't been feeling well these past few months)