Commit 4f8631d
feat(lazer/sdk/rust): add rust client for Lazer (#2310)
* feat: add rust consumer sdk for lazer
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* feat: rename crate to pyth-lazer-sdk and client to LazerClient
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* fix: update base64 encoding to use Engine::encode
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* fix: add base64 Engine trait import
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* feat: add example for pyth-lazer-sdk
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* fix: fix example
* refactor: separate client new() and start() functions, improve unsubscribe example
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* refactor: use Bearer token authentication in header and improve unsubscribe handling
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* refactor: make access token required parameter
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* fix: remove invalid client return from start function
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* style: improve code formatting and fix example documentation
Co-Authored-By: Tejas Badadare <tejas@dourolabs.xyz>
* fix: formatting, example
* refactor: rename, remove doctest
* fix: example
* feat: add close()
* refactor: move binary msg parsing to protocol crate, improve examples, source token from env for easier testing
* feat: bump protocol ver
* fix: don't ser/de the binary message, leave that to the client. only b64 encode. add parse and verify to the example.
* fix: explicitly choose JsonBinaryEncoding::Base64 instead of default()
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Tejas Badadare <tejas@dourolabs.xyz>
Co-authored-by: Tejas Badadare <tejasbadadare@gmail.com>1 parent dd39029 commit 4f8631d
File tree
7 files changed
+496
-4
lines changed- lazer
- sdk/rust
- client
- examples
- src
- protocol
- src
7 files changed
+496
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments