# 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 = "mediarium-ocr"
version = "0.1.0"
authors = ["Ray <i@mk1.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ONNX-based OCR helpers for Mediarium captcha recognition"
readme = false
license = "LGPL-3.0-or-later"
repository = "https://github.com/so1ve/mediarium"

[lib]
name = "mediarium_ocr"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.image]
version = "0.25"
features = ["bmp"]
default-features = false

[dependencies.ort]
version = "2.0.0-rc.11"

[dependencies.serde_json]
version = "1"

[dependencies.tracing]
version = "0.1"

[lints.clippy]
all = "warn"
default-trait-access = "warn"
enum-glob-use = "warn"
fn-params-excessive-bools = "warn"
format-collect = "warn"
format-push-string = "warn"
implicit-clone = "warn"
items-after-statements = "warn"
manual-let-else = "warn"
manual-string-new = "warn"
match-same-arms = "warn"
match-wildcard-for-single-variants = "warn"
missing-const-for-fn = "warn"
must-use-candidate = "warn"
needless-pass-by-value = "warn"
redundant-pub-crate = "warn"
semicolon-if-nothing-returned = "warn"
single-match-else = "warn"
struct-excessive-bools = "warn"
uninlined-format-args = "warn"
unnecessary-literal-bound = "warn"
use-self = "warn"
verbose-file-reads = "warn"
wildcard-imports = "warn"
