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
use clau::{Client, Config};

#[tokio::main]
async fn main() -> clau::Result<()> {
    // Initialize the client with default configuration
    let client = Client::new(Config::default());
    
    // Send a simple query
    let response = client
        .query("What is 2 + 2?")
        .send()
        .await?;
    
    println!("Response: {}", response);
    
    Ok(())
}