Function tauri::api::version::is_greater

source ·
pub fn is_greater(current: &str, other: &str) -> Result<bool>
Expand description

Check if a version is greater than the current.

Examples

use tauri::api::version::is_greater;
assert!(is_greater("0.15.10", "0.16.0").unwrap());
assert!(is_greater("1.0.0", "1.0.1").unwrap());
assert!(is_greater("1.1.9", "1.2.0").unwrap());
assert!(is_greater("1.0.0", "2.0.0").unwrap());