| Crates.io | gemini-rs |
| lib.rs | gemini-rs |
| version | 2.0.0 |
| created_at | 2024-10-30 20:57:06.119097+00 |
| updated_at | 2025-06-11 04:47:12.484676+00 |
| description | A library to interact with the Google Gemini API |
| homepage | https://github.com/Shuflduf/gemini-rs |
| repository | https://github.com/Shuflduf/gemini-rs |
| max_upload_size | |
| id | 1429190 |
| size | 107,153 |
A library to use Google Gemini's API directly in Rust! Made because the current options weren't very capable and didn't support 100% of the official API.
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!(
"{}",
gemini_rs::chat("gemini-2.0-flash")
.send_message("Explain how AI works")
.await?
);
Ok(())
}