]> git.proxmox.com Git - pmg-log-tracker.git/commit - Cargo.toml
rewrite in rust
authorMira Limbeck <m.limbeck@proxmox.com>
Tue, 18 Feb 2020 15:36:36 +0000 (16:36 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 21 Feb 2020 08:47:30 +0000 (09:47 +0100)
commit457d833549a5b2cef21620c506fdfd83cdd702ec
tree8432a79eceefca93e16f98819c0e39f8dc2c7975
parent490b6e739a449702d040112865be8eedc8a76ad8
rewrite in rust

pmg-log-tracker has been rewritten in Rust. Functionality is the same.
Output sometimes has a different order than the pmg-log-tracker in C.
This only happens when the time of the entries match.

There's one change regarding the interface. In addition to the short
versions of arguments also long versions exist.

The implementation uses Rc<>, Weak<> and RefCell<> to make holding mutable
cross-references possible, without having to change the original logic
completely. This allowed for easier translation from C to Rust.

The file debian/cargo-checksum.json is required by dh-cargo, otherwise
it won't compile. The cargo-checksum.json should contain the upstream
.crate file which does not exist in this case, so we just create an
empty one with the required keys. (see 'Library package structure' in
https://wiki.debian.org/Teams/RustPackaging/Policy)

The change to the minimum version of debhelper required was done
according to other rust packages (rust-clap, rust-bindgen, rust-ripgrep).

Adds a README that provides an overview of the stages a mail passes
through and what we can use to match those together for a single mail.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cargo.toml [new file with mode: 0644]
Makefile
README [new file with mode: 0644]
debian/cargo-checksum.json [new file with mode: 0644]
debian/control
debian/rules
src/main.rs [new file with mode: 0644]