[package]
edition = "2021"
rust-version = "1.92"
name = "pithdb"
version = "0.4.0"
build = false
exclude = [
".superpowers/",
".claude/",
".remember/",
".madelog/",
".github/",
"docs/",
"eval/",
".pithignore",
"PRD.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pith: lightweight local vector database with built-in ONNX embeddings and an MCP server for code search"
readme = "README.md"
keywords = [
"vector-database",
"embeddings",
"onnx",
"search",
]
categories = ["database-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vanjamodrinjak21/pith"
[features]
default = [
"onnx",
"mcp",
"tui",
]
mcp = [
"dep:rmcp",
"dep:tokio",
"dep:serde",
]
onnx = [
"dep:ort",
"dep:tokenizers",
]
test-hooks = []
tui = [
"dep:ratatui",
"dep:crossterm",
]
[lib]
name = "pithdb"
path = "src/lib.rs"
[[bin]]
name = "pith"
path = "src/main.rs"
[[example]]
name = "search_project"
path = "examples/search_project.rs"
required-features = ["onnx"]
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "embed"
path = "tests/embed.rs"
[[test]]
name = "incremental"
path = "tests/incremental.rs"
[[test]]
name = "index_reference"
path = "tests/index_reference.rs"
[[test]]
name = "ingest"
path = "tests/ingest.rs"
[[test]]
name = "lock_fork"
path = "tests/lock_fork.rs"
[[test]]
name = "mcp"
path = "tests/mcp.rs"
[[test]]
name = "storage"
path = "tests/storage.rs"
[[test]]
name = "storage_heap"
path = "tests/storage_heap.rs"
[[test]]
name = "tui"
path = "tests/tui.rs"
[[bench]]
name = "index"
path = "benches/index.rs"
harness = false
required-features = ["onnx"]
[[bench]]
name = "search"
path = "benches/search.rs"
harness = false
[dependencies.blake3]
version = "1.8.7"
[dependencies.bytemuck]
version = "1.25.2"
[dependencies.clap]
version = "4.6.7"
features = ["derive"]
[dependencies.crossterm]
version = "0.29.0"
features = ["events"]
optional = true
default-features = false
[dependencies.ignore]
version = "0.4.33"
[dependencies.memmap2]
version = "0.9.11"
[dependencies.ort]
version = "=2.0.0-rc.14"
features = [
"std",
"download-binaries",
"tls-rustls",
]
optional = true
default-features = false
[dependencies.ratatui]
version = "0.30.2"
features = ["crossterm"]
optional = true
default-features = false
[dependencies.rmcp]
version = "3.5.1"
features = [
"server",
"macros",
"transport-io",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true
[dependencies.sha2]
version = "0.11.1"
[dependencies.tempfile]
version = "3.27.0"
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tokenizers]
version = "0.23.2"
features = ["fancy-regex"]
optional = true
default-features = false
[dependencies.tokio]
version = "1.53.3"
features = [
"rt",
"io-std",
"time",
]
optional = true
default-features = false
[dependencies.ureq]
version = "3.4.2"
features = ["rustls"]
default-features = false
[dependencies.zstd]
version = "0.14.3"
[dev-dependencies.criterion]
version = "0.8.2"
default-features = false
[dev-dependencies.proptest]
version = "1.12.0"
[dev-dependencies.serde_json]
version = "1.0.154"
[target."cfg(unix)".dependencies.rustix]
version = "1.1.5"
features = [
"fs",
"process",
]