extendr / rextendr

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

Specify extendr-api version in `Cargo.toml` #348

Open JosiahParry opened 6 months ago

JosiahParry commented 6 months ago

At present, when a new extendr project is created using rextendr::use_extendr(), the Cargo.toml file does not specify the version of extendr-api

[dependencies]
extendr-api = '*'

I think it would be very nice to specify the version of extendr to be the latest e.g. 0.6.0 as a default argument in use_extendr().

For example:

use_extendr <- function(
    path = ".",
    crate_name = NULL,
    lib_name = NULL,
    quiet = FALSE,
    overwrite = NULL,
    edition = c("2021", "2018"),
    version = "0.6.0"
)