-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Renamed drift-sdk -> drift-rs Changes: * Remove drift-program & jit-proxy deps use drift-ffi-sys crate & IDL generated structs * Remove subscription Event Any/Box-ing * Remove AccountProvider (have user maps now which will support switching between Ws/Poll/Rpc) * Rework map classes to be more idiomatic * Refactor client methods to fallback to network query * Fetch multiple account with fallback methods on sync, allows better compatibility with more RPC providers/plans * Add AccountMap for generic account subscriptions Other: * Add .rustfmt toml * dlob behind feature flag * release ci config * Update README
- Loading branch information
1 parent
ca0884b
commit 093f0ed
Showing
62 changed files
with
36,872 additions
and
5,504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- "release/*" | ||
|
||
jobs: | ||
crates-io: | ||
name: Publish to crates.io | ||
runs-on: ubicloud | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Cargo login | ||
run: | | ||
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- name: Publish drift-idl-gen | ||
run: | | ||
cd crates/drift-idl-gen | ||
cargo publish --dry-run | ||
- name: Publish drift-rs | ||
run: | | ||
cargo publish --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/target | ||
target | ||
**/*/target | ||
/tests/.env | ||
/vendor | ||
/vendor | ||
**/*/build | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "crates/drift-ffi-sys"] | ||
path = crates/drift-ffi-sys | ||
url = https://github.com/drift-labs/drift-ffi-sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
group_imports = "StdExternalCrate" | ||
imports_granularity = "Crate" | ||
use_field_init_shorthand = true |
Oops, something went wrong.