/drift-rs

rust sdk to interact with drift v2

Primary LanguageRustApache License 2.0Apache-2.0

drift-rs

Crates.io Docs Discord Chat License

drift-rs

Experimental, high performance Rust SDK for building off chain clients for interacting with the Drift V2 protocol.

Setup

Mac (m-series)

Install rosetta and configure build for x86

softwareupdate --install-rosetta
rustup install 1.76.0-x86_64-apple-darwin
rustup override set 1.76.0-x86_64-apple-darwin

the native build is incompatible due to memory layout differences between solana program (BPF) and aarch64 and will fail at runtime with errors like InvalidSize.