[package]
edition = "2021"
rust-version = "1.87"
name = "haystackfm"
version = "0.3.0"
authors = ["sriram98v <sriram.98v@gmail.com>"]
build = false
exclude = [
"/web",
"/docs",
"/.github",
"/graphify-out",
"/.pi",
"/.claude",
"/CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GPU-accelerated FM-index construction for DNA sequences via WebGPU"
documentation = "https://docs.rs/haystackfm"
readme = "README.md"
keywords = [
"fm-index",
"bioinformatics",
"webgpu",
"dna",
"suffix-array",
]
categories = [
"algorithms",
"science",
"data-structures",
"wasm",
]
license = "Apache-2.0"
repository = "https://github.com/sriram98v/haystackfm"
[package.metadata.wasm-pack.profile.release]
wasm-opt = [
"-Oz",
"--enable-mutable-globals",
]
[features]
cpu = []
default = ["cpu"]
gpu = [
"dep:wgpu",
"dep:bytemuck",
"dep:pollster",
"dep:futures-channel",
]
wasm = [
"gpu",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:js-sys",
"dep:web-sys",
]
[lib]
name = "haystackfm"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "cpu_profile"
path = "examples/cpu_profile.rs"
[[test]]
name = "bidir_correctness"
path = "tests/bidir_correctness.rs"
[[test]]
name = "cpu_correctness"
path = "tests/cpu_correctness.rs"
[[test]]
name = "cpu_gpu_bench_correctness"
path = "tests/cpu_gpu_bench_correctness.rs"
[[test]]
name = "cpu_gpu_equivalence"
path = "tests/cpu_gpu_equivalence.rs"
[[test]]
name = "gpu_correctness"
path = "tests/gpu_correctness.rs"
[[test]]
name = "gpu_mem_parity"
path = "tests/gpu_mem_parity.rs"
[[test]]
name = "gpu_mem_positions_parity"
path = "tests/gpu_mem_positions_parity.rs"
[[test]]
name = "locate_gpu_parity"
path = "tests/locate_gpu_parity.rs"
[[test]]
name = "locate_iupac_parity"
path = "tests/locate_iupac_parity.rs"
[[test]]
name = "mem_iupac_parity"
path = "tests/mem_iupac_parity.rs"
[[test]]
name = "proptest_correctness"
path = "tests/proptest_correctness.rs"
[[test]]
name = "query_tests"
path = "tests/query_tests.rs"
[[test]]
name = "seq_ids"
path = "tests/seq_ids.rs"
[[bench]]
name = "bench_utils"
path = "benches/bench_utils.rs"
[[bench]]
name = "construction"
path = "benches/construction.rs"
harness = false
[[bench]]
name = "cpu_vs_gpu"
path = "benches/cpu_vs_gpu.rs"
harness = false
[[bench]]
name = "locate_bench"
path = "benches/locate_bench.rs"
harness = false
required-features = ["gpu"]
[[bench]]
name = "mem_bench"
path = "benches/mem_bench.rs"
harness = false
required-features = ["gpu"]
[[bench]]
name = "mem_positions_bench"
path = "benches/mem_positions_bench.rs"
harness = false
required-features = ["gpu"]
[[bench]]
name = "query"
path = "benches/query.rs"
harness = false
[dependencies.bincode]
version = "1"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
optional = true
[dependencies.futures-channel]
version = "0.3"
optional = true
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.pollster]
version = "0.4"
optional = true
[dependencies.psacak]
version = "0.1.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3"
features = ["console"]
optional = true
[dependencies.wgpu]
version = "24"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.pollster]
version = "0.4"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rand]
version = "0.9"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1