Skip to content

Commit 6577424

Browse files
committed
Merge #1315: Refactor packages: extract axum-tracker-api-server package
aa415bd refactor: [#1285] extract axum-tracker-api-server (Jose Celano) Pull request description: Refactor packages: extract `axum-tracker-api-server` package ACKs for top commit: josecelano: ACK aa415bd Tree-SHA512: 3a92456faad73c9d3507041e573228b44a12b9850b46afb5c7d8cb6b4d8b7916fc306426c075d2c3270982c045181e2ec21fbc13e63bfbd8e688a80d4116f92f
2 parents 99f25b6 + aa415bd commit 6577424

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+870
-114
lines changed

.github/workflows/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
cargo publish -p torrust-axum-health-check-api-server
6565
cargo publish -p torrust-axum-http-tracker-server
6666
cargo publish -p torrust-axum-server
67+
cargo publish -p torrust-axum-tracker-api-server
6768
cargo publish -p torrust-torrust-server-lib
6869
cargo publish -p torrust-tracker
6970
cargo publish -p torrust-tracker-api-client

Cargo.lock

+37-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-8
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ version = "3.0.0-develop"
3535
[dependencies]
3636
anyhow = "1"
3737
aquatic_udp_protocol = "0"
38-
axum = { version = "0", features = ["macros"] }
39-
axum-extra = { version = "0", features = ["query"] }
4038
axum-server = { version = "0", features = ["tls-rustls-no-provider"] }
4139
bittorrent-http-tracker-core = { version = "3.0.0-develop", path = "packages/http-tracker-core" }
4240
bittorrent-primitives = "0.1.0"
@@ -47,10 +45,8 @@ chrono = { version = "0", default-features = false, features = ["clock"] }
4745
clap = { version = "4", features = ["derive", "env"] }
4846
crossbeam-skiplist = "0"
4947
dashmap = "6"
50-
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
5148
figment = "0"
5249
futures = "0"
53-
hyper = "1"
5450
parking_lot = "0"
5551
percent-encoding = "2"
5652
r2d2 = "0"
@@ -64,21 +60,18 @@ serde_bencode = "0"
6460
serde_bytes = "0"
6561
serde_json = { version = "1", features = ["preserve_order"] }
6662
serde_repr = "0"
67-
serde_with = { version = "3", features = ["json"] }
68-
thiserror = "2"
6963
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
7064
torrust-axum-health-check-api-server = { version = "3.0.0-develop", path = "packages/axum-health-check-api-server" }
7165
torrust-axum-http-tracker-server = { version = "3.0.0-develop", path = "packages/axum-http-tracker-server" }
7266
torrust-axum-server = { version = "3.0.0-develop", path = "packages/axum-server" }
67+
torrust-axum-tracker-api-server = { version = "3.0.0-develop", path = "packages/axum-tracker-api-server" }
7368
torrust-server-lib = { version = "3.0.0-develop", path = "packages/server-lib" }
7469
torrust-tracker-api-core = { version = "3.0.0-develop", path = "packages/tracker-api-core" }
7570
torrust-tracker-clock = { version = "3.0.0-develop", path = "packages/clock" }
7671
torrust-tracker-configuration = { version = "3.0.0-develop", path = "packages/configuration" }
7772
torrust-tracker-primitives = { version = "3.0.0-develop", path = "packages/primitives" }
7873
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "packages/torrent-repository" }
7974
torrust-udp-tracker-server = { version = "3.0.0-develop", path = "packages/udp-tracker-server" }
80-
tower = { version = "0", features = ["timeout"] }
81-
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
8275
tracing = "0"
8376
tracing-subscriber = { version = "0", features = ["json"] }
8477
url = { version = "2", features = ["serde"] }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[package]
2+
authors.workspace = true
3+
description = "The Torrust Tracker API."
4+
documentation.workspace = true
5+
edition.workspace = true
6+
homepage.workspace = true
7+
keywords = ["axum", "bittorrent", "http", "server", "torrust", "tracker"]
8+
license.workspace = true
9+
name = "torrust-axum-tracker-api-server"
10+
publish.workspace = true
11+
readme = "README.md"
12+
repository.workspace = true
13+
rust-version.workspace = true
14+
version.workspace = true
15+
16+
[dependencies]
17+
aquatic_udp_protocol = "0"
18+
axum = { version = "0", features = ["macros"] }
19+
axum-extra = { version = "0", features = ["query"] }
20+
axum-server = { version = "0", features = ["tls-rustls-no-provider"] }
21+
bittorrent-http-tracker-core = { version = "3.0.0-develop", path = "../http-tracker-core" }
22+
bittorrent-primitives = "0.1.0"
23+
bittorrent-tracker-core = { version = "3.0.0-develop", path = "../tracker-core" }
24+
bittorrent-udp-tracker-core = { version = "3.0.0-develop", path = "../udp-tracker-core" }
25+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
26+
futures = "0"
27+
hyper = "1"
28+
reqwest = { version = "0", features = ["json"] }
29+
serde = { version = "1", features = ["derive"] }
30+
serde_json = { version = "1", features = ["preserve_order"] }
31+
serde_with = { version = "3", features = ["json"] }
32+
thiserror = "2"
33+
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
34+
torrust-axum-server = { version = "3.0.0-develop", path = "../axum-server" }
35+
torrust-server-lib = { version = "3.0.0-develop", path = "../server-lib" }
36+
torrust-tracker-api-core = { version = "3.0.0-develop", path = "../tracker-api-core" }
37+
torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
38+
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
39+
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
40+
tower = { version = "0", features = ["timeout"] }
41+
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
42+
tracing = "0"
43+
44+
[dev-dependencies]
45+
local-ip-address = "0"
46+
mockall = "0"
47+
torrust-tracker-api-client = { version = "3.0.0-develop", path = "../tracker-api-client" }
48+
torrust-tracker-test-helpers = { version = "3.0.0-develop", path = "../test-helpers" }

0 commit comments

Comments
 (0)