mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
19 lines
541 B
Rust
19 lines
541 B
Rust
pub mod cache;
|
|
pub mod collaboration_mode_presets;
|
|
pub mod manager;
|
|
pub mod model_info;
|
|
pub mod model_presets;
|
|
|
|
#[cfg(any(test, feature = "test-support"))]
|
|
pub use collaboration_mode_presets::test_builtin_collaboration_mode_presets;
|
|
|
|
/// Convert the client version string to a whole version string (e.g. "1.2.3-alpha.4" -> "1.2.3").
|
|
pub fn client_version_to_whole() -> String {
|
|
format!(
|
|
"{}.{}.{}",
|
|
env!("CARGO_PKG_VERSION_MAJOR"),
|
|
env!("CARGO_PKG_VERSION_MINOR"),
|
|
env!("CARGO_PKG_VERSION_PATCH")
|
|
)
|
|
}
|