| 1 | [workspace] |
| 2 | resolver = "2" |
| 3 | members = [ |
| 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] |
| 15 | version = "0.1.0" |
| 16 | edition = "2021" |
| 17 | license = "Apache-2.0" |
| 18 | repository = "https://github.com/deeplethe/utopia" |
| 19 | |
| 20 | [workspace.dependencies] |
| 21 | utopia-core = { path = "crates/utopia-core" } |
| 22 | utopia-store = { path = "crates/utopia-store" } |
| 23 | |
| 24 | tokio = { version = "1", features = ["full"] } |
| 25 | axum = { version = "0.8", features = ["multipart"] } |
| 26 | axum-extra = { version = "0.10", features = ["cookie"] } |
| 27 | tower-http = { version = "0.6", features = ["cors", "trace", "fs"] } |
| 28 | sqlx = { version = "0.8", default-features = false, features = [ |
| 29 | "runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json", "migrate", "macros", |
| 30 | ] } |
| 31 | serde = { version = "1", features = ["derive"] } |
| 32 | serde_json = "1" |
| 33 | thiserror = "2" |
| 34 | anyhow = "1" |
| 35 | uuid = { version = "1", features = ["v4", "v7", "serde"] } |
| 36 | chrono = { version = "0.4", features = ["serde"] } |
| 37 | argon2 = { version = "0.5", features = ["std"] } |
| 38 | jsonwebtoken = { version = "10", features = ["rust_crypto"] } |
| 39 | figment = { version = "0.10", features = ["env"] } |
| 40 | dotenvy = "0.15" |
| 41 | tracing = "0.1" |
| 42 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 43 | flate2 = "1" |
| 44 | |
| 45 | # Phase 1: 摄入/检索/LLM |
| 46 | utopia-ingest = { path = "crates/utopia-ingest" } |
| 47 | utopia-reason = { path = "crates/utopia-reason" } |
| 48 | utopia-search = { path = "crates/utopia-search" } |
| 49 | utopia-llm = { path = "crates/utopia-llm" } |
| 50 | tantivy = "0.26" |
| 51 | tantivy-jieba = "0.20" |
| 52 | text-splitter = "0.32" |
| 53 | pdf-extract = "0.12" |
| 54 | calamine = "0.36" |
| 55 | pgvector = { 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` 把它一并关掉了,这里补回来。 |
| 60 | reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "http2", "rustls", "webpki-roots", "charset", "system-proxy", "gzip"] } |
| 61 | |
| 62 | feed-rs = "2" |
| 63 | cron = "0.12" |
| 64 | infer = "0.22" |
| 65 | sha2 = "0.11" |
| 66 | scraper = "0.27" |
| 67 | pulldown-cmark = { version = "0.13", default-features = false } |
| 68 | chardetng = "1" |
| 69 | encoding_rs = "0.8" |
| 70 | quick-xml = "0.42" |
| 71 | zip = { version = "6", default-features = false, features = ["deflate"] } |
| 72 | csv = "1" |
| 73 | |
| 74 | # 本体导入:Oxigraph 拆出来的小而专的解析器,只解析不推理—— |
| 75 | # 我们不需要 horned-owl 那套 OWL 推理机,投影只消费 RDF 三元组 |
| 76 | oxttl = "0.2" |
| 77 | oxrdfxml = "0.2" |
| 78 | oxrdf = "0.3" |
| 79 | async-stream = "0.3" |
| 80 | futures-util = "0.3" |
| 81 | tokio-stream = "0.1" |
| 82 | tempfile = "3" |
| 83 | |
| 84 | [profile.dev] |
| 85 | debug = 1 |
| 86 | |
| 87 | [profile.release] |
| 88 | lto = "thin" |
| 89 | strip = true |