Skip to content

Commit 42fcd93

Browse files
refactor(all): Remove unused code and update dependencies in multiple modules
1 parent 3291266 commit 42fcd93

File tree

18 files changed

+192
-324
lines changed

18 files changed

+192
-324
lines changed

Cargo.lock

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ tower-http = { version = "0.5", features = ["cors", "trace", "fs"] }
4646
hyper = { version = "1.1", features = ["full"] }
4747
hyper-util = { version = "0.1" }
4848
tonic = { version = "0.10", features = ["tls", "transport"] }
49+
actix-multipart = "0.4"
50+
4951

5052
# Database and storage
5153
sqlx = { version = "0.7", features = ["runtime-tokio-native-tls", "postgres", "mysql", "sqlite", "uuid", "time", "json"] }
@@ -111,6 +113,9 @@ base64 = "0.21"
111113
semver = "1.0"
112114
walkdir = "2.4"
113115
tempfile = "3.9"
116+
dotenv = "0.15"
117+
lettre = "0.10"
118+
sanitize-filename = "0.3"
114119

115120
# Web assembly
116121
wasm-bindgen = "0.2"

gb-auth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = { workspace = true }
99
gb-core = { path = "../gb-core" }
1010

1111
# Authentication & Security
12-
jsonwebtoken = "9.2"
12+
jsonwebtoken = { workspace = true }
1313
argon2 = "0.5"
1414
rand = { version = "0.8", features = ["std"] }
1515
oauth2 = "4.4"

gb-core/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ rdkafka = { workspace = true }
2424
tonic = { workspace = true }
2525
actix-web ={ workspace = true }
2626
anyhow = { workspace = true }
27+
jsonwebtoken = { workspace = true }
28+
lettre= { workspace = true }
2729

2830
[dev-dependencies]
2931
mockall= { workspace = true }

gb-core/src/config.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct AppConfig {
77
pub database: DatabaseConfig,
88
pub redis: RedisConfig,
99
pub kafka: KafkaConfig,
10-
pub zitadel: ZitadelConfig,
10+
// pub zitadel: ZitadelConfig,
1111
pub minio: MinioConfig,
1212
pub email: EmailConfig,
1313
}
@@ -39,6 +39,7 @@ pub struct ZitadelConfig {
3939
pub domain: String,
4040
pub client_id: String,
4141
pub client_secret: String,
42+
pub access_token: String,
4243
}
4344

4445
#[derive(Clone, Debug, Deserialize)]
@@ -82,12 +83,12 @@ impl AppConfig {
8283
kafka: KafkaConfig {
8384
brokers: env::var("KAFKA_BROKERS").expect("KAFKA_BROKERS must be set"),
8485
},
85-
zitadel: ZitadelConfig {
86-
domain: env::var("ZITADEL_DOMAIN").expect("ZITADEL_DOMAIN must be set"),
87-
client_id: env::var("ZITADEL_CLIENT_ID").expect("ZITADEL_CLIENT_ID must be set"),
88-
client_secret: env::var("ZITADEL_CLIENT_SECRET")
89-
.expect("ZITADEL_CLIENT_SECRET must be set"),
90-
},
86+
// zitadel: ZitadelConfig {
87+
// domain: env::var("ZITADEL_DOMAIN").expect("ZITADEL_DOMAIN must be set"),
88+
// client_id: env::var("ZITADEL_CLIENT_ID").expect("ZITADEL_CLIENT_ID must be set"),
89+
// client_secret: env::var("ZITADEL_CLIENT_SECRET")
90+
// .expect("ZITADEL_CLIENT_SECRET must be set"),
91+
// },
9192
minio: MinioConfig {
9293
endpoint: env::var("MINIO_ENDPOINT").expect("MINIO_ENDPOINT must be set"),
9394
access_key: env::var("MINIO_ACCESS_KEY").expect("MINIO_ACCESS_KEY must be set"),

0 commit comments

Comments
 (0)