Closed pronebird closed 1 week ago
Maybe when building for production, you must use the stable
channel by default. And only if --nightly
is passed, then use nightly. Or maybe add --default-channel
to use the current implementation of using the default channel.
You can override it using the environment variable RUSTUP_TOOLCHAIN
see https://rust-lang.github.io/rustup/overrides.html
Describe the problem
It occurred to a colleague of mine that
npm run tauri build
uses a default rust compiler. Would it be possible to have an option to add a flag to build with+stable
compiler? Since most devs run nightly, it's a bit cumbersome to switch to stable each time when running a build script, people tend to forget and half of our script that prebuilds other binaries simply runs compilation withcargo +stable
, but we have no control over tauri build.Describe the solution you'd like
Maybe a
--stable
option to enforce compilation with stable rustAlternatives considered
Doing rustup default toolchain switcheroo but it's a bit tricky as it changes it system wide.
Currently using a
--runner
option with a proxy script towardscargo +stable
.On Unix:
On Windows:
Additional context
No response