llm-governance-common

Crates.iollm-governance-common
lib.rsllm-governance-common
version1.0.0
created_at2025-11-17 00:46:08.785722+00
updated_at2025-11-17 00:46:08.785722+00
descriptionCommon utilities, error handling, and response types for LLM Governance Dashboard
homepagehttps://github.com/globalbusinessadvisors/llm-governance-dashboard
repositoryhttps://github.com/globalbusinessadvisors/llm-governance-dashboard
max_upload_size
id1936070
size86,127
GBA (globalbusinessadvisors)

documentation

https://docs.rs/llm-governance-common

README

llm-governance-common

Common utilities, error handling, and response types for LLM Governance Dashboard.

Features

  • Error Handling: Unified error types with proper HTTP status mapping
  • API Responses: Standardized JSON response format
  • Utilities: Common helper functions used across services

Usage

Add this to your Cargo.toml:

[dependencies]
llm-governance-common = "1.0.0"

Example

use llm_governance_common::{AppError, Result, ApiResponse};

fn example() -> Result<String> {
    Ok("Success".to_string())
}

// Using ApiResponse
let response = ApiResponse::success(data);

License

Licensed under Apache 2.0.

Commit count: 0

cargo fmt