Skip to content

Commit e93c22f

Browse files
committed
Merge remote-tracking branch 'origin/master' into wphan/add-order-triggered
2 parents b114fb4 + 189822e commit e93c22f

File tree

7 files changed

+2478
-62
lines changed

7 files changed

+2478
-62
lines changed

Cargo.lock

Lines changed: 20 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "drift-ffi-sys"
3-
version = "2.117.0"
3+
version = "2.151.2"
44
edition = "2021"
55
description = "FFI bindings to drift program"
66

@@ -9,7 +9,9 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
abi_stable = { version = "0.11", default-features = false }
12-
drift-program = { package = "drift", git = "https://github.com/drift-labs/protocol-v2.git", rev = "37f471", features = [
12+
anchor-lang = "0.29.0"
13+
drift-program = { package = "drift", git = "https://github.com/drift-labs/protocol-v2.git", tag = "v2.151.0", features = [
1314
"mainnet-beta", "drift-rs"
1415
] }
16+
fxhash = "0.2.1"
1517
solana-sdk = { version = "1.16.*" }

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,21 @@ ln -sf ./target/release/libdrift_ffi_sys.so /usr/lib #linux
3030
- for rust users this crate is intended to be linked via compiler flags (not Cargo dependency) as it compiles to a (platform dependent) dynamic lib (`.so/.dylib/.dll`)
3131

3232
- can ignore most of the warnings for FFI safety. The main issue are types containing `u128`/`i128`s which are handled by a custom `compat::u128/i128` type that forces correct alignment where required.
33+
34+
## Bump Program Version
35+
CI job does this automatically but occasionally fails due to breaking changes.
36+
37+
1) checkout / pull master
38+
2) update `tag = "v2.140.0"` to the latest version in `Cargo.toml`
39+
40+
```Cargo.toml
41+
drift-program = { package = "drift", git = "https://github.com/drift-labs/protocol-v2.git", tag = "v2.140.0", features = [
42+
"mainnet-beta", "drift-rs"
43+
] }
44+
```
45+
46+
3) update Cargo.toml to new version: `version = "vX.Y.Z"`
47+
48+
4) `cargo check` and fix any compile issues
49+
50+
5) git commit, `git tag -v vX.Y.Z` and push to release the new version

0 commit comments

Comments
 (0)