lib.rs
actix-error-derive
A simple library to handle REST errors, with a derive macro to generate the error type. It also provides a compatibility layer with actix-web.
HttpApiProblem
Related: http-api-problem-derive See also: problem_details, tor-error, api-response, prometheus-http-query, actix-web-thiserror, activitypub_federation, firebase-auth, windows-result, loki-api, fire-http-api, deserr. Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.
eserde
This becomes an issue when relying on serde for deserializing user-provided payloads—e.g. a request body for a REST API. There may be several errors in the submitted payload, but serde_json will only report the first one it encounters before stopping deserialization. The API consumer is then forced into a slow and frustrating feedback loop:
ask_ai
Configuration. Before you can use the crate, you need to configure it through the AiConfig structure. This configuration tells the system: Which Framework provider to use (Framework::OpenAI, Framework::Anthropic, or Framework::Ollama).The specific model you want to query, e.g., "chatgpt-4o-latest" for OpenAI or "claude-2" for Anthropic. (Optional) Maximum tokens for the response output.