From a94aea6b329291c68af645b8b1af476fc4f0f272 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Thu, 12 Dec 2019 07:43:36 +0800 Subject: [PATCH] update digest-tool --- Cargo.lock | 10 ++++++---- Cargo.toml | 8 ++++++-- README.md | 4 +++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5b84ede..69b19ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,7 +141,7 @@ dependencies = [ ] [[package]] -name = "digest" +name = "digest-tool" version = "0.1.2" dependencies = [ "argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -149,7 +149,7 @@ dependencies = [ "indicatif 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", "libsm 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", - "rust_util 0.1.0 (git+https://github.com/jht5945/rust_util)", + "rust_util 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -447,8 +447,10 @@ dependencies = [ [[package]] name = "rust_util" version = "0.1.0" -source = "git+https://github.com/jht5945/rust_util#c969e39efe99dd6cb6462d2a7a4a3c82c41c3f88" +source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ + "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)", "term 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "term_size 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -624,7 +626,7 @@ dependencies = [ "checksum regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "11a7e20d1cce64ef2fed88b66d347f88bd9babb82845b2b858f3edbf59a4f716" "checksum rust-argon2 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4ca4eaef519b494d1f2848fc602d18816fed808a981aedf4f1f00ceb7c9d32cf" "checksum rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)" = "f76d05d3993fd5f4af9434e8e436db163a12a9d40e1a58a726f27a01dfd12a2a" -"checksum rust_util 0.1.0 (git+https://github.com/jht5945/rust_util)" = "" +"checksum rust_util 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5dc9b9d45cf4e9a8a28c1c622f0a2bba9af88b85ec04c494d80605a717c1c022" "checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" "checksum syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "661641ea2aa15845cddeb97dad000d22070bb5c1fb456b96c1cba883ec691e92" diff --git a/Cargo.toml b/Cargo.toml index 36a5503..f9d22ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,12 @@ [package] -name = "digest" +name = "digest-tool" version = "0.1.2" authors = ["Hatter Jiang "] edition = "2018" +description = "Digest cli tool" +readme = "README.md" +repository = "https://git.hatter.ink/hatter/digest" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,6 +16,6 @@ libsm = "0.3.0" rust-crypto = "0.2.36" hex = "0.4.0" indicatif = "0.13.0" -rust_util = { git = "https://github.com/jht5945/rust_util" } +rust_util = "0.1.0" diff --git a/README.md b/README.md index 35c07ef..1d945b9 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,14 @@ Digest tool written in Rust programming language Usage: ```shell -$ digest -a sha256 LICENSE +$ digest-tool -a sha256 LICENSE e36f811f31f3ad9d2ba68230258747bcb868ab59e8640fab3733fbe179bb7cf4 - LICENSE (SHA256) ``` Install: ```shell +$ cargo install digest-tool + $ cargo install --git https://git.hatter.ink/hatter/digest.git ```