clau 0.1.1

Rust SDK for Claude Code - type-safe async API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clau::{Client, Config};

#[tokio::main]
async fn main() -> clau::Result<()> {
    let client = Client::new(Config::default());
    
    println!("Sending query...");
    match client.query("Hi").send().await {
        Ok(response) => {
            println!("Got response: {}", response);
        }
        Err(e) => {
            eprintln!("Error: {:?}", e);
        }
    }
    
    Ok(())
}