Go to file
Thomas Lamprecht c70d98c90c tfa: fix hyperlink in doc comment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-04 17:06:02 +01:00
.cargo
proxmox-api-macro api-macro: formatting 2021-12-07 11:51:09 +01:00
proxmox-async bump proxmox-async to 0.3.3 2022-02-02 13:21:55 +01:00
proxmox-borrow
proxmox-http http: websocket: rustfmt and small cleanups 2022-02-04 17:05:45 +01:00
proxmox-io io: formatting 2021-12-07 11:51:15 +01:00
proxmox-lang
proxmox-metrics metrics: cleanup 2022-02-03 13:40:07 +01:00
proxmox-router switch to new schema verify methods 2021-12-30 11:51:08 +01:00
proxmox-schema schema: fix deprecation warnings in tests 2021-12-17 08:07:02 +01:00
proxmox-section-config switch to new schema verify methods 2021-12-30 11:51:08 +01:00
proxmox-serde proxmox-serde: track d/control 2021-12-30 11:51:08 +01:00
proxmox-shared-memory shared-memory: track d/control 2021-12-30 11:51:08 +01:00
proxmox-sortable-macro clippy: misc fixes 2021-12-02 09:00:52 +01:00
proxmox-sys proxmox-sys: add FileSystemInformation struct and helper 2022-02-01 12:26:14 +01:00
proxmox-tfa tfa: fix hyperlink in doc comment 2022-02-04 17:06:02 +01:00
proxmox-time time: fix tests 2021-12-17 08:04:12 +01:00
proxmox-uuid uuid: clippy fixes 2021-12-07 11:50:27 +01:00
.gitignore
build.sh
Cargo.toml proxmox-metrics: implement metrics server client code 2022-02-02 12:56:21 +01:00
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.