Forráskód Böngészése

Update chbs dependency to v0.0.8

timvisee 6 éve
szülő
commit
a50e4e2300
3 módosított fájl, 7 hozzáadás és 8 törlés
  1. 5 3
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 1 4
      src/cmd/arg/gen_passphrase.rs

+ 5 - 3
Cargo.lock

@@ -132,9 +132,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 
 
 [[package]]
 [[package]]
 name = "chbs"
 name = "chbs"
-version = "0.0.1"
+version = "0.0.8"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 dependencies = [
 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)",
  "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"
 name = "ffsend"
 version = "0.0.8"
 version = "0.0.8"
 dependencies = [
 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)",
  "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)",
  "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)",
  "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 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 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 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 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 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"
 "checksum clipboard 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b9b4623b47d8637fc9d47564583d4cc01eb8c8e34e26b2bf348bf4b036acb657"

+ 1 - 1
Cargo.toml

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

+ 1 - 4
src/cmd/arg/gen_passphrase.rs

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