Skip to content

Commit 2083980

Browse files
committed
WIP
1 parent 6e3d20e commit 2083980

File tree

30 files changed

+2292
-59
lines changed

30 files changed

+2292
-59
lines changed

Cargo.lock

Lines changed: 83 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ paste = "=1.0.15"
110110
postgres-native-tls = "=0.5.1"
111111
prometheus = { version = "=0.14.0", default-features = false }
112112
rand = "=0.9.1"
113+
regex = "=1.11.1"
113114
reqwest = { version = "=0.12.15", features = ["gzip", "json"] }
114115
rss = { version = "=2.0.12", default-features = false, features = ["atom"] }
115116
secrecy = "=0.10.3"
@@ -143,11 +144,12 @@ crates_io_index = { path = "crates/crates_io_index", features = ["testing"] }
143144
crates_io_tarball = { path = "crates/crates_io_tarball", features = ["builder"] }
144145
crates_io_team_repo = { path = "crates/crates_io_team_repo", features = ["mock"] }
145146
crates_io_test_db = { path = "crates/crates_io_test_db" }
147+
crates_io_trustpub = { path = "crates/crates_io_trustpub", features = ["mock"] }
146148
claims = "=0.8.0"
147149
diesel = { version = "=2.2.10", features = ["r2d2"] }
148150
googletest = "=0.14.0"
149151
insta = { version = "=1.43.1", features = ["glob", "json", "redactions"] }
150-
regex = "=1.11.1"
152+
jsonwebtoken = "=9.3.1"
151153
sentry = { version = "=0.37.0", features = ["test"] }
152154
tokio = "=1.45.0"
153155
zip = { version = "=2.6.1", default-features = false, features = ["deflate"] }

crates/crates_io_trustpub/Cargo.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ edition = "2024"
77
[lints]
88
workspace = true
99

10+
[features]
11+
mock = ["dep:mockall", "dep:serde_json"]
12+
1013
[dependencies]
14+
anyhow = "=1.0.98"
15+
async-trait = "=0.1.88"
16+
chrono = { version = "=0.4.41", features = ["serde"] }
1117
jsonwebtoken = "=9.3.1"
18+
mockall = { version = "=0.13.1", optional = true }
1219
reqwest = { version = "=0.12.15", features = ["gzip", "json"] }
1320
regex = "=1.11.1"
1421
serde = { version = "=1.0.219", features = ["derive"] }
22+
serde_json = { version = "=1.0.140", optional = true }
1523
thiserror = "=2.0.12"
24+
tokio = { version = "=1.45.0", features = ["sync"] }
1625

1726
[dev-dependencies]
1827
claims = "=0.8.0"
19-
insta = "=1.43.1"
28+
insta = { version = "=1.43.1", features = ["json", "redactions"] }
2029
mockito = "=1.7.0"
2130
tokio = { version = "=1.45.0", features = ["macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)