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

#1042 in Images

Download history 4/week @ 2024-11-13 12/week @ 2024-11-20 5/week @ 2024-11-27 8/week @ 2024-12-04 36/week @ 2024-12-11 14/week @ 2024-12-18 16/week @ 2025-01-01 21/week @ 2025-01-08 29/week @ 2025-01-15 15/week @ 2025-01-22 12/week @ 2025-01-29 41/week @ 2025-02-05 26/week @ 2025-02-12 40/week @ 2025-02-19 54/week @ 2025-02-26

164 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

~12MB
~190K SLoC