Versioning update

This commit is contained in:
Able 2022-12-05 00:29:21 -06:00
parent 26f3d26bc2
commit c758d0aecb
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,