Jupiter API Rust Client
Installation
Add the crate to an application that provides an async runtime, such as Tokio:
Usage
The factory configures the required x-api-key header. Generated methods use
an additive builder: required parameters are passed to the builder constructor,
then optional parameters are set fluently.
use create_jupiter_api;
async
Use create_jupiter_tx_api(api_key) to create the separate transaction
submission client for https://tx.jup.ag.
Development
This crate is part of the repository's root Cargo workspace. Its checked-in
clients are generated by openapi-to-rust from the same composite OpenAPI
specifications as the TypeScript package.
Install the generator once:
Then, from the repository root:
# Refresh canonical inputs and regenerate both Rust clients.
# Format, type-check, or compile the Rust workspace.
Releases
Rust changesets are managed by cargo-changeset and stored under
.changeset/changesets/, separately from npm Changesets. They generate this
crate's CHANGELOG.md and tags in the jupiter-api-rs@v* format.