From c758d0aecb546b6cb0e56baa22eaeacabb673ed0 Mon Sep 17 00:00:00 2001 From: Able Date: Mon, 5 Dec 2022 00:29:21 -0600 Subject: [PATCH] Versioning update --- libraries/versioning/Cargo.toml | 2 +- libraries/versioning/src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/versioning/Cargo.toml b/libraries/versioning/Cargo.toml index 109caab..1fdef31 100644 --- a/libraries/versioning/Cargo.toml +++ b/libraries/versioning/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "versioning" -version = "0.1.2" +version = "0.1.3" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/libraries/versioning/src/lib.rs b/libraries/versioning/src/lib.rs index cc97292..eedc2ff 100644 --- a/libraries/versioning/src/lib.rs +++ b/libraries/versioning/src/lib.rs @@ -3,6 +3,8 @@ use core::{fmt::Display, prelude::rust_2021::derive}; use serde::{Deserialize, Serialize}; +pub const VERSION: Version = Version::new(0, 1, 3); + #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] pub struct Version { pub major: u8, @@ -11,7 +13,7 @@ pub struct Version { } impl Version { - pub fn new(major: u8, minor: u8, patch: u8) -> Self { + pub const fn new(major: u8, minor: u8, patch: u8) -> Self { Self { major, minor,