ZenGo-X / class

Rust library for building IQC: cryptography based on class groups of imaginary quadratic orders
GNU General Public License v3.0
63 stars 31 forks source link

Update build script #54

Closed survived closed 2 years ago

survived commented 2 years ago

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.