From e4f5179ae6a647d81ddd299b5019b6980743d018 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 15 Jan 2025 12:05:40 +0100 Subject: [PATCH] schema: bump to 4.0.0-1 Signed-off-by: Wolfgang Bumiller --- Cargo.toml | 2 +- proxmox-schema/Cargo.toml | 2 +- proxmox-schema/debian/changelog | 27 +++++++++++++++++++++++++ proxmox-schema/debian/control | 36 ++++++++++++++++----------------- 4 files changed, 47 insertions(+), 20 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7e6e151b..6c59ec01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -137,7 +137,7 @@ proxmox-product-config = { version = "0.2.0", path = "proxmox-product-config" } proxmox-config-digest = { version = "0.1.0", path = "proxmox-config-digest" } proxmox-rest-server = { version = "0.8.0", path = "proxmox-rest-server" } proxmox-router = { version = "3.0.0", path = "proxmox-router" } -proxmox-schema = { version = "3.1.2", path = "proxmox-schema" } +proxmox-schema = { version = "4.0.0", path = "proxmox-schema" } proxmox-section-config = { version = "2.1.0", path = "proxmox-section-config" } proxmox-sendmail = { version = "0.1.0", path = "proxmox-sendmail" } proxmox-serde = { version = "0.1.1", path = "proxmox-serde", features = [ "serde_json" ] } diff --git a/proxmox-schema/Cargo.toml b/proxmox-schema/Cargo.toml index 5f351fbb..c8028aa5 100644 --- a/proxmox-schema/Cargo.toml +++ b/proxmox-schema/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "proxmox-schema" description = "proxmox api schema and validation" -version = "3.2.0" +version = "4.0.0" authors.workspace = true edition.workspace = true diff --git a/proxmox-schema/debian/changelog b/proxmox-schema/debian/changelog index 0f075b14..13a3ad86 100644 --- a/proxmox-schema/debian/changelog +++ b/proxmox-schema/debian/changelog @@ -1,3 +1,30 @@ +rust-proxmox-schema (4.0.0-1) bookworm; urgency=medium + + * drop deprecated functions + + * make schema types non_exhaustive + + * add 'description()' builder methods to schema types + + * add `unwrap_*_schema_cloned()` to schema types as const fn to get a copy + of a schema which can be manipulated in const contexts + + * impl UpdaterType fro PropertyString as Option + + * fix a pointer vs length confusion in the property string deserializer when + using static strings + + * support PVE's 'keyAlias/alias' combination in serde based PropertyString + deserialization + + * update docs to not use now-removed (previously deprecated) functions + + * improve indentation handling in doc output + + * elide lifetimes where possible with current expected rustc versions + + -- Proxmox Support Team Wed, 15 Jan 2025 12:07:42 +0100 + rust-proxmox-schema (3.2.0-1) bookworm; urgency=medium * bump api-macro dependency to 1.2 diff --git a/proxmox-schema/debian/control b/proxmox-schema/debian/control index 4c4cb82f..95252acb 100644 --- a/proxmox-schema/debian/control +++ b/proxmox-schema/debian/control @@ -36,15 +36,15 @@ Suggests: Provides: librust-proxmox-schema+default-dev (= ${binary:Version}), librust-proxmox-schema+test-harness-dev (= ${binary:Version}), - librust-proxmox-schema-3-dev (= ${binary:Version}), - librust-proxmox-schema-3+default-dev (= ${binary:Version}), - librust-proxmox-schema-3+test-harness-dev (= ${binary:Version}), - librust-proxmox-schema-3.2-dev (= ${binary:Version}), - librust-proxmox-schema-3.2+default-dev (= ${binary:Version}), - librust-proxmox-schema-3.2+test-harness-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0+default-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0+test-harness-dev (= ${binary:Version}) + librust-proxmox-schema-4-dev (= ${binary:Version}), + librust-proxmox-schema-4+default-dev (= ${binary:Version}), + librust-proxmox-schema-4+test-harness-dev (= ${binary:Version}), + librust-proxmox-schema-4.0-dev (= ${binary:Version}), + librust-proxmox-schema-4.0+default-dev (= ${binary:Version}), + librust-proxmox-schema-4.0+test-harness-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0+default-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0+test-harness-dev (= ${binary:Version}) Description: Proxmox api schema and validation - Rust source code Source code for Debianized Rust crate "proxmox-schema" @@ -56,9 +56,9 @@ Depends: librust-proxmox-schema-dev (= ${binary:Version}), librust-proxmox-api-macro-1+default-dev (>= 1.2.0-~~) Provides: - librust-proxmox-schema-3+api-macro-dev (= ${binary:Version}), - librust-proxmox-schema-3.2+api-macro-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0+api-macro-dev (= ${binary:Version}) + librust-proxmox-schema-4+api-macro-dev (= ${binary:Version}), + librust-proxmox-schema-4.0+api-macro-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0+api-macro-dev (= ${binary:Version}) Description: Proxmox api schema and validation - feature "api-macro" This metapackage enables feature "api-macro" for the Rust proxmox-schema crate, by pulling in any additional dependencies needed by that feature. @@ -71,9 +71,9 @@ Depends: librust-proxmox-schema-dev (= ${binary:Version}), librust-const-format-0.2+default-dev Provides: - librust-proxmox-schema-3+api-types-dev (= ${binary:Version}), - librust-proxmox-schema-3.2+api-types-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0+api-types-dev (= ${binary:Version}) + librust-proxmox-schema-4+api-types-dev (= ${binary:Version}), + librust-proxmox-schema-4.0+api-types-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0+api-types-dev (= ${binary:Version}) Description: Proxmox api schema and validation - feature "api-types" This metapackage enables feature "api-types" for the Rust proxmox-schema crate, by pulling in any additional dependencies needed by that feature. @@ -87,9 +87,9 @@ Depends: librust-libc-0.2+default-dev (>= 0.2.107-~~), librust-nix-0.26+default-dev (>= 0.26.1-~~) Provides: - librust-proxmox-schema-3+upid-api-impl-dev (= ${binary:Version}), - librust-proxmox-schema-3.2+upid-api-impl-dev (= ${binary:Version}), - librust-proxmox-schema-3.2.0+upid-api-impl-dev (= ${binary:Version}) + librust-proxmox-schema-4+upid-api-impl-dev (= ${binary:Version}), + librust-proxmox-schema-4.0+upid-api-impl-dev (= ${binary:Version}), + librust-proxmox-schema-4.0.0+upid-api-impl-dev (= ${binary:Version}) Description: Proxmox api schema and validation - feature "upid-api-impl" This metapackage enables feature "upid-api-impl" for the Rust proxmox-schema crate, by pulling in any additional dependencies needed by that feature.