| Crates.io | rez-next-repository |
| lib.rs | rez-next-repository |
| version | 0.1.0 |
| created_at | 2025-06-23 03:39:11.597939+00 |
| updated_at | 2025-06-23 03:39:11.597939+00 |
| description | Repository scanning and caching for Rez Core |
| homepage | |
| repository | https://github.com/loonghao/rez-next |
| max_upload_size | |
| id | 1722146 |
| size | 199,307 |
High-performance repository management for Rez Next - Fast, reliable package discovery, repository scanning, and package operations.
Add this to your Cargo.toml:
[dependencies]
rez-next-repository = "0.1.0"
use rez_next_repository::{Repository, RepositoryManager};
// Create a repository manager
let mut manager = RepositoryManager::new();
// Add repositories
let repo = Repository::new("/path/to/packages".into());
manager.add_repository(repo);
// Scan for packages
let packages = manager.scan_all_repositories().await?;
println!("Found {} packages", packages.len());
use rez_next_repository::{RepositoryScanner, ScanOptions};
// Create scanner with options
let scanner = RepositoryScanner::new();
let options = ScanOptions::default()
.with_parallel_scanning(true)
.with_caching(true);
// Scan repository
let results = scanner.scan_repository("/path/to/packages", options).await?;
for result in results {
println!("Found package: {} v{}", result.name, result.version);
}
use rez_next_repository::{RepositoryCache, CacheOptions};
// Create cache with options
let cache_options = CacheOptions::default()
.with_ttl(3600) // 1 hour TTL
.with_max_entries(10000);
let cache = RepositoryCache::new(cache_options);
// Cache operations are automatic during scanning
This crate provides comprehensive repository management capabilities:
Optimized for high-performance scenarios:
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
rez-next-common - Common utilities and error handlingrez-next-version - Version management and parsingrez-next-package - Package definitions and operationsPart of the Rez Next project - A high-performance Rust implementation of the Rez package manager.