[package]
edition = "2021"
rust-version = "1.89"
name = "airust"
version = "0.2.13"
authors = ["LEVOGNE"]
build = "build.rs"
include = [
"Cargo.toml",
"Cargo.lock",
"src/**",
"build.rs",
"knowledge/train.json",
"data/pdf/sample.pdf",
"examples/**",
"scripts/**",
"tests/**",
"docs/**",
"README.md",
"STARTUP.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"ROADMAP.md",
"LICENSE",
"test.sh",
"Dockerfile",
".dockerignore",
"!**/.DS_Store",
"!**/._*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "airust"
description = "A modular Rust knowledge engine: lexical search, text matching, optional semantic retrieval and reranking"
homepage = "https://github.com/LEVOGNE/airust"
documentation = "https://docs.rs/airust"
readme = "README.md"
keywords = [
"search",
"knowledge",
"matching",
"retrieval",
"reranking",
]
categories = [
"text-processing",
"algorithms",
]
license = "MIT"
repository = "https://github.com/LEVOGNE/airust"
[package.metadata.docs.rs]
all-features = true
[features]
advanced-search = [
"dep:unicode-segmentation",
"dep:rust-stemmers",
]
async = ["dep:tokio"]
bots = ["web"]
cache = [
"dep:postcard",
"dep:sha2",
]
cli = ["embedded-knowledge"]
colors = []
context-assembly = [
"hybrid",
"graph",
]
default = []
embedded-knowledge = []
embeddings = []
graph = [
"dep:petgraph",
"serde/rc",
]
hnsw = [
"embeddings",
"dep:hnsw_rs",
"serde/rc",
]
hybrid = ["embeddings"]
local-embeddings = [
"embeddings",
"dep:fastembed",
"dep:ort",
"dep:sha2",
]
local-reranking = [
"reranking",
"dep:fastembed",
"dep:ort",
"dep:sha2",
]
pdf = ["dep:pdf_oxide"]
plotting = []
provenance = []
quality = []
reranking = []
retrieval = ["dep:unicode-segmentation"]
sqlite-storage = [
"storage",
"dep:rusqlite",
]
storage = ["dep:getrandom"]
versioning = ["serde/rc"]
web = [
"cli",
"pdf",
"dep:chrono",
"dep:axum",
"dep:tokio",
"dep:rusqlite",
"dep:reqwest",
"dep:scraper",
"dep:sha2",
"dep:url",
"dep:tempfile",
]
[lib]
name = "airust"
path = "src/lib.rs"
[[bin]]
name = "airust"
path = "src/bin/airust.rs"
required-features = ["cli"]
[[bin]]
name = "merge_kb"
path = "src/bin/merge_kb.rs"
required-features = ["cli"]
[[bin]]
name = "pdf2kb"
path = "src/bin/pdf2kb.rs"
required-features = [
"cli",
"pdf",
]
[[example]]
name = "advanced_search"
path = "examples/advanced_search.rs"
required-features = ["advanced-search"]
[[example]]
name = "ann"
path = "examples/ann.rs"
required-features = ["hnsw"]
[[example]]
name = "ann_benchmark"
path = "examples/ann_benchmark.rs"
required-features = ["hnsw"]
[[example]]
name = "benchmark"
path = "examples/benchmark.rs"
[[example]]
name = "cache"
path = "examples/cache.rs"
required-features = ["cache"]
[[example]]
name = "cache_benchmark"
path = "examples/cache_benchmark.rs"
required-features = ["cache"]
[[example]]
name = "context"
path = "examples/context.rs"
required-features = ["context-assembly"]
[[example]]
name = "context_benchmark"
path = "examples/context_benchmark.rs"
required-features = ["context-assembly"]
[[example]]
name = "core"
path = "examples/core.rs"
[[example]]
name = "embedding_benchmark"
path = "examples/embedding_benchmark.rs"
required-features = ["embeddings"]
[[example]]
name = "excerpt_benchmark"
path = "examples/excerpt_benchmark.rs"
required-features = ["retrieval"]
[[example]]
name = "graph"
path = "examples/graph.rs"
required-features = ["graph"]
[[example]]
name = "graph_benchmark"
path = "examples/graph_benchmark.rs"
required-features = ["graph"]
[[example]]
name = "hybrid"
path = "examples/hybrid.rs"
required-features = ["hybrid"]
[[example]]
name = "hybrid_benchmark"
path = "examples/hybrid_benchmark.rs"
required-features = ["hybrid"]
[[example]]
name = "hybrid_quality"
path = "examples/hybrid_quality.rs"
required-features = [
"hybrid",
"local-embeddings",
]
[[example]]
name = "index_benchmark"
path = "examples/index_benchmark.rs"
[[example]]
name = "knowledge_pipeline"
path = "examples/knowledge_pipeline.rs"
required-features = [
"hnsw",
"cache",
"context-assembly",
"provenance",
"quality",
]
[[example]]
name = "provenance"
path = "examples/provenance.rs"
required-features = ["provenance"]
[[example]]
name = "provenance_benchmark"
path = "examples/provenance_benchmark.rs"
required-features = ["provenance"]
[[example]]
name = "provenance_context"
path = "examples/provenance_context.rs"
required-features = [
"provenance",
"context-assembly",
]
[[example]]
name = "quality"
path = "examples/quality.rs"
required-features = ["quality"]
[[example]]
name = "quality_benchmark"
path = "examples/quality_benchmark.rs"
required-features = [
"quality",
"context-assembly",
"provenance",
]
[[example]]
name = "relevant_excerpts"
path = "examples/relevant_excerpts.rs"
required-features = ["retrieval"]
[[example]]
name = "reranking"
path = "examples/reranking.rs"
required-features = ["reranking"]
[[example]]
name = "reranking_quality"
path = "examples/reranking_quality.rs"
required-features = [
"local-reranking",
"quality",
]
[[example]]
name = "retrieval"
path = "examples/retrieval.rs"
required-features = ["retrieval"]
[[example]]
name = "retrieval_benchmark"
path = "examples/retrieval_benchmark.rs"
required-features = ["retrieval"]
[[example]]
name = "retrieval_quality"
path = "examples/retrieval_quality.rs"
required-features = [
"quality",
"hybrid",
]
[[example]]
name = "semantic"
path = "examples/semantic.rs"
required-features = ["embeddings"]
[[example]]
name = "semantic_quality"
path = "examples/semantic_quality.rs"
required-features = ["local-embeddings"]
[[example]]
name = "storage"
path = "examples/storage.rs"
required-features = ["storage"]
[[example]]
name = "storage_benchmark"
path = "examples/storage_benchmark.rs"
required-features = ["sqlite-storage"]
[[example]]
name = "text_search_benchmark"
path = "examples/text_search_benchmark.rs"
required-features = ["advanced-search"]
[[example]]
name = "versioning"
path = "examples/versioning.rs"
required-features = ["versioning"]
[[example]]
name = "versioning_benchmark"
path = "examples/versioning_benchmark.rs"
required-features = ["versioning"]
[[test]]
name = "ann"
path = "tests/ann.rs"
[[test]]
name = "cache"
path = "tests/cache.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "compatibility"
path = "tests/compatibility.rs"
[[test]]
name = "context_engine"
path = "tests/context_engine.rs"
[[test]]
name = "context_intersection"
path = "tests/context_intersection.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "excerpts"
path = "tests/excerpts.rs"
[[test]]
name = "graph"
path = "tests/graph.rs"
[[test]]
name = "hybrid"
path = "tests/hybrid.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "pdf"
path = "tests/pdf.rs"
[[test]]
name = "persistence"
path = "tests/persistence.rs"
[[test]]
name = "provenance"
path = "tests/provenance.rs"
[[test]]
name = "quality"
path = "tests/quality.rs"
[[test]]
name = "quality_context"
path = "tests/quality_context.rs"
[[test]]
name = "reranking"
path = "tests/reranking.rs"
[[test]]
name = "retrieval"
path = "tests/retrieval.rs"
[[test]]
name = "semantic"
path = "tests/semantic.rs"
[[test]]
name = "storage"
path = "tests/storage.rs"
[[test]]
name = "text_search"
path = "tests/text_search.rs"
[[test]]
name = "versioning"
path = "tests/versioning.rs"
[[test]]
name = "web"
path = "tests/web.rs"
[[test]]
name = "web_security"
path = "tests/web_security.rs"
[dependencies.axum]
version = "0.7"
features = [
"multipart",
"ws",
]
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
[dependencies.fastembed]
version = "=7.7.1"
features = ["ort-load-dynamic"]
optional = true
default-features = false
[dependencies.getrandom]
version = "=0.4.3"
optional = true
[dependencies.hnsw_rs]
version = "=0.3.5"
optional = true
default-features = false
[dependencies.once_cell]
version = "1.18"
[dependencies.ort]
version = "=2.0.0-rc.15"
features = ["load-dynamic"]
optional = true
default-features = false
[dependencies.pdf_oxide]
version = "0.3.78"
optional = true
[dependencies.petgraph]
version = "0.8.3"
features = [
"std",
"stable_graph",
]
optional = true
default-features = false
[dependencies.postcard]
version = "1.1.3"
features = ["use-std"]
optional = true
default-features = false
[dependencies.regex]
version = "1.5"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true
[dependencies.rusqlite]
version = "0.43"
features = ["bundled"]
optional = true
[dependencies.rust-stemmers]
version = "=1.2.0"
optional = true
[dependencies.scraper]
version = "0.29"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.strsim]
version = "0.10"
[dependencies.tempfile]
version = "3"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.unicode-segmentation]
version = "=1.13.3"
optional = true
[dependencies.url]
version = "2"
optional = true
[dev-dependencies.tempfile]
version = "3"
[profile.release]
lto = "thin"
codegen-units = 1