2 releases

0.1.1 Jun 9, 2019
0.1.0 Jun 9, 2019

#3 in #spongebob

MIT license

3KB

Crates.io

sponge_string_rs

HeY tHeRe! YoU cAn UsE tHiS cRaTe To CrEaTe SpOnGe TeXt.

InStAlLaTiOn

AdD tHe FoLlOwInG iN yOuR Cargo.toml:

[dependencies.sponge_string]
version = "*"

YoU cAn RePlAcE * wItH tHe VeRsIoN aT tHe ToP oF tHiS rEaDmE.

ExAmPlE

extern crate sponge_string;

use sponge_string::jumble;

fn main() {
    let stdin = std::io::stdin();

    loop {
        let mut line = "".to_owned();

        match stdin.read_line(&mut line) {
            Ok(_) => (),
            Err(e) => {
                println!("The following error has occured: {:?}", e);
                continue
            }
        }

        println!("{}", jumble(&line));
    }
}

No runtime deps