Go to file
Wolfgang Bumiller 27c8106d7b bump proxmox-async to 0.4.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-04-12 14:22:59 +02:00
.cargo
proxmox-api-macro api-macro: fix "Forgerty" typo 2022-02-07 15:38:39 +01:00
proxmox-async bump proxmox-async to 0.4.1 2022-04-12 14:22:59 +02:00
proxmox-borrow
proxmox-compression proxmox-compression: update d/control 2022-02-21 14:17:01 +01:00
proxmox-http http: rustfmt 2022-04-10 12:41:21 +02:00
proxmox-io io: formatting 2021-12-07 11:51:15 +01:00
proxmox-lang lang: rustfmt 2022-04-10 12:41:44 +02:00
proxmox-metrics bump proxmox-metrics to 0.1.1-1 2022-02-22 09:00:39 +01:00
proxmox-router router: rustfmt 2022-04-10 12:40:39 +02:00
proxmox-schema schema: rustfmt 2022-04-10 12:42:09 +02:00
proxmox-section-config workspace: set proxmox-lang dep version to 1.1 2022-02-21 13:45:46 +01:00
proxmox-serde misc clippy fixes 2022-02-08 14:28:44 +01:00
proxmox-shared-memory shared memory: rustfmt 2022-04-10 12:37:38 +02:00
proxmox-sortable-macro
proxmox-sys sys: make acl constants rustfmt safe 2022-04-10 17:39:31 +02:00
proxmox-tfa tfa: rustfmt 2022-04-10 12:34:41 +02:00
proxmox-time time: rustfmt 2022-04-10 12:34:04 +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
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
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.