-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (85 loc) · 3.21 KB
/
Cargo.toml
File metadata and controls
95 lines (85 loc) · 3.21 KB
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
[workspace]
resolver = "2"
members = ["crates/bin/*", "crates/lib/*", "integration_tests"]
default-members = [
"crates/bin/docs_rs_admin",
"crates/bin/docs_rs_builder",
"crates/bin/docs_rs_watcher",
"crates/bin/docs_rs_web",
]
exclude = [
".rustwide-docker",
".workspace",
"crates/bin/docs_rs_builder/.rustwide-docker",
"crates/bin/docs_rs_builder/.workspace",
"crates/bin/docs_rs_builder/tests/crates",
"ignored",
]
[workspace.package]
version = "0.6.0"
authors = ["Onur Aslan <onuraslan@gmail.com>", "The Rust Project Developers"]
license = "MIT"
repository = "https://github.com/rust-lang/docs.rs"
edition = "2024"
[workspace.dependencies]
anyhow = { version = "1.0.42", features = ["backtrace"] }
askama = "0.15.4"
async-stream = "0.3.5"
axum-extra = { version = "0.12.0", features = ["middleware", "routing", "typed-header"] }
base64 = "0.22"
bon = { version = "3.8.1", features = ["experimental-overwritable"] }
chrono = { version = "0.4.11", default-features = false, features = ["clock", "serde"] }
clap = { version = "4.0.22", features = ["derive"] }
futures-util = "0.3.5"
http = "1.0.0"
itertools = "0.14.0"
mime = "0.3.16"
mockito = "1.0.2"
num_cpus = "1.15.0"
opentelemetry = "0.31.0"
opentelemetry-otlp = { version = "0.31.0", features = ["grpc-tonic", "metrics"] }
opentelemetry-resource-detectors = "0.10.0"
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
postcard = { version = "1.1.3", default-features = false, features = ["use-std"] }
pretty_assertions = "1.4.0"
rand = "0.10"
regex = "1"
reqwest = { version = "0.13", features = ["gzip", "json", "stream"] }
sentry = { version = "0.47.0", features = ["backtrace", "panic", "tower-http", "tracing"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.4.0"
slug = "0.1.1"
sqlx = { version = "0.8", features = ["chrono", "postgres", "runtime-tokio", "sqlite"] }
strum = { version = "0.28.0", features = ["derive"] }
tempfile = "3.1.0"
test-case = "3.0.0"
thiserror = "2.0.3"
tokio = { version = "1.0", features = ["macros", "process", "rt-multi-thread", "signal", "sync"] }
toml = "1.0.0"
tracing = "0.1.37"
url = { version = "2.1.1", features = ["serde"] }
walkdir = "2"
zip = { version = "8.0.0", default-features = false, features = ["bzip2"] }
[workspace.lints.clippy]
dbg_macro = "warn"
todo = "warn"
[profile.dev]
# recommendation coming from
# https://doc.rust-lang.org/nightly/cargo/guide/build-performance.html#reduce-amount-of-generated-debug-information
# for our normal dev work, line-tables are good enough to see line numbers in backtraces.
debug = "line-tables-only"
# mostly for mac os, splits debug info into separate files to speed up incremental builds
# https://corrode.dev/blog/tips-for-faster-rust-compile-times/#macos-only-faster-incremental-debug-builds
split-debuginfo = "unpacked"
[profile.dev.build-override]
# optimize proc macros & build scripts, make them execute faster
# https://corrode.dev/blog/tips-for-faster-rust-compile-times/#avoid-procedural-macro-crates
opt-level = 3
[profile.dev.package."*"]
# no debug information for dependencies
debug = false
[profile.debugging]
# big "debugging" profile, if you need to do real interactive debugging
inherits = "dev"
debug = true