forked from rust-lang/crates.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
135 lines (124 loc) · 4.62 KB
/
Cargo.toml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[package]
name = "crates_io"
authors = ["Alex Crichton <[email protected]>"]
version = "0.0.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/crates.io"
description = "Backend of crates.io"
edition = "2021"
default-run = "server"
[workspace]
members = ["crates/*"]
[workspace.lints.rust]
future_incompatible = "warn"
nonstandard_style = "warn"
rust_2018_idioms = "warn"
rust_2018_compatibility = "warn"
rust_2021_compatibility = "warn"
unused = "warn"
[workspace.lints.clippy]
all = "warn"
dbg_macro = "warn"
todo = "warn"
[lints]
workspace = true
[profile.release]
opt-level = 2
[lib]
name = "crates_io"
doctest = true
[[test]]
name = "all"
path = "src/tests/all.rs"
[features]
default = ["slow-tests"]
# The `slow-tests` enables tests that take a long time to finish. It is enabled
# by default but the test suite can be run via `cargo test --no-default-features`
# to disable these tests.
slow-tests = []
[dependencies]
anyhow = "=1.0.86"
async-trait = "=0.1.80"
aws-credential-types = { version = "=1.2.0", features = ["hardcoded-credentials"] }
aws-ip-ranges = "=0.380.0"
aws-sdk-cloudfront = "=1.35.0"
aws-sdk-sqs = "=1.33.0"
axum = { version = "=0.7.5", features = ["macros", "matched-path"] }
axum-extra = { version = "=0.9.3", features = ["cookie-signed", "typed-header"] }
base64 = "=0.22.1"
bigdecimal = { version = "=0.4.5", features = ["serde"] }
cargo-manifest = "=0.14.0"
crates_io_cdn_logs = { path = "crates/crates_io_cdn_logs" }
crates_io_env_vars = { path = "crates/crates_io_env_vars" }
crates_io_github = { path = "crates/crates_io_github" }
crates_io_index = { path = "crates/crates_io_index" }
crates_io_markdown = { path = "crates/crates_io_markdown" }
crates_io_tarball = { path = "crates/crates_io_tarball" }
crates_io_worker = { path = "crates/crates_io_worker" }
csv = "=1.3.0"
chrono = { version = "=0.4.38", default-features = false, features = ["serde"] }
clap = { version = "=4.5.7", features = ["derive", "env", "unicode", "wrap_help"] }
cookie = { version = "=0.18.1", features = ["secure"] }
deadpool-diesel = { version = "=0.6.1", features = ["postgres", "tracing"] }
derive_builder = "=0.20.0"
derive_deref = "=1.1.1"
dialoguer = "=0.11.0"
diesel = { version = "=2.2.1", features = ["postgres", "serde_json", "chrono", "numeric"] }
diesel_full_text_search = "=2.2.0"
diesel_migrations = { version = "=2.2.0", features = ["postgres"] }
dotenvy = "=0.15.7"
flate2 = "=1.0.30"
futures-util = "=0.3.30"
github-meta = "=0.11.0"
hex = "=0.4.3"
http = "=1.1.0"
http-body-util = "=0.1.2"
hyper = { version = "=1.3.1", features = ["client", "http1"] }
indexmap = { version = "=2.2.6", features = ["serde"] }
indicatif = "=0.17.8"
ipnetwork = "=0.20.0"
tikv-jemallocator = { version = "=0.5.4", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] }
lettre = { version = "=0.11.7", default-features = false, features = ["file-transport", "smtp-transport", "native-tls", "hostname", "builder"] }
minijinja = "=2.0.2"
mockall = "=0.12.1"
oauth2 = "=4.4.2"
object_store = { version = "=0.10.1", features = ["aws"] }
once_cell = "=1.19.0"
p256 = "=0.13.2"
parking_lot = "=0.12.3"
paste = "=1.0.15"
prometheus = { version = "=0.13.4", default-features = false }
rand = "=0.8.5"
reqwest = { version = "=0.12.5", features = ["blocking", "gzip", "json"] }
scheduled-thread-pool = "=0.2.7"
secrecy = "=0.8.0"
semver = { version = "=1.0.23", features = ["serde"] }
sentry = { version = "=0.34.0", features = ["tracing", "tower", "tower-axum-matched-path", "tower-http"] }
serde = { version = "=1.0.203", features = ["derive"] }
serde_json = "=1.0.118"
sha2 = "=0.10.8"
spdx = "=0.10.6"
tar = "=0.4.41"
tempfile = "=3.10.1"
thiserror = "=1.0.61"
tokio = { version = "=1.38.0", features = ["net", "signal", "io-std", "io-util", "rt-multi-thread", "macros", "process"]}
toml = "=0.8.14"
tower = "=0.4.13"
tower-http = { version = "=0.5.2", features = ["add-extension", "fs", "catch-panic", "timeout", "compression-full"] }
tracing = "=0.1.40"
tracing-subscriber = { version = "=0.3.18", features = ["env-filter", "json"] }
typomania = { version = "=0.1.2", default-features = false }
url = "=2.5.2"
unicode-xid = "=0.2.4"
zip = { version = "=2.1.3", default-features = false, features = ["deflate"] }
[dev-dependencies]
bytes = "=1.6.0"
crates_io_index = { path = "crates/crates_io_index", features = ["testing"] }
crates_io_tarball = { path = "crates/crates_io_tarball", features = ["builder"] }
crates_io_test_db = { path = "crates/crates_io_test_db" }
claims = "=0.7.1"
diesel = { version = "=2.2.1", features = ["r2d2"] }
googletest = "=0.11.0"
insta = { version = "=1.39.0", features = ["glob", "json", "redactions"] }
regex = "=1.10.5"
tokio = "=1.38.0"