Skip to content

Commit 3b5cf86

Browse files
committed
refactor: [#1283] extract axum-http-tracker-server package
1 parent d2e301d commit 3b5cf86

Some content is hidden

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

47 files changed

+1017
-207
lines changed

.github/workflows/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
cargo publish -p bittorrent-tracker-core
6262
cargo publish -p bittorrent-udp-tracker-core
6363
cargo publish -p bittorrent-udp-tracker-protocol
64+
cargo publish -p torrust-axum-http-tracker-server
6465
cargo publish -p torrust-axum-server
6566
cargo publish -p torrust-torrust-server-lib
6667
cargo publish -p torrust-tracker
@@ -74,3 +75,5 @@ jobs:
7475
cargo publish -p torrust-tracker-primitives
7576
cargo publish -p torrust-tracker-test-helpers
7677
cargo publish -p torrust-tracker-torrent-repository
78+
79+

Cargo.lock

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

Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,13 @@ version = "3.0.0-develop"
3636
anyhow = "1"
3737
aquatic_udp_protocol = "0"
3838
axum = { version = "0", features = ["macros"] }
39-
axum-client-ip = "0"
4039
axum-extra = { version = "0", features = ["query"] }
4140
axum-server = { version = "0", features = ["tls-rustls-no-provider"] }
4241
bittorrent-http-tracker-core = { version = "3.0.0-develop", path = "packages/http-tracker-core" }
43-
bittorrent-http-tracker-protocol = { version = "3.0.0-develop", path = "packages/http-protocol" }
4442
bittorrent-primitives = "0.1.0"
4543
bittorrent-tracker-client = { version = "3.0.0-develop", path = "packages/tracker-client" }
4644
bittorrent-tracker-core = { version = "3.0.0-develop", path = "packages/tracker-core" }
4745
bittorrent-udp-tracker-core = { version = "3.0.0-develop", path = "packages/udp-tracker-core" }
48-
camino = { version = "1", features = ["serde", "serde1"] }
4946
chrono = { version = "0", default-features = false, features = ["clock"] }
5047
clap = { version = "4", features = ["derive", "env"] }
5148
crossbeam-skiplist = "0"
@@ -73,6 +70,7 @@ serde_repr = "0"
7370
serde_with = { version = "3", features = ["json"] }
7471
thiserror = "2"
7572
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
73+
torrust-axum-http-tracker-server = { version = "3.0.0-develop", path = "packages/axum-http-tracker-server" }
7674
torrust-axum-server = { version = "3.0.0-develop", path = "packages/axum-server" }
7775
torrust-server-lib = { version = "3.0.0-develop", path = "packages/server-lib" }
7876
torrust-tracker-api-core = { version = "3.0.0-develop", path = "packages/tracker-api-core" }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[package]
2+
authors.workspace = true
3+
description = "The Torrust Bittorrent HTTP tracker."
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-http-tracker-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-client-ip = "0"
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-http-tracker-protocol = { version = "3.0.0-develop", path = "../http-protocol" }
23+
bittorrent-primitives = "0.1.0"
24+
bittorrent-tracker-core = { version = "3.0.0-develop", path = "../tracker-core" }
25+
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
26+
futures = "0"
27+
hyper = "1"
28+
reqwest = { version = "0", features = ["json"] }
29+
serde = { version = "1", features = ["derive"] }
30+
thiserror = "2"
31+
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
32+
torrust-axum-server = { version = "3.0.0-develop", path = "../axum-server" }
33+
torrust-server-lib = { version = "3.0.0-develop", path = "../server-lib" }
34+
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
35+
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
36+
tower = { version = "0", features = ["timeout"] }
37+
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
38+
tracing = "0"
39+
40+
[dev-dependencies]
41+
torrust-tracker-test-helpers = { version = "3.0.0-develop", path = "../test-helpers" }

0 commit comments

Comments
 (0)