Skip to content

Commit f68ade5

Browse files
committed
update usls 0.1 to 0.2, ort and onnx update also
1 parent b387366 commit f68ade5

19 files changed

Lines changed: 1586 additions & 2738 deletions

.cargo/config.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[source.crates-io]
2+
replace-with = 'rsproxy-sparse'
3+
4+
[source.rsproxy-sparse]
5+
registry = "sparse+https://rsproxy.cn/index/"
6+
7+
[source.ustc]
8+
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
9+
10+
[source.tuna]
11+
registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
12+
13+
[net]
14+
git-fetch-with-cli = true
15+
retry = 3
16+
# 禁用HTTP/2多路复用,某些网络环境下可能更快
17+
# 禁用HTTP/2多路复用,某些网络环境下可能更快
18+
# http-multiplexing = false
19+
# 增加超时时间
20+
# timeout = 60
21+
22+
# 启用并行下载
23+
[build]
24+
jobs = 4
25+
26+
# 配置下载重试
27+
# [download]
28+
# retry = 3
29+
# timeout = 60
30+
31+
# 优化编译配置
32+
[profile.dev]
33+
opt-level = 0
34+
debug = true
35+
incremental = true
36+
37+
[profile.release]
38+
opt-level = 3
39+
lto = true
40+
codegen-units = 1
41+
incremental = false
42+
43+
[profile.test]
44+
opt-level = 0
45+
debug = true
46+
47+
[profile.bench]
48+
opt-level = 3
49+
lto = true
50+
codegen-units = 1
51+
52+
# 环境变量配置
53+
[env]
54+
CARGO_HTTP_MULTIPLEXING = { value = "false", force = false }
55+
CARGO_NET_GIT_FETCH_WITH_CLI = { value = "true", force = false }
56+
CARGO_HTTP_TIMEOUT = { value = "60", force = false }
57+
CARGO_NET_RETRY = { value = "3", force = false }

0 commit comments

Comments
 (0)