From 8c240d85a5720234f0093f876d9fdbfcc3f327e8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 6 Jun 2021 18:28:17 +0200 Subject: Provide an option to skip repos larger than a given size Allows a maximum repo size to be given as a command line argument. Repos larger than this will not be mirrored. This gives us a way to save server space by avoiding gigantic repositories. --- Cargo.lock | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index d3df79b..183afd6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -898,6 +898,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "parse-size" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "944553dd59c802559559161f9816429058b869003836120e262e8caec061b7ae" + [[package]] name = "percent-encoding" version = "2.1.0" @@ -1044,6 +1050,7 @@ dependencies = [ "futures", "getopts", "git2", + "parse-size", "reqwest", "serde", "sqlx", -- cgit v1.2.3