Main intention of PR is to publish this crate. Currently build.rs violates one of crates.io requirements: it modifies files outside of OUT_DIR. Violation happens when we run ./Configure and make install of pari lib: it creates a bunch of makefiles, object files, and so on. The easiest solution I found is to simply copy entire ./depend/pari to OUT_DIR and work with it.
Other changes: I replaced panicking with error propagation, and made paths construction idiomatic.
Main intention of PR is to publish this crate. Currently
build.rs
violates one of crates.io requirements: it modifies files outside ofOUT_DIR
. Violation happens when we run./Configure
andmake install
of pari lib: it creates a bunch of makefiles, object files, and so on. The easiest solution I found is to simply copy entire./depend/pari
toOUT_DIR
and work with it.Other changes: I replaced panicking with error propagation, and made paths construction idiomatic.