Elffuss BraidHub

kikocis/utopia public

ffe9e37e55e3 · 2.9 KiBRawPermalink
1[workspace]
2resolver = "2"
3members = [
4 "crates/utopia-core",
5 "crates/utopia-store",
6 "crates/utopia-server",
7 "crates/utopia-ingest",
8 "crates/utopia-extract",
9 "crates/utopia-reason",
10 "crates/utopia-search",
11 "crates/utopia-llm",
12]
13
14[workspace.package]
15version = "0.1.0"
16edition = "2021"
17license = "Apache-2.0"
18repository = "https://github.com/deeplethe/utopia"
19
20[workspace.dependencies]
21utopia-core = { path = "crates/utopia-core" }
22utopia-store = { path = "crates/utopia-store" }
23
24tokio = { version = "1", features = ["full"] }
25axum = { version = "0.8", features = ["multipart"] }
26axum-extra = { version = "0.10", features = ["cookie"] }
27tower-http = { version = "0.6", features = ["cors", "trace", "fs"] }
28sqlx = { version = "0.8", default-features = false, features = [
29 "runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json", "migrate", "macros",
30] }
31serde = { version = "1", features = ["derive"] }
32serde_json = "1"
33thiserror = "2"
34anyhow = "1"
35uuid = { version = "1", features = ["v4", "v7", "serde"] }
36chrono = { version = "0.4", features = ["serde"] }
37argon2 = { version = "0.5", features = ["std"] }
38jsonwebtoken = { version = "10", features = ["rust_crypto"] }
39figment = { version = "0.10", features = ["env"] }
40dotenvy = "0.15"
41tracing = "0.1"
42tracing-subscriber = { version = "0.3", features = ["env-filter"] }
43flate2 = "1"
44
45# Phase 1: 摄入/检索/LLM
46utopia-ingest = { path = "crates/utopia-ingest" }
47utopia-reason = { path = "crates/utopia-reason" }
48utopia-search = { path = "crates/utopia-search" }
49utopia-llm = { path = "crates/utopia-llm" }
50tantivy = "0.26"
51tantivy-jieba = "0.20"
52text-splitter = "0.32"
53pdf-extract = "0.12"
54calamine = "0.36"
55pgvector = { version = "0.4", features = ["sqlx"] }
56# `gzip` 不是可选项:一次嵌入回 64×1024 个浮点数,写成 JSON 文本每个数字占
57# 21 字节而信息量只有 4 字节,一次响应 1.33 MB。实测同一条链路上不压缩 62 秒、
58# gzip 21 秒(429 KB)——服务端算完只用 1 秒,其余全在传。
59# `default-features = false` 把它一并关掉了,这里补回来。
60reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "http2", "rustls", "webpki-roots", "charset", "system-proxy", "gzip"] }
61
62feed-rs = "2"
63cron = "0.12"
64infer = "0.22"
65sha2 = "0.11"
66scraper = "0.27"
67pulldown-cmark = { version = "0.13", default-features = false }
68chardetng = "1"
69encoding_rs = "0.8"
70quick-xml = "0.42"
71zip = { version = "6", default-features = false, features = ["deflate"] }
72csv = "1"
73
74# 本体导入:Oxigraph 拆出来的小而专的解析器,只解析不推理——
75# 我们不需要 horned-owl 那套 OWL 推理机,投影只消费 RDF 三元组
76oxttl = "0.2"
77oxrdfxml = "0.2"
78oxrdf = "0.3"
79async-stream = "0.3"
80futures-util = "0.3"
81tokio-stream = "0.1"
82tempfile = "3"
83
84[profile.dev]
85debug = 1
86
87[profile.release]
88lto = "thin"
89strip = true