arcis-diagnostics

Crates.ioarcis-diagnostics
lib.rsarcis-diagnostics
version0.3.0
created_at2025-04-30 19:04:53.985007+00
updated_at2025-09-02 14:23:26.299878+00
descriptionDebugging and performance diagnostics toolkit for the Arcis framework.
homepagehttps://www.arcium.com
repository
max_upload_size
id1655345
size7,117
Daniel (danielementary)

documentation

README

arcis-diagnostics

Crates.io

Debugging and performance diagnostics toolkit for the Arcis framework. This crate provides logging and diagnostic utilities to help developers debug and optimize their MPC circuits, offering structured logging with different severity levels and contextual information.

Usage

use arcis_diagnostics::{log_info, log_warn, log_error, Diagnostic, LogLevel};

// Use logging macros for different severity levels
log_info!("Circuit initialized with {} parties", party_count);
log_warn!("Performance may be degraded with large input sizes");
log_error!("Failed to validate circuit: {}", error_msg);

// Create diagnostics programmatically
let diagnostic = Diagnostic {
    level: LogLevel::Error,
    message: "Circuit validation failed".to_string(),
    context: Some("validation phase".to_string()),
};

Main Exports

Types

  • LogLevel - Enumeration of log severity levels (Info, Warn, Error)
  • Diagnostic - Structured diagnostic message with level, message, and optional context

Macros

  • log_info! - Log informational messages
  • log_warn! - Log warning messages
  • log_error! - Log error messages
Commit count: 0

cargo fmt