From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id F13ED1FF185 for ; Mon, 7 Jul 2025 13:12:11 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9BC3830447; Mon, 7 Jul 2025 13:12:53 +0200 (CEST) Date: Mon, 7 Jul 2025 13:12:50 +0200 From: Wolfgang Bumiller To: Gabriel Goller Message-ID: References: <20250702145101.894299-1-g.goller@proxmox.com> <20250702145101.894299-11-g.goller@proxmox.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20250702145101.894299-11-g.goller@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.077 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_SHORT 0.001 Use of a URL Shortener for very short URL RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH proxmox-ve-rs v4 04/22] frr: create proxmox-frr crate X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Cc: pve-devel@lists.proxmox.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" On Wed, Jul 02, 2025 at 04:49:55PM +0200, Gabriel Goller wrote: > This crate holds FRR-types, so rust-types that closely resemble > FRR-configuration items. These types can then simply be converted to > strings (and the final FRR config) by serializing. This has minimal > dependencies and it's only internal dependency is proxmox-network-types, > which holds common types. This way we could reuse proxmox-frr on > different products, without dragging product-specific types with us. > > Signed-off-by: Gabriel Goller > --- > Cargo.toml | 1 + > proxmox-frr/Cargo.toml | 23 ++++++++++++++++ > proxmox-frr/debian/changelog | 5 ++++ > proxmox-frr/debian/control | 47 ++++++++++++++++++++++++++++++++ > proxmox-frr/debian/copyright | 18 ++++++++++++ > proxmox-frr/debian/debcargo.toml | 7 +++++ > proxmox-frr/src/lib.rs | 0 > 7 files changed, 101 insertions(+) > create mode 100644 proxmox-frr/Cargo.toml > create mode 100644 proxmox-frr/debian/changelog > create mode 100644 proxmox-frr/debian/control > create mode 100644 proxmox-frr/debian/copyright > create mode 100644 proxmox-frr/debian/debcargo.toml > create mode 100644 proxmox-frr/src/lib.rs > > diff --git a/Cargo.toml b/Cargo.toml > index 07da9ef70e6d..dde2d91bf810 100644 > --- a/Cargo.toml > +++ b/Cargo.toml > @@ -1,6 +1,7 @@ > [workspace] > members = [ > "proxmox-ve-config", > + "proxmox-frr", > "proxmox-sdn-types", > ] > exclude = [ > diff --git a/proxmox-frr/Cargo.toml b/proxmox-frr/Cargo.toml > new file mode 100644 > index 000000000000..e29453ae09c3 > --- /dev/null > +++ b/proxmox-frr/Cargo.toml > @@ -0,0 +1,23 @@ > +[package] > +name = "proxmox-frr" > +description = "Rust types for the FRR configuration file" > +version = "0.1.0" > +authors.workspace = true > +edition.workspace = true > +license.workspace = true > +homepage.workspace = true > +exclude.workspace = true > +rust-version.workspace = true > + > +[dependencies] > +thiserror = { workspace = true } > +anyhow = "1" > +tracing = "0.1" > + > +serde = { workspace = true, features = [ "derive" ] } > +serde_with = { workspace = true } > +itoa = "1.0.9" ^ This seems to be unused across the entire series. > + > +proxmox-network-types = { workspace = true } > +proxmox-sdn-types = { workspace = true } > + > diff --git a/proxmox-frr/debian/changelog b/proxmox-frr/debian/changelog > new file mode 100644 > index 000000000000..47d734857469 > --- /dev/null > +++ b/proxmox-frr/debian/changelog > @@ -0,0 +1,5 @@ > +rust-proxmox-frr (0.1.0-1) unstable; urgency=medium > + > + * Initial release. > + > + -- Proxmox Support Team Mon, 03 Jun 2024 10:51:11 +0200 > diff --git a/proxmox-frr/debian/control b/proxmox-frr/debian/control > new file mode 100644 > index 000000000000..07b4fbe87629 > --- /dev/null > +++ b/proxmox-frr/debian/control > @@ -0,0 +1,47 @@ > +Source: rust-proxmox-frr > +Section: rust > +Priority: optional > +Build-Depends: debhelper-compat (= 13), > + dh-sequence-cargo > +Build-Depends-Arch: cargo:native , > + rustc:native (>= 1.82) , > + libstd-rust-dev , > + librust-anyhow-1+default-dev , > + librust-itoa-1+default-dev (>= 1.0.9-~~) , > + librust-proxmox-network-types-0.1+default-dev , > + librust-serde-1+default-dev , > + librust-serde-1+derive-dev , > + librust-serde-with-3+default-dev , > + librust-thiserror-2+default-dev , > + librust-tracing-0.1+default-dev > +Maintainer: Proxmox Support Team > +Standards-Version: 4.7.0 > +Vcs-Git: git://git.proxmox.com/git/proxmox-ve-rs.git > +Vcs-Browser: https://git.proxmox.com/?p=proxmox-ve-rs.git > +Homepage: https://proxmox.com > +X-Cargo-Crate: proxmox-frr > +Rules-Requires-Root: no > + > +Package: librust-proxmox-frr-dev > +Architecture: any > +Multi-Arch: same > +Depends: > + ${misc:Depends}, > + librust-anyhow-1+default-dev, > + librust-itoa-1+default-dev (>= 1.0.9-~~), > + librust-proxmox-network-types-0.1+default-dev, > + librust-serde-1+default-dev, > + librust-serde-1+derive-dev, > + librust-serde-with-3+default-dev, > + librust-thiserror-2+default-dev, > + librust-tracing-0.1+default-dev > +Provides: > + librust-proxmox-frr+default-dev (= ${binary:Version}), > + librust-proxmox-frr-0-dev (= ${binary:Version}), > + librust-proxmox-frr-0+default-dev (= ${binary:Version}), > + librust-proxmox-frr-0.1-dev (= ${binary:Version}), > + librust-proxmox-frr-0.1+default-dev (= ${binary:Version}), > + librust-proxmox-frr-0.1.0-dev (= ${binary:Version}), > + librust-proxmox-frr-0.1.0+default-dev (= ${binary:Version}) > +Description: Rust types for the FRR configuration file - Rust source code > + Source code for Debianized Rust crate "proxmox-frr" > diff --git a/proxmox-frr/debian/copyright b/proxmox-frr/debian/copyright > new file mode 100644 > index 000000000000..1ea8a56b4f58 > --- /dev/null > +++ b/proxmox-frr/debian/copyright > @@ -0,0 +1,18 @@ > +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ > + > +Files: > + * > +Copyright: 2019 - 2025 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-frr/debian/debcargo.toml b/proxmox-frr/debian/debcargo.toml > new file mode 100644 > index 000000000000..87a787e6d03e > --- /dev/null > +++ b/proxmox-frr/debian/debcargo.toml > @@ -0,0 +1,7 @@ > +overlay = "." > +crate_src_path = ".." > +maintainer = "Proxmox Support Team " > + > +[source] > +vcs_git = "git://git.proxmox.com/git/proxmox-ve-rs.git" > +vcs_browser = "https://git.proxmox.com/?p=proxmox-ve-rs.git" > diff --git a/proxmox-frr/src/lib.rs b/proxmox-frr/src/lib.rs > new file mode 100644 > index 000000000000..e69de29bb2d1 > -- > 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel