parallel_disk_usage/json_data/
binary_version.rs1use derive_more::{AsMut, AsRef, From, FromStr, Into};
2
3#[cfg(feature = "json")]
4use serde::{Deserialize, Serialize};
5
6pub const CURRENT_VERSION: &str = env!("CARGO_PKG_VERSION");
8
9#[derive(Debug, Clone, PartialEq, Eq, AsMut, AsRef, From, FromStr, Into)]
11#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
12pub struct BinaryVersion(String);
13
14impl BinaryVersion {
15 pub fn current() -> Self {
17 CURRENT_VERSION.to_string().into()
18 }
19}