From 919ccf713aab2ce81027d8cc194ea93b06c4c04e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 13 Oct 2021 13:33:15 +0200 Subject: [PATCH] proxmox-rrd: move unshipped cli tool to examples it's a rather low-level tool mostly useful for debugging and some of it is rather "dumb" (by design) anyway, e.g., it does not transparently applies journal but really only operates on the DB files as is (which can conflict with daemon operations). In summary, not (yet) a tool meant for end user consumption. Move it to examples folder to avoid compilation on packaging (we do not ship it anyway) which allows us to move the rather expensive proxmox-router (pulls in hyper) to the dev-dependencies section. Signed-off-by: Thomas Lamprecht --- proxmox-rrd/Cargo.toml | 4 +++- proxmox-rrd/{src/bin/rrd.rs => examples/prrd.rs} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename proxmox-rrd/{src/bin/rrd.rs => examples/prrd.rs} (100%) diff --git a/proxmox-rrd/Cargo.toml b/proxmox-rrd/Cargo.toml index e3ab5380..0ede97f5 100644 --- a/proxmox-rrd/Cargo.toml +++ b/proxmox-rrd/Cargo.toml @@ -5,6 +5,9 @@ authors = ["Proxmox Support Team "] edition = "2018" description = "Simple RRD database implementation." +[dev-dependencies] +proxmox-router = "1" + [dependencies] anyhow = "1.0" bitflags = "1.2.1" @@ -16,5 +19,4 @@ serde_cbor = "0.11.1" proxmox = { version = "0.14.0" } proxmox-time = "1" -proxmox-router = "1" proxmox-schema = { version = "1", features = [ "api-macro" ] } diff --git a/proxmox-rrd/src/bin/rrd.rs b/proxmox-rrd/examples/prrd.rs similarity index 100% rename from proxmox-rrd/src/bin/rrd.rs rename to proxmox-rrd/examples/prrd.rs