Skip to main content

umya_spreadsheet/
version.rs

1/// The version of the crate, as specified in the Cargo.toml file.
2///
3/// # Examples
4///
5/// ```ignore
6/// assert_eq!(umya_spreadsheet::VERSION, "3.0.0");
7/// ```
8pub const VERSION: &str = env!("CARGO_PKG_VERSION");
9
10/// The major version of the crate, as specified in the Cargo.toml file.
11///
12/// # Examples
13///
14/// ```ignore
15/// assert_eq!(umya_spreadsheet::VERSION_MAJOR, "3");
16/// ```
17pub const VERSION_MAJOR: &str = env!("CARGO_PKG_VERSION_MAJOR");
18
19/// The minor version of the crate, as specified in the Cargo.toml file.
20///
21/// # Examples
22///
23/// ```ignore
24/// assert_eq!(umya_spreadsheet::VERSION_MINOR, "0");
25/// ```
26pub const VERSION_MINOR: &str = env!("CARGO_PKG_VERSION_MINOR");
27
28/// The patch version of the crate, as specified in the Cargo.toml file.
29///
30/// # Examples
31///
32/// ```ignore
33/// assert_eq!(umya_spreadsheet::VERSION_PATCH, "0");
34/// ```
35pub const VERSION_PATCH: &str = env!("CARGO_PKG_VERSION_PATCH");
36
37/// The pre-release flag of the crate, if any, as specified in the Cargo.toml
38/// file.
39///
40/// # Examples
41///
42/// ```ignore
43/// assert_eq!(umya_spreadsheet::VERSION_PRE, "alpha1");
44/// ```
45pub const VERSION_PRE: &str = env!("CARGO_PKG_VERSION_PRE");