extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
195 stars 28 forks source link

Allow controlling Rust toolchain via TOOLCHAIN env variable #208

Closed Ilia-Kosenkov closed 2 years ago

Ilia-Kosenkov commented 2 years ago

This trivial modification of the Makevars.ucrt template allows propagating TOOLCHAIN environment variable to the package build step. While on platforms other than Windows default Rust toolchain controls how the package is built, the toolchain was hardcoded for Windows in the makevars files.

One of the usecases is an easy switch to nightly version of the toolchain, see e.g. https://github.com/extendr/helloextendr/pull/15.