pmg-log-tracker/Cargo.toml
Dominik Csapak e34f84b91f use pico-args instead of clap
Instead of upgrading from clap3 to clap4 (which seems to change their
interface every year or so), switch to the much smaller pico-args. (Same
as we did for termproxy recently, see [0])

It has almost all features we need (except producing help output) and
supports OsString, but wihout any dependencies. This decreases compile
time and reduces the size of the resulting binary. It also reduces the
lines of code.

The only difference is now the different output for errors, e.g. for
missing values of options.

Help output is copied from the old clap output.

0: https://git.proxmox.com/?p=pve-xtermjs.git;a=commitdiff;h=24d707d0506b120a085b06b5f2b6000696879a1e

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Mira Limbeck <m.limbeck@proxmox.com>
Reviewed-by: Mira Limbeck <m.limbeck@proxmox.com>
2024-02-13 15:54:42 +01:00

18 lines
464 B
TOML

[package]
name = "pmg-log-tracker"
version = "2.4.1"
authors = ["Mira Limbeck <m.limbeck@proxmox.com>", "Dietmar Maurer <dietmar@proxmox.com>"]
edition = "2021"
license = "AGPL-3"
description = "Proxmox Mailgateway Log Tracker. Tool to scan mail logs."
homepage = "https://www.proxmox.com"
exclude = [ "build", "debian" ]
[dependencies]
anyhow = "1"
flate2 = "1.0"
libc = "0.2"
proxmox-time = "1.1"
pico-args = { version = "0.4", features = ["combined-flags"] }