Re:Show HN: A Mathematical Integration rust crate
by n_plus_1_acc on Tuesday November 19, 2024 @04:09PM
(#42188113)
There are many crates with build.rs scripts on crates.io, because they host just the source code with the Cargo.{toml,lock}.
[ Parent
| on HN ]
Re:Show HN: A Mathematical Integration rust crate
by dhosek on Tuesday November 19, 2024 @05:42PM
(#42188859)
I ran into some issues with crates.io and my build.rs when I first released the crate, although it’s long enough ago, that I don’t remember exactly what the issue was. It might also have been that the build.rs script downloaded raw data files from unicode.org
Re:Show HN: A Mathematical Integration rust crate
by Arnavion on Tuesday November 19, 2024 @09:20PM
(#42190262)
crates.io doesn't care what your build.rs does because it doesn't try to compile your code, neither now or ever in the past. There would be no point in it trying to compile your code; there are lots of crates that are bindings to C libraries that crates.io's builders can't be expected to have, crates that target architectures which crates.io can't be expected to have builders for, etc.