-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
110 lines (87 loc) · 2.21 KB
/
Cargo.toml
File metadata and controls
110 lines (87 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[package]
name = "devabase"
version = "0.1.0"
edition = "2021"
description = "Lightweight backend for RAG/LLM applications"
license = "MIT"
repository = "https://github.com/kvsovanreach/devabase"
default-run = "devabase"
[[bin]]
name = "devabase"
path = "src/main.rs"
[[bin]]
name = "deva"
path = "src/bin/deva/main.rs"
[lib]
name = "devabase"
path = "src/lib.rs"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# Web framework
axum = { version = "0.7", features = ["macros", "multipart", "ws"] }
tower = { version = "0.4", features = ["util", "timeout"] }
tower-http = { version = "0.5", features = ["fs", "cors", "trace", "compression-gzip"] }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "uuid", "chrono", "json"] }
deadpool-postgres = "0.12"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
# CLI
clap = { version = "4", features = ["derive", "env"] }
# Auth
jsonwebtoken = "9"
argon2 = "0.5"
rand = "0.8"
base64 = "0.21"
sha2 = "0.10"
# Utils
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "1"
anyhow = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
dotenvy = "0.15"
async-trait = "0.1"
futures = "0.3"
bytes = "1"
async-stream = "0.3"
tokio-stream = "0.1"
# HTTP client (for embedding providers)
reqwest = { version = "0.11", features = ["json", "multipart", "stream"] }
# URL parsing
url = "2"
# Token counting
tiktoken-rs = "0.5"
# SQL parsing (for SQL editor validation)
sqlparser = "0.50"
# HMAC for webhook signatures
hmac = "0.12"
# Embedding
rust-bert = { version = "0.21", optional = true }
# File handling
mime_guess = "2"
tokio-util = { version = "0.7", features = ["io"] }
pdf-extract = "0.7"
# CLI home directory
dirs = "5"
# UI templates
askama = "0.12"
rust-embed = { version = "8", features = ["compression"] }
[features]
default = []
local-embedding = ["rust-bert"]
[dev-dependencies]
tokio-test = "0.4"
tempfile = "3"
reqwest = { version = "0.11", features = ["json"] }
[[test]]
name = "integration"
path = "tests/integration.rs"
[profile.release]
lto = true
codegen-units = 1
strip = true