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 = "2021"
name = "ocrs"
version = "0.13.0"
authors = ["Robert Knight"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OCR engine"
homepage = "https://github.com/robertknight/ocrs"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/robertknight/ocrs"

[features]
default = [
    "export-wasm",
    "rten",
]
export-wasm = []
onnx = ["rten/onnx_format"]
rten = ["rten/rten_format"]

[lib]
name = "ocrs"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

[[example]]
name = "hello_ocr"
path = "examples/hello_ocr.rs"

[dependencies.anyhow]
version = "1.0.102"

[dependencies.rayon]
version = "1.12.0"

[dependencies.rten]
version = "0.26.0"
default-features = false

[dependencies.rten-imageproc]
version = "0.26.0"

[dependencies.rten-tensor]
version = "0.26.0"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.fastrand]
version = "2.4.1"

[dev-dependencies.image]
version = "0.25.10"
features = [
    "png",
    "jpeg",
    "webp",
]
default-features = false

[dev-dependencies.lexopt]
version = "0.3.2"

[dev-dependencies.rten]
version = "0.26.0"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.93"