| Crates.io | usf |
| lib.rs | usf |
| version | 0.1.0 |
| created_at | 2024-11-12 23:04:17.709105+00 |
| updated_at | 2024-11-12 23:04:17.709105+00 |
| description | Universal Storage Format (USF) - A next-generation, high-performance storage format |
| homepage | |
| repository | https://github.com/The-Swarm-Corporation/USF |
| max_upload_size | |
| id | 1445694 |
| size | 73,867 |
USF (Universal Storage Format) is a next-generation, high-performance storage format designed for enterprise-grade data management. It provides adaptive compression, intelligent data organization, and robust error handling in a single, unified format.
🚀 High Performance
🔒 Enterprise-Grade Security
📦 Intelligent Compression
🎯 Universal Compatibility
Add USF to your Cargo.toml:
[dependencies]
usf = "1.0.0"
use usf::UniversalStorage;
use usf::DataType;
// Create new storage
let mut storage = UniversalStorage::create("data.usf")?;
// Store different types of data
storage.store("text", "Hello world".as_bytes(), DataType::Text)?;
storage.store("image", image_bytes, DataType::Image)?;
storage.store("json", json_bytes, DataType::Json)?;
// Retrieve data
let data = storage.retrieve("text")?;
| Operation | Size | USF | ZIP | TAR |
|---|---|---|---|---|
| Write | 1GB | 0.8s | 2.1s | 1.9s |
| Read | 1GB | 0.3s | 1.2s | 0.9s |
| Compress | 1GB | 65% | 70% | 71% |
Benchmarks performed on AMD Ryzen 9 5950X, 64GB RAM, NVMe SSD
// Efficiently handle large files with automatic blocking
let large_file = vec![0u8; 1_000_000];
storage.store("large.dat", &large_file, DataType::Binary)?;
// Automatic delta encoding for sequential data
let numbers = vec![1, 2, 3, 4, 5];
storage.store("nums.dat", &bincode::serialize(&numbers)?, DataType::Structured)?;
// Automatic WebP conversion and optimization
storage.store("image.png", png_bytes, DataType::Image)?;
We welcome contributions! Please see our Contributing Guide for details.
# Clone the repository
git clone https://github.com/The-Swarm-Corporation/USF.git
cd USF
# Install development dependencies
cargo install --path .
# Run tests
cargo test
# Run benchmarks
cargo bench
Enterprise support, custom development, and consulting services are available through Swarms.ai.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Made with ❤️ by Swarms.ai