Crates.io | random-word-generator |
lib.rs | random-word-generator |
version | 0.1.0 |
source | src |
created_at | 2023-05-18 22:25:58.646445 |
updated_at | 2023-05-18 22:25:58.646445 |
description | Get a raondom word in different language -- Unofficial |
homepage | https://github.com/jacopolucarelli/random-word-generator |
repository | https://github.com/jacopolucarelli/random-word-generator |
max_upload_size | |
id | 868372 |
size | 7,720 |
random-word-generator is a Rust Crate for dealing with random word generation.
Use the package manager cargo to install random-word-generator.
cargo add random-word-generator
fn main() {
// returns &str that contains an italian random word
random_word_generator::get_random_word(random_word_generator::Language::ITA).get_word();
// ITA - italian
// ENG - english
// ESP - spanish
// GER - german
// FRE - french
}