challenge-prompt 0.2.0

challenge-prompt makes the user pause before doing something
Documentation

challenge-prompt

challenge-prompt makes the user pause before doing something.

Crates.io

Command line tool

Install:

$ cargo install challenge-prompt

Run:

$ challenge-prompt
Solve: (5 + 15) mod 5 = ?

Library example

Add this to your Cargo.toml:

[dependencies]
challenge-prompt = "0.2"

and this to your crate root:

extern crate challenge_prompt;

Basic example:

extern crate challenge_prompt;
    
if !challenge_prompt::Challenge::Arithmetic.prompt() {
    panic!("user failed the challenge")
}

See also the full documentation.