fix: rename pkgr to extension

better name
This commit is contained in:
Strix 2023-10-14 22:39:51 +02:00
parent 595cc4b651
commit f54c72c8ec
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 9 additions and 9 deletions

View file

@ -2,9 +2,9 @@ use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PKGR {}
pub struct Extension {}
impl Display for PKGR {
impl Display for Extension {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "")
}

View file

@ -6,17 +6,17 @@ pub mod bin;
pub mod build;
pub mod fs;
pub mod package;
pub mod pkgr;
pub mod ext;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct Manifest<P: Clone = Option<pkgr::PKGR>> {
pub struct Manifest<E: Clone = Option<ext::Extension>> {
pub package: package::Package,
pub dependencies: HashMap<String, String>,
pub fs: fs::FS,
pub bin: Option<bin::Bin>,
pub build: Option<build::Build>,
pub pkgr: P,
pub pkgr: E,
}
impl<P: Clone> Manifest<P> {