[package]
name = "divsufsort-rs"
version = "0.3.0"
edition = "2024"
description = "Pure Rust port of libdivsufsort suffix array construction library"
license = "MIT"

[package.metadata.release]
sign-commit = false
sign-tag = false
push = true
publish = false

[features]
# Enable C libdivsufsort FFI for the bench_compare benchmark.
# Requires the vendor/libdivsufsort git submodule to be checked out.
# Usage: cargo bench --bench bench_compare --features c-bench
c-bench = []

[dependencies]
rayon = "1"

[build-dependencies]
cc = "1"

[dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
pprof = { version = "0.15", features = ["flamegraph", "criterion"] }

[profile.bench]
debug = true

[[bench]]
name = "bench"
harness = false

[[bench]]
name = "bench_light"
harness = false

[[bench]]
name = "bench_compare"
harness = false
