13 releases (2 stable)

Uses new Rust 2024

1.1.0 Mar 19, 2025
1.0.0 Feb 28, 2025
0.4.3 Feb 25, 2025
0.4.2 Nov 15, 2024
0.1.0 Oct 30, 2024

#1035 in Network programming

Download history 4/week @ 2024-12-04 7/week @ 2024-12-11 2/week @ 2024-12-18 6/week @ 2025-02-05 9/week @ 2025-02-12 94/week @ 2025-02-19 257/week @ 2025-02-26 22/week @ 2025-03-05 15/week @ 2025-03-12 141/week @ 2025-03-19

516 downloads per month

MIT license

23KB
644 lines

STILL A WIP

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.

Example

#[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(())
}

Dependencies

~6–18MB
~230K SLoC