mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
docs: add missing docs
This commit is contained in:
parent
431c2b634f
commit
a24a440a84
1 changed files with 6 additions and 0 deletions
|
@ -12,17 +12,23 @@ use crate::{
|
|||
source::{pesde::PesdePackageSource, DependencySpecifiers, PackageRef, PackageSources},
|
||||
};
|
||||
|
||||
/// A pesde package reference
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq)]
|
||||
pub struct PesdePackageRef {
|
||||
/// The name of the package
|
||||
pub name: PackageName,
|
||||
/// The version of the package
|
||||
pub version: Version,
|
||||
/// The index of the package
|
||||
#[serde(
|
||||
serialize_with = "crate::util::serialize_gix_url",
|
||||
deserialize_with = "crate::util::deserialize_gix_url"
|
||||
)]
|
||||
pub index_url: gix::Url,
|
||||
/// The dependencies of the package
|
||||
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||
pub dependencies: BTreeMap<String, (DependencySpecifiers, DependencyType)>,
|
||||
/// The target of the package
|
||||
pub target: Target,
|
||||
}
|
||||
impl PackageRef for PesdePackageRef {
|
||||
|
|
Loading…
Reference in a new issue