captcha_rust

Crates.iocaptcha_rust
lib.rscaptcha_rust
version0.1.3
sourcesrc
created_at2021-12-01 02:28:48.037744
updated_at2021-12-01 05:47:56.118331
descriptionDynamically generate verification code pictures
homepagehttps://github.com/duzhaosongyue/captcha_rust
repositoryhttps://github.com/duzhaosongyue/captcha_rust
max_upload_size
id490069
size297,595
(duzhaosongyue)

documentation

https://github.com/duzhaosongyue/captcha_rust/blob/main/README.md

README

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);
}
Commit count: 26

cargo fmt