MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / get_version_number

Function get_version_number

common/src/utils.rs:113–119  ·  view source on GitHub ↗
(version: &str)

Source from the content-addressed store, hash-verified

111}
112
113pub fn get_version_number(version: &str) -> i64 {
114 let mut n = 0;
115 for x in version.split(".") {
116 n = n * 10000 + x.parse::<i64>().unwrap_or(0);
117 }
118 n
119}
120
121pub fn get_platform() -> String {
122 #[cfg(all(target_os = "linux", target_arch = "x86_64"))]

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected