# 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 = "embed_anything" version = "0.4.13" authors = ["Akshay Ballal "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Embed anything at lightning speed" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/StarlightSearch/EmbedAnything" [lib] name = "embed_anything" path = "src/lib.rs" [[example]] name = "audio" path = "examples/audio.rs" [[example]] name = "bert" path = "examples/bert.rs" [[example]] name = "bert_ort" path = "examples/bert_ort.rs" [[example]] name = "clip" path = "examples/clip.rs" [[example]] name = "cloud" path = "examples/cloud.rs" [[example]] name = "colpali" path = "examples/colpali.rs" [[example]] name = "splade" path = "examples/splade.rs" [[example]] name = "web_embed" path = "examples/web_embed.rs" [dependencies.accelerate-src] version = "0.3.2" optional = true [dependencies.anyhow] version = "1.0.89" [dependencies.base64] version = "0.22.1" [dependencies.byteorder] version = "1.5.0" [dependencies.candle-core] version = "0.7.2" [dependencies.candle-flash-attn] version = "0.7.2" optional = true [dependencies.candle-nn] version = "0.7.2" [dependencies.candle-transformers] version = "0.7.2" [dependencies.chrono] version = "0.4.38" [dependencies.futures] version = "0.3.30" [dependencies.half] version = "2.4.1" [dependencies.hf-hub] version = "0.3.2" [dependencies.image] version = "0.25.1" [dependencies.indicatif] version = "0.17.8" [dependencies.intel-mkl-src] version = "0.8.1" optional = true [dependencies.itertools] version = "0.13.0" [dependencies.markdown-parser] version = "0.1.2" [dependencies.markdown_to_text] version = "1.0.0" [dependencies.ndarray] version = "0.16.1" [dependencies.ndarray-linalg] version = "0.16.0" [dependencies.ort] version = "=2.0.0-rc.8" features = ["cuda"] [dependencies.pdf-extract] version = "0.7.7" [dependencies.pdf2image] version = "0.1.2" [dependencies.rand] version = "0.8.5" [dependencies.rayon] version = "1.8.1" [dependencies.regex] version = "1.10.3" [dependencies.reqwest] version = "0.12.2" features = [ "json", "blocking", ] [dependencies.rusty-tesseract] version = "1.1.0" [dependencies.scraper] version = "0.20.0" [dependencies.serde] version = "1.0.196" features = ["derive"] [dependencies.serde_json] version = "1.0.112" [dependencies.statistical] version = "1.0.0" [dependencies.strum] version = "0.26.1" [dependencies.strum_macros] version = "0.26" [dependencies.symphonia] version = "0.5.3" features = ["all"] [dependencies.text-cleaner] version = "0.1.0" [dependencies.text-splitter] version = "0.18.1" features = ["tokenizers"] [dependencies.tokenizers] version = "0.20.2" features = ["http"] [dependencies.tokio] version = "1.40.0" features = [ "macros", "rt-multi-thread", ] [dependencies.tracing] version = "0.1.37" [dependencies.url] version = "2.5.0" [dependencies.walkdir] version = "2.4.0" [dev-dependencies.clap] version = "4.5.20" features = ["derive"] [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.tempdir] version = "0.3.7" [features] accelerate = [ "dep:accelerate-src", "candle-core/accelerate", "candle-nn/accelerate", "candle-transformers/accelerate", ] cuda = [ "candle-core/cuda", "candle-nn/cuda", "candle-core/cuda", ] cudnn = ["candle-core/cudnn"] default = [] flash-attn = [ "cuda", "candle-transformers/flash-attn", "dep:candle-flash-attn", ] load-dynamic = ["ort/load-dynamic"] mkl = [ "dep:intel-mkl-src", "candle-nn/mkl", "candle-transformers/mkl", "candle-core/mkl", ]