crate-cli 10.7.0

A command-line tool for managing Cargo package lifecycles: version bump, workspace dependency sync, members-ordered publish and code formatting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Parsed version components following semantic versioning
#[derive(Clone, Debug, Eq, Getter, New, PartialEq)]
pub struct Version {
    /// Major version number
    #[get(type(copy))]
    pub(crate) major: u64,
    /// Minor version number
    #[get(type(copy))]
    pub(crate) minor: u64,
    /// Patch version number
    #[get(type(copy))]
    pub(crate) patch: u64,
    /// Optional pre-release identifier (e.g. alpha, beta, rc.1)
    pub(crate) prerelease: Option<String>,
}