#file-synchronization #sdk #company #task #operations #resources #tool

openapi-sync

Rust implementation of a file synchronization tool for company SDK

1 unstable release

Uses new Rust 2024

new 0.1.0 Mar 9, 2025

#9 in #company

Download history 106/week @ 2025-03-05

106 downloads per month

MIT/Apache

19KB

openapi-sync

Crates.io Documentation License

A Rust implementation of a file synchronization tool for company SDK resources.

Features

  • Efficient File Synchronization: Smart detection of changes to minimize file operations
  • Task Management: Flexible API for defining and managing synchronization tasks
  • Customizable Sync Rules: Define which files to sync and how they should be processed
  • Robust Error Handling: Comprehensive error reporting and recovery mechanisms
  • Async Support: Built on tokio for efficient asynchronous file operations
  • Minimal Configuration: Simple setup with sensible defaults

Installation

Add this to your Cargo.toml:

[dependencies]
openapi-sync = "0.1.0"

Quick Start

use openapi_sync::syncer::Syncer;
use openapi_sync::task::Task;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create a new syncer instance
    let syncer = Syncer::new();
    
    // Create and configure a synchronization task
    let task = Task::new();
    
    // Add the task to the syncer
    syncer.add_task(task);
    
    // Start the synchronization process
    syncer.start();
    
    Ok(())
}

Documentation

For more detailed documentation, please visit docs.rs/openapi-sync.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under either of

at your option.

Dependencies

~11–24MB
~341K SLoC