From 913dfb5342df7484039774b044349ed0b023e2df Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Mon, 19 Dec 2022 22:37:36 +0100 Subject: [PATCH] fix: make repositories optional --- CHANGELOG.md | 4 ++++ addonscript/src/manifest/mod.rs | 1 + mpt/Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e5e53..9d902e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.1.4 + +- fix optional `repositories` value being required + # 0.1.3 - add support for defines diff --git a/addonscript/src/manifest/mod.rs b/addonscript/src/manifest/mod.rs index ef2783c..ad1357a 100644 --- a/addonscript/src/manifest/mod.rs +++ b/addonscript/src/manifest/mod.rs @@ -12,6 +12,7 @@ pub struct Manifest { #[serde(rename = "type")] pub manifest_type: ManifestType, pub versions: Vec, + #[serde(default)] pub repositories: Vec, pub meta: Meta, } diff --git a/mpt/Cargo.toml b/mpt/Cargo.toml index 0a7e224..c518c06 100644 --- a/mpt/Cargo.toml +++ b/mpt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mpt" -version = "0.1.3" +version = "0.1.4" edition = "2018" [[bin]]