
* chore: update crate version to v0.9.0 * chore: remove deprecated re-exports * chore: remove Box re-export * feat: implement pure-Rust keygen and signing for RpoFalcon512 (#285) * feat: add reproducible builds (#296) * fix: address a few issues for migrating Miden VM (#298) * feat: add RngCore supertrait for FeltRng (#299) --------- Co-authored-by: Al-Kindi-0 <82364884+Al-Kindi-0@users.noreply.github.com> Co-authored-by: Paul-Henry Kajfasz <42912740+phklive@users.noreply.github.com>
19 lines
552 B
Rust
19 lines
552 B
Rust
fn main() {
|
|
#[cfg(target_feature = "sve")]
|
|
compile_arch_arm64_sve();
|
|
}
|
|
|
|
#[cfg(target_feature = "sve")]
|
|
fn compile_arch_arm64_sve() {
|
|
const RPO_SVE_PATH: &str = "arch/arm64-sve/rpo";
|
|
|
|
println!("cargo:rerun-if-changed={RPO_SVE_PATH}/library.c");
|
|
println!("cargo:rerun-if-changed={RPO_SVE_PATH}/library.h");
|
|
println!("cargo:rerun-if-changed={RPO_SVE_PATH}/rpo_hash.h");
|
|
|
|
cc::Build::new()
|
|
.file(format!("{RPO_SVE_PATH}/library.c"))
|
|
.flag("-march=armv8-a+sve")
|
|
.flag("-O3")
|
|
.compile("rpo_sve");
|
|
}
|