Elffuss BraidHub

kikocis/utopia public

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