# 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 = "surya" version = "0.4.0" authors = ["Jiayu Liu "] default-run = "surya" description = "Surya is a multilingual document OCR toolkit, original implementation in Python and PyTorch" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/jimexist/surya-rs" [[bin]] name = "surya" path = "src/bin/main.rs" required-features = ["cli"] [dependencies.accelerate-src] version = "0.3.2" optional = true [dependencies.anyhow] version = "1.0.79" optional = true [dependencies.candle-core] version = "0.3.2" [dependencies.candle-nn] version = "0.3.2" [dependencies.clap] version = "4.4.18" features = ["derive"] optional = true [dependencies.env_logger] version = "0.11.0" [dependencies.hf-hub] version = "0.3.2" [dependencies.intel-mkl-src] version = "0.8.1" features = ["mkl-static-lp64-iomp"] optional = true [dependencies.log] version = "0.4.20" [dependencies.opencv] version = "0.88.8" features = [ "imgproc", "imgcodecs", ] default-features = false [dependencies.serde] version = "1.0.196" [dependencies.serde_json] version = "1.0.112" [dependencies.thiserror] version = "1.0.56" [features] accelerate = [ "accelerate-src", "candle-core/accelerate", "candle-nn/accelerate", ] cli = [ "clap", "anyhow", ] default = ["cli"] metal = [ "candle-core/metal", "candle-nn/metal", ] mkl = [ "intel-mkl-src", "candle-core/mkl", "candle-nn/mkl", ]