Versioning update

pull/1/head
Able 2022-12-05 00:29:21 -06:00
parent c05002cf6c
commit 41201a2593
Signed by: able
GPG Key ID: 0BD8B45C30DCA887
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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,