forked from rust-lang/docs.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
147 lines (131 loc) · 4.45 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
136
137
138
139
140
141
142
143
144
145
146
147
[package]
name = "docs-rs"
version = "0.6.0"
authors = ["Onur Aslan <[email protected]>", "The Rust Project Developers"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/rust-lang/docs.rs"
build = "build.rs"
edition = "2021"
[workspace]
exclude = [
"ignored",
".workspace",
".rustwide-docker",
]
[features]
consistency_check = ["crates-index", "rayon", "itertools"]
[dependencies]
sentry = "0.29.0"
sentry-panic = "0.29.0"
sentry-tracing = "0.29.0"
sentry-tower = { version = "0.29.0", features = ["http"] }
sentry-anyhow = { version = "0.29.0", features = ["backtrace"] }
log = "0.4"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", default-features = false, features = ["ansi", "fmt", "env-filter"] }
tracing-log = "0.1.3"
regex = "1"
clap = { version = "4.0.22", features = [ "derive" ] }
crates-index = { version = "0.18.5", optional = true }
rayon = { version = "1", optional = true }
crates-index-diff = { version = "15.0.1", features = [ "max-performance" ]}
reqwest = { version = "0.11", features = ["blocking", "json"] } # TODO: Remove blocking when async is ready
semver = { version = "1.0.4", features = ["serde"] }
slug = "0.1.1"
r2d2 = "0.8"
r2d2_postgres = "0.18"
url = { version = "2.1.1", features = ["serde"] }
docsrs-metadata = { path = "crates/metadata" }
anyhow = { version = "1.0.42", features = ["backtrace"]}
backtrace = "0.3.61"
failure = "0.1.8"
thiserror = "1.0.26"
comrak = { version = "0.15.0", default-features = false }
syntect = { version = "5.0.0", default-features = false, features = ["parsing", "html", "dump-load", "regex-onig"] }
toml = "0.5"
schemamama = "0.3"
schemamama_postgres = "0.3"
prometheus = { version = "0.13.0", default-features = false }
rustwide = { version = "0.15.0", features = ["unstable-toolchain-ci"] }
mime_guess = "2"
zstd = "0.12.0"
hostname = "0.3.1"
path-slash = "0.2.0"
once_cell = { version = "1.4.0", features = ["parking_lot"] }
base64 = "0.20"
strum = { version = "0.24.0", features = ["derive"] }
lol_html = "0.3"
font-awesome-as-a-crate = { path = "crates/font-awesome-as-a-crate" }
dashmap = "5.1.0"
string_cache = "0.8.0"
postgres-types = { version = "0.2", features = ["derive"] }
zip = {version = "0.6.2", default-features = false, features = ["bzip2"]}
bzip2 = "0.4.4"
serde_cbor = "0.11.1"
getrandom = "0.2.1"
itertools = { version = "0.10.5", optional = true}
# Async
tokio = { version = "1.0", features = ["rt-multi-thread", "signal", "macros"] }
futures-util = "0.3.5"
aws-config = "0.53.0"
aws-sdk-s3 = "0.23.0"
aws-sdk-cloudfront = "0.23.0"
aws-smithy-types-convert = { version = "0.53.0", features = ["convert-chrono"] }
http = "0.2.6"
uuid = "1.1.2"
# Data serialization and deserialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
memmap2 = "0.5.0"
# axum dependencies
axum = { version = "0.6.1", features = ["headers"]}
axum-extra = "0.4.2"
hyper = { version = "0.14.15", default-features = false }
tower = "0.4.11"
tower-service = "0.3.2"
tower-http = { version = "0.3.4", features = ["fs", "trace"] }
mime = "0.3.16"
percent-encoding = "2.2.0"
# NOTE: if you change this, also double-check that the comment in `queue_builder::remove_tempdirs` is still accurate.
tempfile = "3.1.0"
fn-error-context = "0.2.0"
# Templating
tera = { version = "1.5.0", features = ["builtins"] }
walkdir = "2"
# Date and Time utilities
chrono = { version = "0.4.11", default-features = false, features = ["clock", "serde"] }
# Transitive dependencies we don't use directly but need to have specific versions of
thread_local = "1.1.3"
humantime = "2.1.0"
[dependencies.postgres]
version = "0.19"
features = ["with-chrono-0_4", "with-serde_json-1"]
[target.'cfg(target_os = "linux")'.dependencies]
# Process information
procfs = "0.14.2"
[dev-dependencies]
criterion = "0.4"
kuchiki = "0.8"
rand = "0.8"
mockito = "0.31.0"
test-case = "2.0.0"
aws-smithy-client = { version = "0.53.0", features = ["test-util"]}
aws-smithy-http = "0.53.0"
indoc = "1.0.7"
[build-dependencies]
time = "0.3"
git-repository = { version = "0.29.0", default-features = false }
string_cache_codegen = "0.5.1"
walkdir = "2"
anyhow = { version = "1.0.42", features = ["backtrace"] }
grass = { version = "0.11.0", default-features = false }
once_cell = { version = "1.4.0", features = ["parking_lot"] }
syntect = { version = "5.0.0", default-features = false, features = ["parsing", "dump-create", "yaml-load", "regex-onig"] }
[[bench]]
name = "compression"
harness = false
[[bin]]
name = "cratesfyi"
test = false
doc = false