chore(workspace): wire lib/config into workspace and regenerate lockfile
zhenyi committed
Modified lib/config/src/git.rs lib/config/src/git.rs +4 −0 View lib/config/src/git.rs
@@ -7,6 +7,8 @@
77#[derive(Debug, Clone, Serialize, Deserialize)]
88#[serde(default)]
99pub struct SmartConfig {
10 pub bind_addr: String,
11 pub port: u16,
1012 pub git_storage_root: String,
1113 pub lfs_storage_root: String,
1214 pub object_cache_prefix: String,
@@ -16,6 +18,8 @@
1618impl Default for SmartConfig {
1719 fn default() -> Self {
1820 Self {
21 bind_addr: "0.0.0.0".to_string(),
22 port: 8080,
1923 git_storage_root: "/var/lib/repo/git".to_string(),
2024 lfs_storage_root: "/var/lib/repo/lfs".to_string(),
2125 object_cache_prefix: "gitsmart".to_string(),
Modified Cargo.lock Cargo.lock +150 −0 View Cargo.lock
@@ -126,6 +126,18 @@
126126]
127127
128128[[package]]
129name = "apihost"
130version = "1.94.0"
131dependencies = [
132 "axum",
133 "config 1.94.0",
134 "tokio",
135 "tracing",
136 "tracing-subscriber",
137 "webapi",
138]
139
140[[package]]
129141name = "arc-swap"
130142version = "1.9.2"
131143source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2315,6 +2327,21 @@
23152327]
23162328
23172329[[package]]
2330name = "githook"
2331version = "1.94.0"
2332dependencies = [
2333 "cache",
2334 "config 1.94.0",
2335 "db",
2336 "gitsync",
2337 "queue",
2338 "storage",
2339 "tokio",
2340 "tracing",
2341 "tracing-subscriber",
2342]
2343
2344[[package]]
23182345name = "gitlfs"
23192346version = "1.94.0"
23202347dependencies = [
@@ -2331,6 +2358,25 @@
23312358]
23322359
23332360[[package]]
2361name = "gitpro"
2362version = "1.94.0"
2363dependencies = [
2364 "axum",
2365 "cache",
2366 "config 1.94.0",
2367 "db",
2368 "gitauth",
2369 "gitsmart",
2370 "gitssh",
2371 "jwt",
2372 "queue",
2373 "storage",
2374 "tokio",
2375 "tracing",
2376 "tracing-subscriber",
2377]
2378
2379[[package]]
23342380name = "gitsmart"
23352381version = "1.94.0"
23362382dependencies = [
@@ -4338,6 +4384,27 @@
43384384]
43394385
43404386[[package]]
4387name = "livechat"
4388version = "1.94.0"
4389dependencies = [
4390 "axum",
4391 "cache",
4392 "chatlayer",
4393 "config 1.94.0",
4394 "db",
4395 "glayer",
4396 "jwt",
4397 "live",
4398 "queue",
4399 "serde",
4400 "storage",
4401 "storagelayer",
4402 "tokio",
4403 "tracing",
4404 "tracing-subscriber",
4405]
4406
4407[[package]]
43414408name = "lock_api"
43424409version = "0.4.14"
43434410source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4381,6 +4448,26 @@
43814448]
43824449
43834450[[package]]
4451name = "mails"
4452version = "1.94.0"
4453dependencies = [
4454 "config 1.94.0",
4455 "email",
4456 "tokio",
4457 "tracing",
4458 "tracing-subscriber",
4459]
4460
4461[[package]]
4462name = "matchers"
4463version = "0.2.0"
4464source = "registry+https://github.com/rust-lang/crates.io-index"
4465checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
4466dependencies = [
4467 "regex-automata",
4468]
4469
4470[[package]]
43844471name = "matchit"
43854472version = "0.8.4"
43864473source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4609,6 +4696,15 @@
46094696]
46104697
46114698[[package]]
4699name = "nu-ansi-term"
4700version = "0.50.3"
4701source = "registry+https://github.com/rust-lang/crates.io-index"
4702checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
4703dependencies = [
4704 "windows-sys 0.61.2",
4705]
4706
4707[[package]]
46124708name = "num-bigint"
46134709version = "0.4.8"
46144710source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -6658,6 +6754,15 @@
66586754]
66596755
66606756[[package]]
6757name = "sharded-slab"
6758version = "0.1.7"
6759source = "registry+https://github.com/rust-lang/crates.io-index"
6760checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
6761dependencies = [
6762 "lazy_static",
6763]
6764
6765[[package]]
66616766name = "shared_child"
66626767version = "1.1.1"
66636768source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -7358,6 +7463,15 @@
73587463]
73597464
73607465[[package]]
7466name = "thread_local"
7467version = "1.1.10"
7468source = "registry+https://github.com/rust-lang/crates.io-index"
7469checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
7470dependencies = [
7471 "cfg-if",
7472]
7473
7474[[package]]
73617475name = "time"
73627476version = "0.3.55"
73637477source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -7626,9 +7740,39 @@
76267740checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
76277741dependencies = [
76287742 "once_cell",
7743 "valuable",
76297744]
76307745
76317746[[package]]
7747name = "tracing-log"
7748version = "0.2.0"
7749source = "registry+https://github.com/rust-lang/crates.io-index"
7750checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
7751dependencies = [
7752 "log",
7753 "once_cell",
7754 "tracing-core",
7755]
7756
7757[[package]]
7758name = "tracing-subscriber"
7759version = "0.3.23"
7760source = "registry+https://github.com/rust-lang/crates.io-index"
7761checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
7762dependencies = [
7763 "matchers",
7764 "nu-ansi-term",
7765 "once_cell",
7766 "regex-automata",
7767 "sharded-slab",
7768 "smallvec",
7769 "thread_local",
7770 "tracing",
7771 "tracing-core",
7772 "tracing-log",
7773]
7774
7775[[package]]
76327776name = "try-lock"
76337777version = "0.2.5"
76347778source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -7868,6 +8012,12 @@
78688012]
78698013
78708014[[package]]
8015name = "valuable"
8016version = "0.1.1"
8017source = "registry+https://github.com/rust-lang/crates.io-index"
8018checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
8019
8020[[package]]
78718021name = "vcpkg"
78728022version = "0.2.15"
78738023source = "registry+https://github.com/rust-lang/crates.io-index"
Modified Cargo.toml Cargo.toml +4 −1 View Cargo.toml
@@ -39,7 +39,7 @@
3939 "lib/webhook",
4040 "chat/chatlayer",
4141 "chat/glayer",
42 "chat/live",
42 "chat/live", "app/livechat", "app/apihost", "app/mails", "app/gitpro", "app/githook",
4343]
4444
4545
@@ -67,8 +67,10 @@
6767project = { path = "lib/project" }
6868payment = { path = "lib/payment" }
6969search = { path = "lib/search" }
70webapi = { path = "lib/webapi" }
7071storagelayer = { path = "chat/storagelayer" }
7172chatlayer = { path = "chat/chatlayer" }
73glayer = { path = "chat/glayer" }
7274live = { path = "chat/live" }
7375
7476tokio = { version = "1.53.1", features = ["full"] }
@@ -79,6 +81,7 @@
7981lombok = "0.4.0"
8082log = "0.4"
8183tracing = "0.1.44"
84tracing-subscriber = { version = "0.3", features = ["env-filter"] }
8285thiserror = "2.0.19"
8386async-trait = "0.1"
8487bytes = "1"