toipe 0.5.0

A trusty terminal typing tester.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::PathBuf;

use toipe::textgen::{RawWordSelector, WordSelector};
use toipe::wordlists::OS_WORDLIST_PATH;

fn main() {
    let mut word_selector = RawWordSelector::from_path(PathBuf::from(OS_WORDLIST_PATH)).unwrap();

    let word = word_selector.new_word().unwrap();
    println!("{}", word);
}