| Crates.io | tmdb-api |
| lib.rs | tmdb-api |
| version | 1.0.0-alpha.4 |
| created_at | 2022-10-15 10:51:25.322983+00 |
| updated_at | 2025-06-18 18:31:45.576397+00 |
| description | Yet another TMDB client. This one is using async methods. |
| homepage | |
| repository | https://github.com/jdrouet/tmdb-api |
| max_upload_size | |
| id | 688899 |
| size | 1,996,828 |
This is yet another client for TMDB, but it supports async functions.
cargo add tmdb-api
use tmdb_api::client::Client;
use tmdb_api::client::reqwest::Client as ReqwestClient;
#[tokio::main]
async fn main() {
let secret = std::env::var("TMDB_TOKEN_V3").unwrap();
let client = Client::<ReqwestClient>::new(secret);
let res = client.search_tvshows("simpsons", &Default::default()).await.unwrap();
let item = res.results.first().unwrap();
println!("TVShow found: {}", item.inner.name);
}
cargo test
If you want to run some integration tests, just export a TMDB_TOKEN_V3 environment variable and run
cargo test --features integration