mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-13 06:01:25 +00:00
![]() Not sure how we want to actually handle default values yet. For now we need to figure out what "feels best". This adds default values as publicly available consts so they can be accessed from anywhere as `API_METHOD_<METHOD_NAME>_PARAM_DEFAULT_<PARAM_NAME>`. This is quite a handful to type, but I'm not sure how to make this better. Within the function body we also have the `api_get_default!(param_name)` macro which is more convenient, but not available outside the `#[api]` tagged function. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.cargo | ||
proxmox | ||
proxmox-api-macro | ||
proxmox-sortable-macro | ||
.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`.