[package]
edition = "2024"
name = "captcha-engine"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ONNX-based captcha recognition engine"
readme = "README.md"
license = "MIT"
repository = "https://github.com/milangress/voucher-captcha-system"
[features]
default = ["download"]
download = ["dep:reqwest"]
embed-model = []
[lib]
name = "captcha_engine"
path = "src/lib.rs"
[[bin]]
name = "test_model"
path = "src/bin/test_model.rs"
[dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
]
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.ndarray]
version = "0.17"
[dependencies.ort]
version = "2.0.0-rc.11"
features = [
"ndarray",
"download-binaries",
"tls-native",
]
[dependencies.reqwest]
version = "0.13"
features = ["blocking"]
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"fs",
"io-util",
"rt-multi-thread",
]
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies.ort]
version = "2.0.0-rc.11"
features = ["cuda"]
[target.'cfg(target_os = "macos")'.dependencies.ort]
version = "2.0.0-rc.11"
features = ["coreml"]
[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "deny"
unused_import_braces = "warn"
unused_qualifications = "warn"