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 B4C2E1FF13B for ; Wed, 11 Feb 2026 17:36:39 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CE76B336A3; Wed, 11 Feb 2026 17:37:21 +0100 (CET) Message-ID: Date: Wed, 11 Feb 2026 17:36:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [pve-devel] [PATCH proxmox 01/11] serde: implement ini serializer To: Proxmox VE development discussion , Christoph Heiss References: <20260116153317.1146323-1-c.heiss@proxmox.com> <20260116153317.1146323-2-c.heiss@proxmox.com> Content-Language: en-US From: Stefan Hanreich In-Reply-To: <20260116153317.1146323-2-c.heiss@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.721 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 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 Message-ID-Hash: ZI4MXOC3ZKFTQL3OESDN325IDZAG2F2V X-Message-ID-Hash: ZI4MXOC3ZKFTQL3OESDN325IDZAG2F2V X-MailFrom: s.hanreich@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: On 1/16/26 4:32 PM, Christoph Heiss wrote: > The official WireGuard tooling wg(8) uses a (mostly) INI-like format > for consuming configuration. > > E.g. `wg syncconf` will be used by in the future by the WireGuard fabric > for applying changes to a particular WireGuard interface. > > One of the quirks of the INI format used by wg(8) are that there can be > multiple sections with the same name, which is also explicitly supported > by this serializer. > > Signed-off-by: Christoph Heiss > --- > Cargo.toml | 1 + > proxmox-serde/Cargo.toml | 2 + > proxmox-serde/debian/control | 4 + > proxmox-serde/src/ini.rs | 901 +++++++++++++++++++++++++++++++++++ > proxmox-serde/src/lib.rs | 3 + > 5 files changed, 911 insertions(+) > create mode 100644 proxmox-serde/src/ini.rs > > diff --git a/Cargo.toml b/Cargo.toml > index 27a69afa..3cdad8d8 100644 > --- a/Cargo.toml > +++ b/Cargo.toml > @@ -114,6 +114,7 @@ openssl = "0.10" > pam-sys = "0.5" > percent-encoding = "2.1" > pin-utils = "0.1.0" > +pretty_assertions = "1.4.1" this is only available in version 1.4.0 for me via the Debian repositories, unless I'm missing something?