1 unstable release
Uses new Rust 2024
new 0.1.0 | Mar 9, 2025 |
---|
#9 in #company
106 downloads per month
19KB
openapi-sync
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~11–24MB
~341K SLoC