mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 06:01:11 +00:00
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.
18 lines
562 B
Rust
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");
|
|
}
|
|
}
|