name: Setup rust

description: Setup rust for optimizer

runs:
  using: "composite"
  steps:
    - name: Rust install
      uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
      with:
        toolchain: stable
        default: true
        override: true

    - name: Download cargo cache
      uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
