Files
lez-programs/programs/amm/client/build.rs
T
Ricardo Guilherme Schmidt a7395aadb7 feat(amm): add reusable client APIs
Add validated shared quote orchestration, canonical planners for every guest instruction, and exact RISC Zero serialization. Expose integer-only slippage preparation and lossless JSON/C adapters without runtime deployment identity checks.
2026-08-10 11:22:44 -03:00

18 lines
562 B
Rust

use std::env;
fn main() {
let Ok(target_os) = env::var("CARGO_CFG_TARGET_OS") else {
return;
};
// RISC Zero's host-side serde dependency contains guest syscall shims with exported C names.
// They are implementation details of this cdylib and would otherwise leak beside the three
// supported amm_client_* entry points.
if matches!(
target_os.as_str(),
"android" | "dragonfly" | "freebsd" | "linux" | "netbsd" | "openbsd"
) {
println!("cargo:rustc-cdylib-link-arg=-Wl,--exclude-libs,ALL");
}
}