2024-01-29 21:24:35 +01:00
|
|
|
[package]
|
|
|
|
name = "salvo-captcha"
|
|
|
|
version = "0.1.0"
|
|
|
|
rust-version = "1.75.0"
|
|
|
|
edition = "2021"
|
2024-02-08 11:01:35 +01:00
|
|
|
authors = ["Awiteb <a@4rs.nl>"]
|
2024-01-29 21:24:35 +01:00
|
|
|
description = "A captcha middleware for Salvo framework."
|
|
|
|
license = "MIT"
|
2024-08-10 13:55:26 +02:00
|
|
|
repository = "https://git.4rs.nl/awiteb/salvo-captcha"
|
2024-01-29 21:24:35 +01:00
|
|
|
documentation = "https://docs.rs/salvo-captcha"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["salvo", "captcha", "middleware"]
|
|
|
|
categories = ["web-programming", "network-programming"]
|
|
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
2024-08-09 21:58:45 +02:00
|
|
|
salvo_core = { version = ">= 0.65, < 0.69", default-features = false }
|
2024-08-12 22:14:06 +02:00
|
|
|
log = "0.4"
|
|
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
tokio = { version = "1", default-features = false }
|
|
|
|
cacache = { version = "13", default-features = false, features = ["tokio-runtime", "mmap"], optional = true }
|
|
|
|
captcha = { version = "0.0.9", default-features = false, optional = true}
|
|
|
|
either = { version = "1.13.0", default-features = false }
|
2024-01-29 21:24:35 +01:00
|
|
|
|
|
|
|
[features]
|
2024-08-12 22:14:06 +02:00
|
|
|
cacache-storage = ["dep:cacache"]
|
|
|
|
simple_generator = ["dep:captcha"]
|
2024-01-29 21:24:35 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-08-09 21:58:45 +02:00
|
|
|
tempfile = "3.9"
|
|
|
|
tokio = { version = "1.35", features = ["macros", "rt-multi-thread"] }
|
|
|
|
base64 = "0.21"
|
|
|
|
salvo = { version = ">= 0.65, < 0.69", default-features = false, features = ["server", "http1","http2", "affix"] }
|
2024-08-10 22:21:54 +02:00
|
|
|
rstest = "0.22.0"
|
2024-08-09 22:14:39 +02:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "simple_login"
|
2024-08-12 22:14:06 +02:00
|
|
|
required-features = ["simple_generator"]
|