oxirag 0.1.1

A four-layer RAG engine with SMT-based logic verification and knowledge graph support
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "oxirag"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A four-layer RAG engine with SMT-based logic verification and knowledge graph support"
homepage = "https://github.com/cool-japan/oxirag"
documentation = "https://docs.rs/oxirag"
readme = "README.md"
keywords = [
    "rag",
    "semantic-search",
    "smt",
    "wasm",
    "verification",
]
categories = [
    "wasm",
    "asynchronous",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxirag"

[features]
cuda = [
    "speculator",
    "dep:cudarc",
]
default = [
    "native",
    "echo",
]
distillation = []
echo = []
full = [
    "native",
    "echo",
    "speculator",
    "judge",
    "graphrag",
    "prefix-cache",
    "distillation",
    "hidden-states",
    "quantization",
]
graphrag = []
hidden-states = []
judge = ["oxiz"]
metal = ["speculator"]
native = [
    "tokio",
    "tokio-stream",
    "futures",
]
prefix-cache = []
quantization = []
speculator = [
    "candle-core",
    "candle-nn",
    "candle-transformers",
    "hf-hub",
    "tokenizers",
]
wasm = [
    "wasm-bindgen",
    "wasm-bindgen-futures",
    "js-sys",
    "web-sys",
    "getrandom",
    "console_error_panic_hook",
    "serde-wasm-bindgen",
]

[lib]
name = "oxirag"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "candle_slm_example"
path = "examples/candle_slm_example.rs"

[[example]]
name = "lora_training_example"
path = "examples/lora_training_example.rs"

[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false

[dependencies.async-trait]
version = "0.1"

[dependencies.candle-core]
version = "0.9"
optional = true

[dependencies.candle-nn]
version = "0.9"
optional = true

[dependencies.candle-transformers]
version = "0.9"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "wasmbind",
]

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
optional = true

[dependencies.hf-hub]
version = "0.4"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.oxiz]
version = "0.1"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.22"
optional = true

[dependencies.tokio]
version = "1.49"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "fs",
]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.20"
features = [
    "v4",
    "js",
]

[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

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.proptest]
version = "1.10"

[dev-dependencies.tempfile]
version = "3.24"

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "windows")))'.dependencies.cudarc]
version = "0.19"
features = ["cuda-12000"]
optional = true

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1

[profile.release.package."*"]
opt-level = "z"