Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lazer/sdk/rust): add rust client for Lazer (#2310)
* feat: add rust consumer sdk for lazer Co-Authored-By: Tejas Badadare <[email protected]> * feat: rename crate to pyth-lazer-sdk and client to LazerClient Co-Authored-By: Tejas Badadare <[email protected]> * fix: update base64 encoding to use Engine::encode Co-Authored-By: Tejas Badadare <[email protected]> * fix: add base64 Engine trait import Co-Authored-By: Tejas Badadare <[email protected]> * feat: add example for pyth-lazer-sdk Co-Authored-By: Tejas Badadare <[email protected]> * fix: fix example * refactor: separate client new() and start() functions, improve unsubscribe example Co-Authored-By: Tejas Badadare <[email protected]> * refactor: use Bearer token authentication in header and improve unsubscribe handling Co-Authored-By: Tejas Badadare <[email protected]> * refactor: make access token required parameter Co-Authored-By: Tejas Badadare <[email protected]> * fix: remove invalid client return from start function Co-Authored-By: Tejas Badadare <[email protected]> * style: improve code formatting and fix example documentation Co-Authored-By: Tejas Badadare <[email protected]> * 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 <[email protected]> Co-authored-by: Tejas Badadare <[email protected]>
- Loading branch information