Crates.io | captcha_rust |
lib.rs | captcha_rust |
version | 0.1.3 |
source | src |
created_at | 2021-12-01 02:28:48.037744 |
updated_at | 2021-12-01 05:47:56.118331 |
description | Dynamically generate verification code pictures |
homepage | https://github.com/duzhaosongyue/captcha_rust |
repository | https://github.com/duzhaosongyue/captcha_rust |
max_upload_size | |
id | 490069 |
size | 297,595 |
captcha_rust is a library that generates picture verification codes. Example pictures are as follows:
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);
}