- Move tests into tests directory.
- Use a reproducible
rand_chacha::ChaCha12Rng
instead of anrand::prelude::StdRng
. In the currentrand
version,0.8.5
,StdRng
isChaCha12Rng
, but it may change in the future, as written in https://docs.rs/rand/0.8.5/rand/rngs/struct.StdRng.html.
Bumping diceware_wordlists
version in the dependencies.
- Move wordlists to their own permissively licensed
diceware_wordlists
crate.
- Check for legal die digit (not less than 1 not more than 6).
- Move code from
/src/bin/diceware.rs
,/tests/tests.rs
, and/src/lib.rs
into/src/main.rs
.
- Add physical dice roll input flag (
-r
/--dicerolls
). Accepts input from standard input.
- Add the EFF wordlists as shown in https://www.eff.org/dice.
- Make EFF Long Wordlist the default.
- Remove the
--beale
/--reinhold
/--minilock
flags.
- Add the
-l
/--wordlist
option. - Warn that the
--beale
/--reinhold
/--minilock
flags would be deprecated in the next minor version.
- Move some code from main function to its own function in
src/lib.rs
. - Remove vestigial naming used when we were stupidly overusing the type system.
- Add test for the MiniLock wordlist.
- Move predefined wordlists to their own
diceware::wordlists
module. - Add a note about the
--wordlist-file
commandline option.
- Switch from a the old and very very weird Struct definition per wordlist to the braindead simple array of
&str
s. - Add a command line option that takes a filepath to a newline delimited wordlist file so that you could use your own wordlist.
- Deduplicate code implementing the
Word
trait using macros. (Thanks @vbrandl!) - Deduplicate tests code using macros. (Thanks @vbrandl, again!)
- Deduplicate
build.rs
code using a function. How not exciting.
- No, really, fix tests. (Added the
Word
trait)
- Fix tests. (Was broken due to a changed ThreadRng output)
- Deduplicate word printing code by using the trait
Word
and moving that code into a a generic function which uses that trait. - Move to 2021 edition of Rustlang. Add a commented out wordlist command line option for a future version.
- Remove some commented out code.
- Use the
Self
keyword inimpl
s instead of the type's concrete name. - Add this CHANGELOG.