fix: rename pkgr to extension
better name
This commit is contained in:
parent
595cc4b651
commit
f54c72c8ec
3 changed files with 9 additions and 9 deletions
|
@ -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, "")
|
||||
}
|
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue