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
//! Package registry and Git shorthand support
//!
//! This module provides:
//! - Git URL shorthand syntax (e.g., `github:user/repo`)
//! - Automatic version discovery from Git tags
//! - Lightweight index repository support
//!
//! # Overview
//!
//! CCGO supports three ways to specify dependencies:
//!
//! 1. **Git shorthand** - Simplified syntax for common hosts
//! ```toml
//! # In CCGO.toml or via ccgo add
//! ccgo add github:fmtlib/fmt
//! ccgo add gh:nlohmann/json@v3.11.0
//! ```
//!
//! 2. **Full Git URL** - Traditional explicit URLs
//! ```toml
//! [[dependencies]]
//! name = "fmt"
//! git = "https://github.com/fmtlib/fmt.git"
//! branch = "v10.1.1"
//! ```
//!
//! 3. **Package index** - Simplified version syntax (via index)
//! ```toml
//! [dependencies]
//! fmt = "^10.1"
//! spdlog = "1.12.0"
//! ```
pub use RegistryCache;
pub use ;
pub use ;
pub use ;
pub use ;