Skip to content

Multimodal extraction runtime for the platform. Processes images, PDFs, and scanned documents to enable automated detection and removal of sensitive information.

License

Notifications You must be signed in to change notification settings

nvisycom/runtime

Repository files navigation

Nvisy Runtime for Rust

build crates.io docs.rs rust version

High-performance runtime library for data redaction and sensitive information processing.

Features

  • Modern Rust 2024 edition with strict type safety
  • High-performance async runtime powered by Tokio
  • Flexible pattern matching and data detection
  • Built-in archive and compression support
  • Comprehensive error handling with structured diagnostics
  • Modular architecture with optimized crate separation

Installation

Add the core library to your Cargo.toml:

[dependencies]
nvisy-core = "0.1"

Or install additional crates as needed:

[dependencies]
nvisy-core = "0.1"
nvisy-engine = "0.1"
nvisy-archive = "0.1"

Quick Start

Using the Core Library

use nvisy_core::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Initialize the runtime
    let runtime = Runtime::new().await?;
    
    // Process sensitive data
    let result = runtime.process("example data").await?;
    
    Ok(())
}

Architecture

The runtime is organized into specialized crates:

  • nvisy-core - Core types, traits, and runtime primitives
  • nvisy-engine - Processing engine and orchestration
  • nvisy-archive - Archive handling and compression

Requirements

  • Rust 1.89 or higher
  • Cargo with workspace support

Development

Building

# Build all crates
cargo build

# Build with release optimizations
cargo build --release

# Build specific crate
cargo build -p nvisy-core

Testing

# Run all tests
cargo test

# Run tests for specific crate
cargo test -p nvisy-core

# Run with coverage
cargo test --all-features

Linting and Formatting

# Check formatting
cargo fmt --check

# Format code
cargo fmt

# Run clippy
cargo clippy --all-targets --all-features

Performance

The runtime is designed for high-throughput scenarios:

  • Async I/O with Tokio for concurrent request handling
  • Memory-mapped file processing for large datasets
  • Parallel pattern matching with Rayon
  • Zero-copy operations where possible

Changelog

See CHANGELOG.md for release notes and version history.

Contributing

See CONTRIBUTING.md for development guidelines.

License

MIT License - see LICENSE.txt for details.

Support

About

Multimodal extraction runtime for the platform. Processes images, PDFs, and scanned documents to enable automated detection and removal of sensitive information.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Languages