joyful 0.1.1

Generate delightful, random word combinations - Rust port of the joyful TypeScript library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use joyful::{words::MAX_SEGMENTS, *};

fn main() {
    println!("max segments: {}", MAX_SEGMENTS.to_owned());
    println!("default: {}", joyful(Default::default()).unwrap());
    let options = Options {
        segments: 3,
        max_length: Some(32),
        ..Default::default()
    };

    let result = joyful(options).unwrap();
    println!("constrained: {}", result);
}