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

How to add build.rs to a package #339

Open 0x143 opened 7 months ago

0x143 commented 7 months ago

Hi. I noticed that I have to add build file explicitly to my Cargo.toml file:

[package]
#  ...
build = "build.rs"
# ...

for it to be detected and executed.

It made me wonder if there is any reason to avoid it in the first place.

Neutron3529 commented 3 months ago

It seems build.rs is the default script. It should be executed even without your configure.

Maybe you put build.rs in a wrong place.

CGMossa commented 3 months ago

Sorry for not replying to this, but there is nothing that extendr or {rextendr} does, that affect the build.rs configuration.