From dea7b629cb25dcd5469b10f4403f88369dec1665 Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Fri, 4 Oct 2024 12:54:22 +0800 Subject: [PATCH] Update README.md Add info for crates.io users --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 71dd109..0d72838 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,20 @@ Experimental, high performance Rust SDK for building offchain clients for [Drift V2](https://github.com/drift-labs/protocol-v2) protocol. + +## Install +```toml +# crates.io* +drift-rs = { version = "v1.0.0-alpha.1" } + +# build from source (also builds and links 'libdrift_ffi_sys' +drift-rs = { git = "https://github.com/drift-labs/drift-rs", tag = "v1.0.0-alpha.1" } +``` + +_*_`drift-rs` uses drift program over ffi. +ensure [libdrift_ffi_sys](https://github.com/drift-labs/drift-ffi-sys/blob/master/README.md#installation) is installed when using via crates.io. + +## Use ```rust use drift_rs::{DriftClient, Wallet}; use solana_sdk::signature::KeyPair;