mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-02 21:01:24 +00:00
![]() Additional properties will be parsed according to the default string schema. This is relevant for use cases when the full schema is not known for some reason or another. In particular this allows support for parsing older/newer versions of configuration files. One example of this is the proposed proxmox-mail-forward helper binary, which currently doesn't have access to the PBS API types for dependency reasons and is only interested in the email field for the root user. If it can only use a minimal schema with additional_properties set to true, it will be robust against changes. Writing already works, because the ObjectSchema's verify_json() already handles additional_properties correctly and format_section_content() handles them like all other properties (method doesn't depend on the schema). Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> |
||
---|---|---|
.cargo | ||
proxmox-api-macro | ||
proxmox-async | ||
proxmox-borrow | ||
proxmox-compression | ||
proxmox-http | ||
proxmox-io | ||
proxmox-lang | ||
proxmox-metrics | ||
proxmox-rest-server | ||
proxmox-router | ||
proxmox-schema | ||
proxmox-section-config | ||
proxmox-serde | ||
proxmox-shared-memory | ||
proxmox-sortable-macro | ||
proxmox-subscription | ||
proxmox-sys | ||
proxmox-tfa | ||
proxmox-time | ||
proxmox-uuid | ||
.gitignore | ||
build.sh | ||
Cargo.toml | ||
Makefile | ||
README.rst | ||
rustfmt.toml |
Local cargo config ================== This repository ships with a ``.cargo/config`` that replaces the crates.io registry with packaged crates located in ``/usr/share/cargo/registry``. A similar config is also applied building with dh_cargo. Cargo.lock needs to be deleted when switching between packaged crates and crates.io, since the checksums are not compatible. To reference new dependencies (or updated versions) that are not yet packaged, the dependency needs to point directly to a path or git source. Steps for Releases ================== - Cargo.toml updates: - Bump all modified crate versions. - Update all the other crates' Cargo.toml to depend on the new versions if required, then bump their version as well if not already done. - Update debian/changelog files in all the crates updated above. - Build packages with `make deb`. Adding Crates ============= 1) At the top level: - Generate the crate: ``cargo new --lib the-name`` - Sort the crate into ``Cargo.toml``'s ``workspace.members`` - Sort the crate into the ``Makefile``'s ``CRATES`` list. 2) In the new crate's ``Cargo.toml``: - Replace the ``author`` line with ``authors = ["Proxmox Support Team <support@proxmox.com>"]`` - Add ``license = "AGPL-3"`` - Add ``exclude = [ "debian" ]`` - Add a meaningful ``description`` - Copy ``debian/copyright`` and ``debian/debcargo.toml`` from another subcrate.