[package]
edition = "2024"
rust-version = "1.85"
name = "flash_rerank"
version = "0.2.0"
authors = ["The Sauce Suite"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core reranking engine — cross-encoder and ColBERT inference via ONNX Runtime"
readme = false
keywords = [
"reranking",
"semantic-search",
"cross-encoder",
"search",
"nlp",
]
categories = [
"algorithms",
"text-processing",
"science",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/TheSauceSuite/Flash-Rerank-Rust-Python-WASM-CLI-"
resolver = "2"
[features]
cuda = []
default = []
tensorrt = []
[lib]
name = "flash_rerank"
path = "src/lib.rs"
[[example]]
name = "gpu_bench_models"
path = "examples/gpu_bench_models.rs"
[[example]]
name = "gpu_check"
path = "examples/gpu_check.rs"
[[example]]
name = "micro_profile"
path = "examples/micro_profile.rs"
[[example]]
name = "pipeline_benchmark"
path = "examples/pipeline_benchmark.rs"
[[example]]
name = "profile_pipeline"
path = "examples/profile_pipeline.rs"
[[test]]
name = "accuracy_snapshots"
path = "tests/accuracy_snapshots.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "snapshots"
path = "tests/snapshots.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[dependencies.hf-hub]
version = "0.4"
features = ["tokio"]
[dependencies.indicatif]
version = "0.17"
[dependencies.lru]
version = "0.12"
[dependencies.memmap2]
version = "0.9"
[dependencies.ort]
version = "2.0.0-rc.12"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokenizers]
version = "0.21"
features = ["fancy-regex"]
default-features = false
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.dirs]
version = "6"
[dev-dependencies.insta]
version = "1"
features = ["yaml"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]