https://github.com/mesa-dot-dev/sdk-rust
Mesa's Rust SDK
https://github.com/mesa-dot-dev/sdk-rust
Last synced: 4 months ago
JSON representation
Mesa's Rust SDK
- Host: GitHub
- URL: https://github.com/mesa-dot-dev/sdk-rust
- Owner: mesa-dot-dev
- Created: 2026-01-30T21:01:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-02-17T23:48:14.000Z (4 months ago)
- Last Synced: 2026-02-18T04:25:37.959Z (4 months ago)
- Language: Rust
- Size: 2.81 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
## Install
```sh
cargo add mesa-dev
```
## Quick Start
```rust
use mesa_dev::apis::configuration::Configuration;
use mesa_dev::apis::repos_api;
let config = Configuration {
bearer_access_token: Some("your-token".to_string()),
..Configuration::default()
};
let repos = repos_api::get_by_org_repos(&config, "my-org", None, None).await?;
```
## Documentation
Full API reference is available on [docs.rs](https://docs.rs/mesa-dev/latest/mesa_dev/).
## Authentication
The SDK supports three authentication methods via the `Configuration` struct:
**Bearer token** (most common):
```rust
let config = Configuration {
bearer_access_token: Some("your-token".to_string()),
..Configuration::default()
};
```
**Basic auth**:
```rust
let config = Configuration {
basic_auth: Some(("username".to_string(), Some("password".to_string()))),
..Configuration::default()
};
```
**API key**:
```rust
use mesa_dev::apis::configuration::{ApiKey, Configuration};
let config = Configuration {
api_key: Some(ApiKey {
prefix: Some("Bearer".to_string()),
key: "your-api-key".to_string(),
}),
..Configuration::default()
};
```
## License
[MIT](LICENSE)