rankit 0.1.2

Learning to Rank: differentiable ranking, LTR losses (RankNet, LambdaRank, ApproxNDCG, ListNet, ListMLE), trainers, and IR evaluation metrics
# 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"
rust-version = "1.74"
name = "rankit"
version = "0.1.2"
authors = ["Arc <attobop@gmail.com>"]
build = false
exclude = ["examples/soft_dtw_ranking.rs"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Learning to Rank: differentiable ranking, LTR losses (RankNet, LambdaRank, ApproxNDCG, ListNet, ListMLE), trainers, and IR evaluation metrics"
homepage = "https://github.com/arclabs561/rankit"
documentation = "https://docs.rs/rankit"
readme = "README.md"
keywords = [
    "learning-to-rank",
    "ranking",
    "ndcg",
    "lambdarank",
    "ir-eval",
]
categories = [
    "algorithms",
    "science",
    "mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/rankit"

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

[features]
default = [
    "eval",
    "losses",
]
eval = ["dep:anyhow"]
gumbel = ["dep:rand"]
losses = []
parallel = ["dep:rayon"]
pipeline = [
    "dep:textprep",
    "dep:postings",
    "dep:rankfns",
]
serde = [
    "dep:serde",
    "dep:serde_json",
]

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

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

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

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

[[example]]
name = "retrieval_pipeline"
path = "examples/retrieval_pipeline.rs"
required-features = [
    "pipeline",
    "eval",
]

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

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.fynch]
version = "0.1.0"

[dependencies.postings]
version = "0.1.1"
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rankfns]
version = "0.1.1"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.textprep]
version = "0.1.2"
optional = true

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.pare]
version = "0.1"

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

[dev-dependencies.tempfile]
version = "3"

[lints.clippy]
needless_range_loop = "allow"