A Rust library for comparing semantic versioning strings and checking version compatibility.
- Version Comparison: Compare two semantic versioning strings to determine their order (greater, less, equal).
- Version Range Matching: Check if a specific version matches a specified range using
^and~notation. - Pre-release Support: Handle pre-release versions with proper comparison logic.
- Error Handling: Comprehensive error types to handle version parsing and range issues gracefully.
To use this crate, you can run cmd:
cargo add compare_versionThis project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any inquiries, please reach out to the author at root@ltpp.vip.