Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
utopia/Cargo.toml at main · deeplethe/utopia · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
deeplethe
utopia
Repository navigation
Code
Issues
55
(55)
Pull requests
18
(18)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
utopia
/
Cargo.toml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
109 lines (101 loc) · 3.96 KB
main
Breadcrumbs
utopia
/
Cargo.toml
Copy path
Top
File metadata and controls
Code
Blame
109 lines (101 loc) · 3.96 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
[
workspace
]
resolver
=
"
2
"
members
= [
"
crates/utopia-core
"
,
"
crates/utopia-cli
"
,
"
crates/utopia-store
"
,
"
crates/utopia-server
"
,
"
crates/utopia-ingest
"
,
"
crates/utopia-extract
"
,
"
crates/utopia-reason
"
,
"
crates/utopia-search
"
,
"
crates/utopia-llm
"
,
]
[
workspace
.
package
]
version
=
"
0.1.0
"
edition
=
"
2021
"
license
=
"
Apache-2.0
"
repository
=
"
https://github.com/deeplethe/utopia
"
[
workspace
.
dependencies
]
utopia-core
= {
path
=
"
crates/utopia-core
"
}
utopia-store
= {
path
=
"
crates/utopia-store
"
}
tokio
= {
version
=
"
1
"
,
features
= [
"
full
"
] }
axum
= {
version
=
"
0.8
"
,
features
= [
"
multipart
"
] }
axum-extra
= {
version
=
"
0.10
"
,
features
= [
"
cookie
"
] }
tower-http
= {
version
=
"
0.6
"
,
features
= [
"
cors
"
,
"
trace
"
,
"
fs
"
,
"
set-header
"
] }
sqlx
= {
version
=
"
0.8
"
,
default-features
=
false
,
features
= [
#
mysql 只为问数引擎而开(query_engine::mysql):一条线协议顺带覆盖
#
TiDB / OceanBase / Doris / StarRocks。本体的库始终是 postgres。
#
bigdecimal 是 DECIMAL 唯一的读法——驱动把 DECIMAL 同时挡在 f64 和 String
#
之外("floating-point numbers have different semantics"),没有它金额列会整列变 null
"
runtime-tokio
"
,
"
tls-rustls
"
,
"
postgres
"
,
"
mysql
"
,
"
bigdecimal
"
,
"
uuid
"
,
"
chrono
"
,
"
json
"
,
"
migrate
"
,
"
macros
"
,
] }
serde
= {
version
=
"
1
"
,
features
= [
"
derive
"
] }
serde_json
=
"
1
"
thiserror
=
"
2
"
anyhow
=
"
1
"
uuid
= {
version
=
"
1
"
,
features
= [
"
v4
"
,
"
v7
"
,
"
serde
"
] }
chrono
= {
version
=
"
0.4
"
,
features
= [
"
serde
"
] }
argon2
= {
version
=
"
0.5
"
,
features
= [
"
std
"
] }
#
凭据静态加密(core::secrets):AES-256-GCM,钥匙不进库
aes-gcm
=
"
0.10
"
base64
=
"
0.23
"
#
密钥比对(sources 的推送密钥):常量时间。已随 aes-gcm 进依赖树,显式列出
subtle
=
"
2
"
jsonwebtoken
= {
version
=
"
10
"
,
features
= [
"
rust_crypto
"
] }
figment
= {
version
=
"
0.10
"
,
features
= [
"
env
"
] }
dotenvy
=
"
0.15
"
tracing
=
"
0.1
"
tracing-subscriber
= {
version
=
"
0.3
"
,
features
= [
"
env-filter
"
] }
flate2
=
"
1
"
#
枚举的字符串化与遍历(来源种类 `SourceKind`)——手写两份清单的漂移就是 #247
strum
= {
version
=
"
0.27
"
,
features
= [
"
derive
"
] }
#
Phase 1: 摄入/检索/LLM
utopia-ingest
= {
path
=
"
crates/utopia-ingest
"
}
utopia-reason
= {
path
=
"
crates/utopia-reason
"
}
utopia-search
= {
path
=
"
crates/utopia-search
"
}
utopia-llm
= {
path
=
"
crates/utopia-llm
"
}
tantivy
=
"
0.26
"
tantivy-jieba
=
"
0.20
"
text-splitter
= {
version
=
"
0.32
"
,
features
= [
"
tiktoken-rs
"
] }
#
分块预算按 token 数:cl100k 的排名表随 crate 内嵌,离线可用
tiktoken-rs
=
"
0.12
"
#
句子边界按 Unicode 标准(UAX #29)切,不自己写标点规则
pdf-extract
=
"
0.12
"
calamine
=
"
0.37
"
pgvector
= {
version
=
"
0.4
"
,
features
= [
"
sqlx
"
] }
#
`gzip` 不是可选项:一次嵌入回 64×1024 个浮点数,写成 JSON 文本每个数字占
#
21 字节而信息量只有 4 字节,一次响应 1.33 MB。实测同一条链路上不压缩 62 秒、
#
gzip 21 秒(429 KB)——服务端算完只用 1 秒,其余全在传。
#
`default-features = false` 把它一并关掉了,这里补回来。
reqwest
= {
version
=
"
0.13
"
,
default-features
=
false
,
features
= [
"
json
"
,
"
form
"
,
"
multipart
"
,
"
stream
"
,
"
http2
"
,
"
rustls
"
,
"
webpki-roots
"
,
"
charset
"
,
"
system-proxy
"
,
"
gzip
"
] }
feed-rs
=
"
2
"
cron
=
"
0.12
"
infer
=
"
0.22
"
sha2
=
"
0.11
"
glob
=
"
0.3
"
sha1
=
"
0.10
"
dom_smoothie
=
"
0.16
"
dom_query
=
"
0.26
"
htmd
=
"
0.5
"
pulldown-cmark
= {
version
=
"
0.13
"
,
default-features
=
false
}
chardetng
=
"
1
"
encoding_rs
=
"
0.8
"
quick-xml
=
"
0.42
"
zip
= {
version
=
"
6
"
,
default-features
=
false
,
features
= [
"
deflate
"
] }
csv
=
"
1
"
#
本体导入:Oxigraph 拆出来的小而专的解析器,只解析不推理——
#
我们不需要 horned-owl 那套 OWL 推理机,投影只消费 RDF 三元组
oxttl
=
"
0.2
"
oxrdfxml
=
"
0.2
"
oxrdf
=
"
0.3
"
oxrdfio
=
"
0.2
"
async-stream
=
"
0.3
"
futures-util
=
"
0.3
"
tokio-stream
=
"
0.1
"
tempfile
=
"
3
"
[
profile
.
dev
]
debug
=
1
[
profile
.
release
]
lto
=
"
thin
"
strip
=
true
You can’t perform that action at this time.