[package]
edition = "2021"
rust-version = "1.80"
name = "postings"
version = "0.2.10"
authors = ["Arc <attobop@gmail.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Inverted-index postings lists and codecs."
homepage = "https://github.com/arclabs561/postings"
documentation = "https://github.com/arclabs561/postings#readme"
readme = "README.md"
keywords = [
"search",
"postings",
"inverted-index",
"codec",
]
categories = [
"text-processing",
"algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/postings"
[features]
cnk-compression = [
"dep:cnk",
"positional",
]
default = []
persistence = [
"dep:durability",
"dep:postcard",
"serde",
]
positional = []
raw-segment = ["dep:crc32fast"]
sbits = ["dep:sbits"]
serde = ["dep:serde"]
[lib]
name = "postings"
path = "src/lib.rs"
[[example]]
name = "durable_roundtrip"
path = "examples/durable_roundtrip.rs"
[[example]]
name = "raw_segment_file"
path = "examples/raw_segment_file.rs"
required-features = ["raw-segment"]
[[example]]
name = "splade_weighted"
path = "examples/splade_weighted.rs"
[[test]]
name = "durability_roundtrip"
path = "tests/durability_roundtrip.rs"
[[test]]
name = "near_parity"
path = "tests/near_parity.rs"
required-features = ["positional"]
[[bench]]
name = "query"
path = "benches/query.rs"
harness = false
[[bench]]
name = "raw_file_topk"
path = "benches/raw_file_topk.rs"
harness = false
required-features = ["raw-segment"]
[dependencies.cnk]
version = "0.2.0"
optional = true
[dependencies.crc32fast]
version = "1.4"
optional = true
[dependencies.durability]
version = "0.6"
optional = true
[dependencies.postcard]
version = "1.0"
optional = true
[dependencies.sbits]
version = "0.2"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.durability]
version = "0.6"
[dev-dependencies.proptest]
version = "1.9"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.tempfile]
version = "3.10"