mod checksum;
mod name;
mod source;
pub use self::{
checksum::Checksum,
name::Name,
source::{GitReference, SourceId, SourceKind},
};
pub use semver::Version;
use crate::dependency::Dependency;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, PartialOrd, Ord, Serialize)]
pub struct Package {
pub name: Name,
pub version: Version,
pub source: Option<SourceId>,
pub checksum: Option<Checksum>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub dependencies: Vec<Dependency>,
pub replace: Option<Dependency>,
}