Update chbs dependency to v0.0.8

This commit is contained in:
timvisee 2018-09-04 23:50:38 +02:00
parent 0a6696d912
commit a50e4e2300
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
3 changed files with 7 additions and 8 deletions

8
Cargo.lock generated
View file

@ -132,9 +132,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "chbs"
version = "0.0.1"
version = "0.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"derive_builder 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
@ -421,7 +423,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "ffsend"
version = "0.0.8"
dependencies = [
"chbs 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"chbs 0.0.8 (registry+https://github.com/rust-lang/crates.io-index)",
"chrono 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)",
"clipboard 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1782,7 +1784,7 @@ dependencies = [
"checksum bytes 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7dd32989a66957d3f0cba6588f15d4281a733f4e9ffc43fcd2385f57d3bf99ff"
"checksum cc 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "49ec142f5768efb5b7622aebc3fdbdbb8950a4b9ba996393cb76ef7466e8747d"
"checksum cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "405216fd8fe65f718daa7102ea808a946b6ce40c742998fbfd3463645552de18"
"checksum chbs 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7580cf614cddea9bbf9de26bb17faa88aba720c745e65bd96fdfd794d2bf30ee"
"checksum chbs 0.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "50377f3cfb1f201da2538310d126b99f21fff9ff99030da18c51069026035c37"
"checksum chrono 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a81892f0d5a53f46fc05ef0b917305a81c13f1f13bb59ac91ff595817f0764b1"
"checksum clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0f16b89cbb9ee36d87483dc939fe9f1e13c05898d56d7b230a0d4dff033a536"
"checksum clipboard 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b9b4623b47d8637fc9d47564583d4cc01eb8c8e34e26b2bf348bf4b036acb657"

View file

@ -61,7 +61,7 @@ history = []
no-color = ["colored/no-color"]
[dependencies]
chbs = "0.0.1"
chbs = "0.0.8"
chrono = "0.4"
clap = "2.31"
colored = "1.6"

View file

@ -3,9 +3,6 @@ use chbs;
use super::{CmdArg, CmdArgFlag};
/// The number of words the passphrase must consist of.
const PASSPHRASE_WORDS: usize = 4;
/// The passphrase generation argument.
pub struct ArgGenPassphrase { }
@ -13,7 +10,7 @@ impl ArgGenPassphrase {
/// Generate a cryptographically secure passphrase that is easily
/// rememberable using diceware.
pub fn gen_passphrase() -> String {
chbs::passphrase(PASSPHRASE_WORDS)
chbs::passphrase()
}
}