Skip to main content

Crate claude_sdk_rs

Crate claude_sdk_rs 

Source
Expand description

Lean async Rust SDK that runs the claude CLI as a subprocess on a flat-rate subscription.

Re-exports§

pub use config::Config;
pub use execute::execute;
pub use isolation::IsolatedConfigDir;
pub use parse::Outcome;

Modules§

config
Subprocess configuration for the claude CLI and its argv builder.
execute
Async entry point that runs the claude CLI as a subprocess and parses its JSON output into an Outcome.
isolation
Isolated CLAUDE_CONFIG_DIR temp directory for concurrent subprocess auth.
parse
Outcome type and parser for the claude CLI’s --output-format json response.

Enums§

Error
Errors that can occur while building, spawning, or parsing output from the claude CLI subprocess.

Type Aliases§

Result
Crate-wide Result alias using Error.