# 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 = "fynch"
version = "0.3.1"
authors = ["Arc <attobop@gmail.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Differentiable sorting and ranking: PAVA, Fenchel-Young losses, and O(n log n) FastSoftSort"
homepage = "https://github.com/arclabs561/fynch"
documentation = "https://docs.rs/fynch"
readme = "README.md"
keywords = [
    "sorting",
    "ranking",
    "differentiable",
    "fenchel-young",
    "fastsoftsort",
]
categories = [
    "algorithms",
    "science",
    "mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/fynch"

[features]
default = []
gumbel = [
    "dep:drawset",
    "dep:rand",
]
logp = ["dep:logp"]

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

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

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

[[test]]
name = "blondel_reference"
path = "tests/blondel_reference.rs"

[[test]]
name = "curvature_props"
path = "tests/curvature_props.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[test]]
name = "sorting_network_props"
path = "tests/sorting_network_props.rs"

[[bench]]
name = "fy_bench"
path = "benches/fy_bench.rs"
harness = false

[[bench]]
name = "sinkhorn_bench"
path = "benches/sinkhorn_bench.rs"
harness = false

[dependencies.drawset]
version = "0.1.0"
optional = true

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

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

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

[dependencies.thiserror]
version = "2.0"

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

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

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

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.rankit]
version = "0.1"
features = ["losses"]

[dev-dependencies.serde_json]
version = "1.0"
