use crate::DicewareWordlist;
use cfg_if::cfg_if;
use lazy_static::lazy_static;
cfg_if! {
if #[cfg(feature = "diceware-eff-large")] {
pub const EFF_LARGE_WORDLIST: [(&'static str, &'static str); 7776] =
include!("../../static/wordlists/diceware/converted/eff_large_wordlist.txt.json");
lazy_static! {
pub static ref EFF_LARGE: DicewareWordlist = {
let boxed = Box::new(EFF_LARGE_WORDLIST);
DicewareWordlist::new(
"EFF Large Diceware Wordlist".to_string(),
5, 6, boxed
)
};
}
}
}
cfg_if! {
if #[cfg(feature = "diceware-eff-short-v1")] {
pub const EFF_SHORT_V1_WORDLIST: [(&'static str, &'static str); 1296] =
include!("../../static/wordlists/diceware/converted/eff_short_wordlist_1.txt.json");
lazy_static! {
pub static ref EFF_SHORT_V1: DicewareWordlist = {
let boxed = Box::new(EFF_SHORT_V1_WORDLIST);
DicewareWordlist::new(
"EFF Short Diceware Wordlist V1".to_string(),
4, 6, boxed
)
};
}
}
}
cfg_if! {
if #[cfg(feature = "diceware-eff-short-v2")] {
pub const EFF_SHORT_V2_WORDLIST: [(&'static str, &'static str); 1296] =
include!("../../static/wordlists/diceware/converted/eff_short_wordlist_2_0.txt.json");
lazy_static! {
pub static ref EFF_SHORT_V2: DicewareWordlist = {
let boxed = Box::new(EFF_SHORT_V2_WORDLIST);
DicewareWordlist::new(
"EFF Short Diceware Wordlist V2".to_string(),
4, 6, boxed
)
};
}
}
}
cfg_if! {
if #[cfg(feature = "diceware-reinhold")] {
pub const REINHOLD_WORDLIST: [(&'static str, &'static str); 7776] =
include!("../../static/wordlists/diceware/converted/diceware.wordlist.asc.json");
lazy_static! {
pub static ref REINHOLD: DicewareWordlist = {
let boxed = Box::new(REINHOLD_WORDLIST);
DicewareWordlist::new(
"Reinhold Diceware Wordlist".to_string(),
5, 6, boxed
)
};
}
}
}
cfg_if! {
if #[cfg(feature = "diceware-beale")] {
pub const BEALE_WORDLIST: [(&'static str, &'static str); 7776] =
include!("../../static/wordlists/diceware/converted/beale.wordlist.asc.json");
lazy_static! {
pub static ref BEALE: DicewareWordlist = {
let boxed = Box::new(BEALE_WORDLIST);
DicewareWordlist::new(
"Beale Diceware Wordlist".to_string(),
5, 6, boxed
)
};
}
}
}