4 releases

0.1.3 Sep 8, 2024
0.1.2 Sep 8, 2024
0.1.1 Sep 7, 2024
0.1.0 Sep 7, 2024

#1514 in Web programming

Download history 148/week @ 2024-09-01 497/week @ 2024-09-08

645 downloads per month
Used in mesh

MIT AND Apache-2.0

26KB
548 lines

Replicate Rust SDK

Crates.io MIT licensed APACHE-2.0 licensed Build Status

This is an unofficial Rust SDK for the Replicate API.

More information about this crate can be found in the crate documentation.

Installation

Add replic as a dependency to your Cargo.toml

$ cargo add replic

Usage

An example to get collections

use replic::{client::Client, config::Config};

#[tokio::main]
async fn main() {
    let config = Config::from_env().unwrap();
    let client = Client::new(config).unwrap();

    let collections = client.collections().await.unwrap();
    println!("{:?}", collections);
}

License

This project is licensed under the MIT license and Apache-2.0 license.

Dependencies

~6–17MB
~246K SLoC