# rez-next-common
[](https://crates.io/crates/rez-next-common)
[](https://docs.rs/rez-next-common)
[](LICENSE)
[](https://github.com/loonghao/rez-next/actions)
[δΈζζζ‘£](README_zh.md) | [English](README.md)
**Common utilities and types for Rez Next** - The foundational building blocks for high-performance package management.
## π Features
- **Error Handling**: Comprehensive error types with detailed context
- **Configuration Management**: Flexible configuration system with validation
- **Utilities**: Common helper functions and macros
- **Type Safety**: Strong typing with serde serialization support
- **Performance**: Zero-cost abstractions and optimized data structures
## π¦ Installation
Add this to your `Cargo.toml`:
```toml
[dependencies]
rez-next-common = "0.1.0"
```
## π§ Usage
### Error Handling
```rust
use rez_next_common::{RezCoreError, RezCoreResult};
fn example_function() -> RezCoreResult<String> {
// Your code here
Ok("Success".to_string())
}
// Handle errors gracefully
match example_function() {
Ok(result) => println!("Success: {}", result),
Err(e) => eprintln!("Error: {}", e),
}
```
### Configuration
```rust
use rez_next_common::Config;
let config = Config::default();
println!("Config loaded: {:?}", config);
```
## ποΈ Architecture
This crate provides the foundational types and utilities used across the entire Rez Next ecosystem:
- **Error Types**: Standardized error handling across all crates
- **Configuration**: Centralized configuration management
- **Utilities**: Common helper functions and type definitions
## π€ Contributing
We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md) for details.
## π License
This project is licensed under the Apache License 2.0 - see the [LICENSE](../../LICENSE) file for details.
## π Related Crates
- [`rez-next-version`](../rez-next-version) - Version management and parsing
- [`rez-next-package`](../rez-next-package) - Package definitions and operations
- [`rez-next-repository`](../rez-next-repository) - Repository management and scanning
## π Performance
Built with performance in mind:
- Zero-cost abstractions
- Minimal memory allocations
- Optimized for high-throughput operations
---
Part of the [Rez Next](https://github.com/loonghao/rez-next) project - A high-performance Rust implementation of the Rez package manager.