Crates.io | sponge_string |
lib.rs | sponge_string |
version | 0.1.1 |
source | src |
created_at | 2019-06-09 17:32:11.324333 |
updated_at | 2019-06-09 18:02:29.365765 |
description | SpOnGe StRiNg In RuSt |
homepage | |
repository | https://github.com/dancojocaru2000/sponge_string_rs |
max_upload_size | |
id | 140023 |
size | 3,874 |
HeY tHeRe! YoU cAn UsE tHiS cRaTe To CrEaTe SpOnGe TeXt.
AdD tHe FoLlOwInG iN yOuR Cargo.toml
:
[dependencies.sponge_string]
version = "*"
YoU cAn RePlAcE *
wItH tHe VeRsIoN aT tHe ToP oF tHiS rEaDmE.
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));
}
}