forked from AbleOS/ableos_userland
Versioning update
This commit is contained in:
parent
26f3d26bc2
commit
c758d0aecb
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue