# 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 = "rankops"
version = "0.1.6"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Operations on ranked lists: fusion (RRF, Copeland, CombMNZ, DBSF, 14 methods), reranking (MaxSim/ColBERT, MMR, DPP), evaluation (NDCG, MAP, MRR), diagnostics, pipeline builder."
readme = "README.md"
keywords = [
    "rerank",
    "rrf",
    "retrieval",
    "rankops",
    "fusion",
]
categories = [
    "algorithms",
    "mathematics",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/rankops"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["rerank"]
hierarchical = ["dep:kodama"]
innr = ["rerank"]
pareto = ["dep:pare"]
rerank = ["dep:innr"]
serde = ["dep:serde"]

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

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

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

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

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

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

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

[dependencies.innr]
version = "0.2"
optional = true

[dependencies.kodama]
version = "0.3"
optional = true

[dependencies.pare]
version = "0.2.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dev-dependencies.criterion]
version = "0.7"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.9"
