Skip to content

Commit fc93db0

Browse files
sypharGuillaumeGomez
authored andcommitted
sort Cargo.toml files
1 parent c722dbd commit fc93db0

21 files changed

Lines changed: 94 additions & 96 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
[workspace]
22
resolver = "2"
33

4-
members = [
5-
"crates/bin/*",
6-
"crates/lib/*",
7-
]
4+
members = ["crates/bin/*", "crates/lib/*"]
85

96
default-members = [
10-
"crates/bin/docs_rs_admin",
11-
"crates/bin/docs_rs_builder",
12-
"crates/bin/docs_rs_watcher",
13-
"crates/bin/docs_rs_web",
7+
"crates/bin/docs_rs_admin",
8+
"crates/bin/docs_rs_builder",
9+
"crates/bin/docs_rs_watcher",
10+
"crates/bin/docs_rs_web",
1411
]
1512

1613
exclude = [
@@ -23,7 +20,7 @@ exclude = [
2320
]
2421

2522
[workspace.dependencies]
26-
anyhow = { version = "1.0.42", features = ["backtrace"]}
23+
anyhow = { version = "1.0.42", features = ["backtrace"] }
2724
askama = "0.15.1"
2825
async-stream = "0.3.5"
2926
axum-extra = { version = "0.12.0", features = ["typed-header", "routing", "middleware"] }

crates/bin/docs_rs_builder/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docs_rs_config = { path = "../../lib/docs_rs_config" }
1616
docs_rs_context = { path = "../../lib/docs_rs_context" }
1717
docs_rs_database = { path = "../../lib/docs_rs_database" }
1818
docs_rs_env_vars = { path = "../../lib/docs_rs_env_vars" }
19-
docs_rs_fastly= { path = "../../lib/docs_rs_fastly" }
19+
docs_rs_fastly = { path = "../../lib/docs_rs_fastly" }
2020
docs_rs_logging = { path = "../../lib/docs_rs_logging" }
2121
docs_rs_opentelemetry = { path = "../../lib/docs_rs_opentelemetry" }
2222
docs_rs_registry_api = { path = "../../lib/docs_rs_registry_api" }
@@ -45,7 +45,7 @@ docs_rs_build_queue = { path = "../../lib/docs_rs_build_queue", features = ["tes
4545
docs_rs_config = { path = "../../lib/docs_rs_config", features = ["testing"] }
4646
docs_rs_context = { path = "../../lib/docs_rs_context", features = ["testing"] }
4747
docs_rs_database = { path = "../../lib/docs_rs_database", features = ["testing"] }
48-
docs_rs_fastly= { path = "../../lib/docs_rs_fastly", features = ["testing"] }
48+
docs_rs_fastly = { path = "../../lib/docs_rs_fastly", features = ["testing"] }
4949
docs_rs_headers = { path = "../../lib/docs_rs_headers", features = ["testing"] }
5050
docs_rs_storage = { path = "../../lib/docs_rs_storage", features = ["testing"] }
5151
docs_rs_types = { path = "../../lib/docs_rs_types", features = ["testing"] }

crates/bin/docs_rs_watcher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2024"
1010
anyhow = { workspace = true }
1111
clap = { workspace = true }
1212
crates-index = { version = "3.0.0", default-features = false, features = ["git", "git-https", "git-performance", "parallel"] }
13-
crates-index-diff = { version = "29.0.0", features = [ "max-performance" ]}
13+
crates-index-diff = { version = "29.0.0", features = [ "max-performance" ] }
1414
docs_rs_build_queue = { path = "../../lib/docs_rs_build_queue" }
1515
docs_rs_config = { path = "../../lib/docs_rs_config" }
1616
docs_rs_context = { path = "../../lib/docs_rs_context" }

crates/bin/docs_rs_web/Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ repository = "https://github.com/rust-lang/docs.rs"
77
edition = "2024"
88
build = "build.rs"
99

10+
[package.metadata.cargo-machete]
11+
ignored = [
12+
"phf",
13+
# used in build script output
14+
"slug", # used in askama templates, can be moved to web binary
15+
]
16+
1017
[dependencies]
1118
anyhow = { workspace = true }
1219
askama = { workspace = true }
@@ -64,7 +71,7 @@ toml = { workspace = true }
6471
tower = "0.5.1"
6572
tower-http = { version = "0.6.0", features = ["fs", "trace", "timeout", "catch-panic"] }
6673
tracing = { workspace = true }
67-
tracing-futures= { version = "0.2.5", features = ["std-future", "futures-03"] }
74+
tracing-futures = { version = "0.2.5", features = ["std-future", "futures-03"] }
6875
url = { workspace = true }
6976

7077
[build-dependencies]
@@ -93,9 +100,3 @@ pretty_assertions = { workspace = true }
93100
test-case = { workspace = true }
94101
walkdir = { workspace = true }
95102

96-
[package.metadata.cargo-machete]
97-
ignored = [
98-
"phf", # used in build script output
99-
"slug", # used in askama templates, can be moved to web binary
100-
]
101-

crates/lib/docs_rs_build_limits/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ docs_rs_config = { path = "../docs_rs_config" }
1111
docs_rs_env_vars = { path = "../docs_rs_env_vars" }
1212
docs_rs_types = { path = "../docs_rs_types" }
1313
futures-util = { workspace = true }
14-
serde = { workspace = true}
14+
serde = { workspace = true }
1515
sqlx = { workspace = true }
16-
tracing = { workspace = true }
1716
thiserror = { workspace = true }
17+
tracing = { workspace = true }
1818

1919
[dev-dependencies]
2020
docs_rs_database = { path = "../docs_rs_database", features = ["testing"] }

crates/lib/docs_rs_build_queue/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ license = "MIT"
55
repository = "https://github.com/rust-lang/docs.rs"
66
edition = "2024"
77

8+
[features]
9+
testing = [
10+
"docs_rs_config/testing",
11+
"docs_rs_database/testing",
12+
"docs_rs_opentelemetry/testing",
13+
"docs_rs_types/testing",
14+
]
15+
816
[dependencies]
917
anyhow = { workspace = true }
1018
chrono = { workspace = true }
@@ -20,16 +28,8 @@ tokio = { workspace = true }
2028
tracing = { workspace = true }
2129

2230
[dev-dependencies]
23-
docs_rs_opentelemetry = { path = "../docs_rs_opentelemetry", features = ["testing"] }
2431
docs_rs_database = { path = "../docs_rs_database", features = ["testing"] }
25-
docs_rs_utils = { path = "../../lib/docs_rs_utils", features = ["testing"] }
32+
docs_rs_opentelemetry = { path = "../docs_rs_opentelemetry", features = ["testing"] }
2633
docs_rs_types = { path = "../docs_rs_types", features = ["testing"] }
34+
docs_rs_utils = { path = "../../lib/docs_rs_utils", features = ["testing"] }
2735
pretty_assertions = { workspace = true }
28-
29-
[features]
30-
testing = [
31-
"docs_rs_config/testing",
32-
"docs_rs_database/testing",
33-
"docs_rs_opentelemetry/testing",
34-
"docs_rs_types/testing",
35-
]

crates/lib/docs_rs_cargo_metadata/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ license = "MIT"
55
repository = "https://github.com/rust-lang/docs.rs"
66
edition = "2024"
77

8+
[features]
9+
testing = []
10+
811
[dependencies]
912
anyhow = { workspace = true }
1013
derive_more = { workspace = true }
@@ -14,6 +17,3 @@ serde_json = { workspace = true }
1417

1518
[dev-dependencies]
1619
test-case = { workspace = true }
17-
18-
[features]
19-
testing = []

crates/lib/docs_rs_config/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "docs_rs_config"
33
version = "0.1.0"
44
edition = "2024"
55

6-
[dependencies]
7-
anyhow = { workspace = true }
8-
96
[features]
107
testing = []
118

9+
[dependencies]
10+
anyhow = { workspace = true }
11+

crates/lib/docs_rs_context/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ license = "MIT"
55
repository = "https://github.com/rust-lang/docs.rs"
66
edition = "2024"
77

8+
[features]
9+
testing = [
10+
"dep:docs_rs_logging",
11+
"dep:docs_rs_test_fakes",
12+
"docs_rs_database/testing",
13+
"docs_rs_fastly/testing",
14+
"docs_rs_logging/testing",
15+
"docs_rs_storage/testing",
16+
]
17+
818
[dependencies]
919
anyhow = { workspace = true }
1020
bon = { workspace = true }
@@ -20,13 +30,3 @@ docs_rs_repository_stats = { path = "../docs_rs_repository_stats" }
2030
docs_rs_storage = { path = "../docs_rs_storage" }
2131
docs_rs_test_fakes = { path = "../docs_rs_test_fakes", optional = true }
2232
tokio = { workspace = true }
23-
24-
[features]
25-
testing = [
26-
"dep:docs_rs_logging",
27-
"dep:docs_rs_test_fakes",
28-
"docs_rs_database/testing",
29-
"docs_rs_fastly/testing",
30-
"docs_rs_logging/testing",
31-
"docs_rs_storage/testing",
32-
]

crates/lib/docs_rs_database/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ repository = "https://github.com/rust-lang/docs.rs"
66
edition = "2024"
77
build = "build.rs"
88

9+
[features]
10+
testing = [
11+
"dep:rand",
12+
"docs_rs_config/testing",
13+
"docs_rs_opentelemetry/testing",
14+
]
15+
916
[dependencies]
1017
anyhow = { workspace = true }
1118
chrono = { workspace = true }
12-
docs_rs_config = { path = "../docs_rs_config" }
1319
docs_rs_cargo_metadata = { path = "../docs_rs_cargo_metadata" }
20+
docs_rs_config = { path = "../docs_rs_config" }
1421
docs_rs_env_vars = { path = "../docs_rs_env_vars" }
1522
docs_rs_opentelemetry = { path = "../docs_rs_opentelemetry" }
16-
docs_rs_registry_api= { path = "../docs_rs_registry_api" }
23+
docs_rs_registry_api = { path = "../docs_rs_registry_api" }
1724
docs_rs_types = { path = "../docs_rs_types" }
1825
docs_rs_utils = { path = "../docs_rs_utils" }
1926
futures-util = { workspace = true }
@@ -31,17 +38,10 @@ tokio = { workspace = true }
3138
tracing = { workspace = true }
3239

3340
[dev-dependencies]
34-
docs_rs_config = { path = "../docs_rs_config", features = ["testing"] }
3541
docs_rs_cargo_metadata = { path = "../docs_rs_cargo_metadata", features = ["testing"] }
42+
docs_rs_config = { path = "../docs_rs_config", features = ["testing"] }
3643
docs_rs_opentelemetry = { path = "../docs_rs_opentelemetry", features = ["testing"] }
3744
docs_rs_types = { path = "../docs_rs_types", features = ["testing"] }
3845
rand = { workspace = true }
3946
tempfile = { workspace = true }
4047
test-case = { workspace = true }
41-
42-
[features]
43-
testing = [
44-
"dep:rand",
45-
"docs_rs_config/testing",
46-
"docs_rs_opentelemetry/testing",
47-
]

0 commit comments

Comments
 (0)