replic

Crates.ioreplic
lib.rsreplic
version0.1.3
created_at2024-09-07 13:58:05.068763+00
updated_at2024-09-08 23:18:08.737433+00
descriptionReplicate Rust SDK
homepagehttps://github.com/roushou/mesh
repositoryhttps://github.com/roushou/mesh
max_upload_size
id1367226
size25,732
Roushou (roushou)

documentation

README

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.

Commit count: 45

cargo fmt