From 57a177e2f946390559a1f17787c5a15d23ac3393 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 10 Sep 2020 12:39:07 +0200 Subject: Show progress bar in fill output This patch uses the progressing crate to display a progress bar for the fill command if the output is printed to a TTY. --- Cargo.lock | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 5e359d1..94126a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,6 +163,15 @@ version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99e85c08494b21a9054e7fe1374a732aeadaff3980b6990b94bfd3a70f690005" +[[package]] +name = "log" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +dependencies = [ + "cfg-if", +] + [[package]] name = "memchr" version = "2.3.3" @@ -204,6 +213,7 @@ dependencies = [ "nitrokey", "nitrokey-test", "nitrokey-test-state", + "progressing", "regex", "serde", "structopt", @@ -299,6 +309,15 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "progressing" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97b7db19a74ba7c34de36558abed080568491d2b8999a34de914b1793b0b4b1b" +dependencies = [ + "log", +] + [[package]] name = "quote" version = "1.0.3" -- cgit v1.2.1