From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 4F7C31FF142 for ; Mon, 16 Feb 2026 11:43:53 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7CFD2C601; Mon, 16 Feb 2026 11:44:31 +0100 (CET) From: Dietmar Maurer To: pve-devel@lists.proxmox.com Subject: [RFC proxmox 01/22] firewall-api-types: add new crate for firewall api types Date: Mon, 16 Feb 2026 11:43:39 +0100 Message-ID: <20260216104401.3959270-2-dietmar@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260216104401.3959270-1-dietmar@proxmox.com> References: <20260216104401.3959270-1-dietmar@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.577 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KAM_SHORT 0.001 Use of a URL Shortener for very short URL RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: 4QX7EAMV76GMOQC437USPPY44H32B4XU X-Message-ID-Hash: 4QX7EAMV76GMOQC437USPPY44H32B4XU X-MailFrom: dietmar@zilli.proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This commit just adds a dummy package with no funtionality. Signed-off-by: Dietmar Maurer --- Cargo.toml | 1 + proxmox-firewall-api-types/Cargo.toml | 20 +++++++ proxmox-firewall-api-types/debian/changelog | 5 ++ proxmox-firewall-api-types/debian/control | 52 +++++++++++++++++++ proxmox-firewall-api-types/debian/copyright | 18 +++++++ .../debian/debcargo.toml | 7 +++ proxmox-firewall-api-types/src/lib.rs | 1 + 7 files changed, 104 insertions(+) create mode 100644 proxmox-firewall-api-types/Cargo.toml create mode 100644 proxmox-firewall-api-types/debian/changelog create mode 100644 proxmox-firewall-api-types/debian/control create mode 100644 proxmox-firewall-api-types/debian/copyright create mode 100644 proxmox-firewall-api-types/debian/debcargo.toml create mode 100644 proxmox-firewall-api-types/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 6ce4d5ec..650868de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ members = [ "proxmox-daemon", "proxmox-deb-version", "proxmox-dns-api", + "proxmox-firewall-api-types", "proxmox-fixed-string", "proxmox-docgen", "proxmox-http", diff --git a/proxmox-firewall-api-types/Cargo.toml b/proxmox-firewall-api-types/Cargo.toml new file mode 100644 index 00000000..515d1efc --- /dev/null +++ b/proxmox-firewall-api-types/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "proxmox-firewall-api-types" +version = "0.1.0" +description = "Proxmox Firewall API type definitions." + +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +exclude.workspace = true + +[dependencies] +anyhow.workspace = true +regex.workspace = true +proxmox-fixed-string.workspace = true + +serde = { workspace = true, features = [ "derive" ] } +serde_plain = { workspace = true } +proxmox-schema = { workspace = true, features = ["api-macro"] } +proxmox-serde = { workspace = true, features = ["perl"] } diff --git a/proxmox-firewall-api-types/debian/changelog b/proxmox-firewall-api-types/debian/changelog new file mode 100644 index 00000000..0ebe9d33 --- /dev/null +++ b/proxmox-firewall-api-types/debian/changelog @@ -0,0 +1,5 @@ +rust-proxmox-firewall-api-types (0.1.0-1) trixie; urgency=medium + + * Initial release. + + -- Proxmox Support Team Thu, 22 Jan 2026 11:09:07 +0100 diff --git a/proxmox-firewall-api-types/debian/control b/proxmox-firewall-api-types/debian/control new file mode 100644 index 00000000..13ea0ae1 --- /dev/null +++ b/proxmox-firewall-api-types/debian/control @@ -0,0 +1,52 @@ +Source: rust-proxmox-firewall-api-types +Section: rust +Priority: optional +Build-Depends: debhelper-compat (= 13), + dh-sequence-cargo +Build-Depends-Arch: cargo:native , + rustc:native , + libstd-rust-dev , + librust-anyhow-1+default-dev , + librust-proxmox-fixed-string-0.1+default-dev , + librust-proxmox-schema-5+api-macro-dev (>= 5.0.1-~~) , + librust-proxmox-schema-5+default-dev (>= 5.0.1-~~) , + librust-proxmox-serde-1+default-dev , + librust-proxmox-serde-1+perl-dev , + librust-proxmox-serde-1+serde-json-dev , + librust-regex-1+default-dev (>= 1.5-~~) , + librust-serde-1+default-dev , + librust-serde-1+derive-dev , + librust-serde-plain-1+default-dev +Maintainer: Proxmox Support Team +Standards-Version: 4.7.2 +Vcs-Git: git://git.proxmox.com/git/proxmox.git +Vcs-Browser: https://git.proxmox.com/?p=proxmox.git +Homepage: https://git.proxmox.com/?p=proxmox.git +X-Cargo-Crate: proxmox-firewall-api-types + +Package: librust-proxmox-firewall-api-types-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-proxmox-fixed-string-0.1+default-dev, + librust-proxmox-schema-5+api-macro-dev (>= 5.0.1-~~), + librust-proxmox-schema-5+default-dev (>= 5.0.1-~~), + librust-proxmox-serde-1+default-dev, + librust-proxmox-serde-1+perl-dev, + librust-proxmox-serde-1+serde-json-dev, + librust-regex-1+default-dev (>= 1.5-~~), + librust-serde-1+default-dev, + librust-serde-1+derive-dev, + librust-serde-plain-1+default-dev +Provides: + librust-proxmox-firewall-api-types+default-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0+default-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0.1-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0.1+default-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0.1.0-dev (= ${binary:Version}), + librust-proxmox-firewall-api-types-0.1.0+default-dev (= ${binary:Version}) +Description: Proxmox Firewall API type definitions - Rust source code + Source code for Debianized Rust crate "proxmox-firewall-api-types" diff --git a/proxmox-firewall-api-types/debian/copyright b/proxmox-firewall-api-types/debian/copyright new file mode 100644 index 00000000..77952eba --- /dev/null +++ b/proxmox-firewall-api-types/debian/copyright @@ -0,0 +1,18 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: + * +Copyright: 2019 - 2026 Proxmox Server Solutions GmbH +License: AGPL-3.0-or-later + This program is free software: you can redistribute it and/or modify it under + the terms of the GNU Affero General Public License as published by the Free + Software Foundation, either version 3 of the License, or (at your option) any + later version. + . + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + details. + . + You should have received a copy of the GNU Affero General Public License along + with this program. If not, see . diff --git a/proxmox-firewall-api-types/debian/debcargo.toml b/proxmox-firewall-api-types/debian/debcargo.toml new file mode 100644 index 00000000..b7864cdb --- /dev/null +++ b/proxmox-firewall-api-types/debian/debcargo.toml @@ -0,0 +1,7 @@ +overlay = "." +crate_src_path = ".." +maintainer = "Proxmox Support Team " + +[source] +vcs_git = "git://git.proxmox.com/git/proxmox.git" +vcs_browser = "https://git.proxmox.com/?p=proxmox.git" diff --git a/proxmox-firewall-api-types/src/lib.rs b/proxmox-firewall-api-types/src/lib.rs new file mode 100644 index 00000000..7c4a64a7 --- /dev/null +++ b/proxmox-firewall-api-types/src/lib.rs @@ -0,0 +1 @@ +// TODO: add code here -- 2.47.3