4 releases

0.1.3 Dec 1, 2021
0.1.2 Dec 1, 2021
0.1.1 Dec 1, 2021
0.1.0 Dec 1, 2021

#877 in Images

Download history 17/week @ 2024-04-08 21/week @ 2024-04-15 24/week @ 2024-04-22 13/week @ 2024-04-29 16/week @ 2024-05-06 22/week @ 2024-05-13 22/week @ 2024-05-20 21/week @ 2024-05-27 23/week @ 2024-06-03 16/week @ 2024-06-10 16/week @ 2024-06-17 23/week @ 2024-06-24 32/week @ 2024-07-01 5/week @ 2024-07-08 8/week @ 2024-07-15 23/week @ 2024-07-22

68 downloads per month

MIT license

170KB
117 lines

captcha_rust

captcha_rust is a library that generates picture verification codes. Example pictures are as follows:

1.png 2.png 3.png
4.png 5.png 6.png

Example

Add the following dependency to the Cargo.toml file:

[dependencies]
captcha_rust =  "0.1.3"

And then get started in your main.rs:

use captcha_rust::Captcha;

fn main() {
    let a = Captcha::new(5,130,40);
    println!("test:{},base_img:{}", a.text, a.base_img);
}

Dependencies

~11MB
~186K SLoC