| Crates.io | komga-sdk |
| lib.rs | komga-sdk |
| version | 1.23.4 |
| created_at | 2025-10-01 18:08:06.814086+00 |
| updated_at | 2025-10-01 18:08:06.814086+00 |
| description | Async Rust SDK for the Komga REST API, generated from OpenAPI spec. Supports all endpoints, file upload, and strong typing. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1863149 |
| size | 1,408,690 |
A modern, async Rust client for the Komga REST API, generated and maintained with best practices for real-world use.
Add to your Cargo.toml:
[dependencies]
komga-sdk = "1.23.4"
# or, for local development:
# komga-sdk = { path = "./komga-sdk" }
native-tls (default): Use system TLSrustls-tls: Use Rustls for TLSuse komga_sdk::apis::configuration::Configuration;
let mut config = Configuration::new();
config.api_key = Some(komga_sdk::apis::configuration::ApiKey {
key: "YOUR_API_KEY".to_string(),
prefix: None,
});
// or for basic auth:
config.basic_auth = Some(("user".to_string(), Some("pass".to_string())));
use komga_sdk::apis::current_user_api::get_current_user;
let user = get_current_user(&config).await?;
println!("Current user: {user:?}");
use komga_sdk::apis::book_poster_api::add_user_uploaded_book_thumbnail;
let result = add_user_uploaded_book_thumbnail(
&config,
"book_id",
std::path::PathBuf::from("/path/to/cover.jpg"),
Some(true)
).await?;
println!("Uploaded thumbnail: {result:?}");
cargo testPull requests and issues are welcome! Please see CONTRIBUTING.md if available.
MIT
For the full autogenerated API documentation, see API.md.