fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.26k stars 43 forks source link

Always specify cargo toolchain #32

Closed fornwall closed 1 year ago

fornwall commented 3 years ago

By always specifying a cargo toolchain (the +${TOOLCHAIN} option) we avoid being affected by rust-toolchain(.toml) files.

Fixes #31 (however, see that linked issue for comments about this change, and how it will break if cargo is not a rustup proxy command or a stable toolchain is not installed).

fornwall commented 1 year ago

As this breaks when cargo is not a rustup proxy, let's close this in favour of https://github.com/fornwall/rust-script/pull/73, which avoids rust toolchain files by building with CWD set to the generated project directory, as suggested here.