[package]
edition = "2021"
rust-version = "1.85"
name = "docs-search"
version = "0.3.0"
authors = ["Wyatt Au <wyatt_au@protonmail.com>"]
build = false
exclude = [
".github/",
"supply-chain/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client-side search index for docs sites: FST term dictionary, tf postings with full BM25, optional quantized-vector section (vectors feature), wasm32-clean bytes-in/bytes-out format (docs-core extension program, SPEC.md REQ-Q)"
homepage = "https://github.com/WyattAu/docs-search"
documentation = "https://docs.rs/docs-search"
readme = "README.md"
keywords = [
"search",
"fst",
"bm25",
"wasm",
"documentation",
]
categories = [
"text-processing",
"data-structures",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/docs-search"
[package.metadata.layers]
tier = "L0"
[features]
vectors = []
[lib]
name = "docs_search"
crate-type = ["rlib"]
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "wasm_reader"
path = "tests/wasm_reader.rs"
[dependencies.fst]
version = "0.4"
[dependencies.thiserror]
version = "2"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.wasmtime]
version = "26"
features = [
"cranelift",
"runtime",
"std",
]
default-features = false
[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"
[profile.release]
lto = "thin"
codegen-units = 1
strip = true