diff --git a/manifest/src/pkgr.rs b/manifest/src/ext.rs similarity index 80% rename from manifest/src/pkgr.rs rename to manifest/src/ext.rs index 530a37c..b47a60c 100644 --- a/manifest/src/pkgr.rs +++ b/manifest/src/ext.rs @@ -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, "") } diff --git a/manifest/src/lib.rs b/manifest/src/lib.rs index 0d52840..af685e7 100644 --- a/manifest/src/lib.rs +++ b/manifest/src/lib.rs @@ -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> { +pub struct Manifest> { pub package: package::Package, pub dependencies: HashMap, pub fs: fs::FS, pub bin: Option, pub build: Option, - pub pkgr: P, + pub pkgr: E, } impl Manifest

{ diff --git a/package.example.toml b/package.example.toml index c99108d..eb5618d 100644 --- a/package.example.toml +++ b/package.example.toml @@ -84,16 +84,16 @@ install_script = "scripts/install" # relative to pkg [build.dependencies] base = "latest,stable" # selected by default -## pkgr.* +## ext.* # packager is the official client but you may use other clients supporting the "pkgr v1 spec". -# other clients may offer extra functionality this must be put under "pkgr.*" -[pkgr] +# other clients may offer extra functionality this must be put under "ext.*" +[ext] ## pkgr.bootstrap # This section is used for bootpkg. An edition of packager that bootstraps the full version. # This exists so that packager is easy to install on anything! # and only 1 release channel for pkgr -[pkgr.bootstrap] +[ext.bootstrap] ## any non-zero = installed check_installed_commands = [ "sh scripts/check_installed"