Go to file
Wolfgang Bumiller b446456aa5 bump proxmox-metrics to 0.2.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-13 09:56:05 +02:00
.cargo cargo: switch to use packaged crates by default 2020-01-03 09:39:52 +01:00
proxmox-api-macro api-macro: doc update 2022-05-23 10:34:57 +02:00
proxmox-async bump proxmox-async to 0.4.1 2022-04-12 14:22:59 +02:00
proxmox-borrow tree wide update of genereated control 2022-05-05 10:22:50 +02:00
proxmox-compression bump proxmox-compression to 0.1.1-1 2022-04-13 09:35:31 +02:00
proxmox-http bump proxmox-http to 0.6.2 2022-06-02 14:33:12 +02:00
proxmox-io tree wide update of genereated control 2022-05-05 10:22:50 +02:00
proxmox-lang lang: rustfmt 2022-04-10 12:41:44 +02:00
proxmox-metrics bump proxmox-metrics to 0.2.0-1 2022-06-13 09:56:05 +02:00
proxmox-router bump proxmox-router to 1.2.3 2022-06-02 14:33:12 +02:00
proxmox-schema bump proxmox-schema to 1.3.3 2022-06-02 14:33:12 +02:00
proxmox-section-config tree wide update of genereated control 2022-05-05 10:22:50 +02:00
proxmox-serde proxmox-serde: move serde_json to dev-dependencies 2022-06-02 13:18:03 +02:00
proxmox-shared-memory bump proxmox-shared-memory to 0.2.1 2022-06-02 14:33:12 +02:00
proxmox-sortable-macro tree wide update of genereated control 2022-05-05 10:22:50 +02:00
proxmox-sys bump proxmox-sys to 0.3.0 2022-06-02 14:33:12 +02:00
proxmox-tfa tree wide update of genereated control 2022-05-05 10:22:50 +02:00
proxmox-time proxmox-time: add missing 1.1.3 change 2022-06-02 14:33:12 +02:00
proxmox-uuid uuid: rustfmt 2022-04-10 12:34:01 +02:00
.gitignore update gitignore 2022-04-10 12:29:03 +02:00
build.sh build: track d/control in git 2020-11-30 15:13:01 +01:00
Cargo.toml split out compression code into new crate 'proxmox-compression' 2022-02-21 14:10:53 +01:00
Makefile split out compression code into new crate 'proxmox-compression' 2022-02-21 14:10:53 +01:00
README.rst start checklist for adding crates in README.rst 2021-10-06 10:37:17 +02:00
rustfmt.toml initial import, starting with vec & io helpers 2019-06-06 14:00:25 +02:00

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.