use derive_more::{AsMut, AsRef, From, FromStr, Into};
#[cfg(feature = "json")]
use serde::{Deserialize, Serialize};
pub const CURRENT_VERSION: &str = env!("CARGO_PKG_VERSION");
#[derive(Debug, Clone, PartialEq, Eq, AsMut, AsRef, From, FromStr, Into)]
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
pub struct BinaryVersion(String);
impl BinaryVersion {
pub fn current() -> Self {
CURRENT_VERSION.to_string().into()
}
}