1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # vx-version
//!
//! Version management and parsing utilities for the vx universal tool manager.
//!
//! This crate provides comprehensive version management capabilities including:
//! - Semantic version parsing and comparison
//! - Version fetching from various sources (GitHub, npm, PyPI, etc.)
//! - Version constraint resolution
//! - Tool-specific version parsing
//!
//! ## Features
//!
//! - **Version Parsing**: Parse and compare semantic versions
//! - **Version Fetching**: Fetch available versions from external sources
//! - **Version Constraints**: Support for version ranges and constraints
//! - **Tool Integration**: Specialized parsers for different tools
//! - **Async Support**: Async-first design for network operations
//!
//! ## Example
//!
//! ```rust
//! use vx_version::{VersionInfo, VersionFetcher, GitHubVersionFetcher};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! // Create a version fetcher for a GitHub repository
//! let fetcher = GitHubVersionFetcher::new("astral-sh", "uv");
//!
//! // Fetch available versions
//! let versions = fetcher.fetch_versions(false).await?;
//!
//! // Get the latest version
//! if let Some(latest) = versions.first() {
//! println!("Latest version: {}", latest.version);
//! }
//!
//! Ok(())
//! }
//! ```
// Re-export main types for convenience
pub use ;
pub use ;
pub use VersionManager;
pub use ;
pub use VersionUtils;
// Re-export VersionInfo from vx-plugin to avoid duplication
pub use VersionInfo;
/// Version of this crate
pub const VERSION: &str = env!;