rextendr icon indicating copy to clipboard operation
rextendr copied to clipboard

How to add build.rs to a package

Open 0x143 opened this issue 1 year ago • 2 comments

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.

0x143 avatar Feb 07 '24 19:02 0x143

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.

Neutron3529 avatar Jun 06 '24 14:06 Neutron3529

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

CGMossa avatar Jun 06 '24 14:06 CGMossa