33 lines
1.4 KiB
TOML

[package]
name = "amm_client_ffi"
version = "0.1.0"
# 2021 (not the repo's 2024): matches amm_core and keeps plain #[no_mangle]
# (edition 2024 requires #[unsafe(no_mangle)]).
edition = "2021"
[lib]
name = "amm_client_ffi"
# The logos module builder's macOS find_library only locates SHARED libs
# (lib<name>.dylib), never a static .a — so we must ship the cdylib. The flake
# gives the dylib an ABSOLUTE store-path install-name (not @rpath), so the plugin
# links it by its /nix/store path (kept in the closure) and dlopen resolves it at
# runtime without any rpath staging. staticlib/rlib kept for other consumers/tests.
crate-type = ["staticlib", "cdylib", "rlib"]
[lints]
workspace = true
[dependencies]
amm_core = { path = "../core" }
twap_oracle_core = { path = "../../twap_oracle/core" }
nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" }
borsh = { version = "1.5", features = ["derive"] }
risc0-zkvm = { version = "=3.0.5", default-features = false }
risc0-binfmt = { version = "=3.0.4", default-features = false }
# amm_core's ruint is default-features=false (for the no_std guest); enable std
# here (host-only) so its Uint::root compiles. Guest build is unaffected.
ruint = { version = "=1.17.0", default-features = false, features = ["std"] }
[build-dependencies]
cbindgen = "0.27"