captcha-engine 0.1.0

ONNX-based captcha recognition engine
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[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"