Skip to content

Commit a5ca244

Browse files
committed
refactor: [#1223] extract tracker-core workspace package
1 parent de7c6f0 commit a5ca244

File tree

90 files changed

+1830
-991
lines changed

Some content is hidden

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

90 files changed

+1830
-991
lines changed

.github/workflows/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
run: |
5858
cargo publish -p bittorrent-http-protocol
5959
cargo publish -p bittorrent-tracker-client
60+
cargo publish -p bittorrent-tracker-core
6061
cargo publish -p torrust-tracker
6162
cargo publish -p torrust-tracker-api-client
6263
cargo publish -p torrust-tracker-client

Cargo.lock

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

Cargo.toml

+13-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ axum-server = { version = "0", features = ["tls-rustls-no-provider"] }
4242
bittorrent-http-protocol = { version = "3.0.0-develop", path = "packages/http-protocol" }
4343
bittorrent-primitives = "0.1.0"
4444
bittorrent-tracker-client = { version = "3.0.0-develop", path = "packages/tracker-client" }
45+
bittorrent-tracker-core = { version = "3.0.0-develop", path = "packages/tracker-core" }
4546
bloom = "0.3.2"
4647
blowfish = "0"
4748
camino = { version = "1", features = ["serde", "serde1"] }
@@ -90,7 +91,17 @@ uuid = { version = "1", features = ["v4"] }
9091
zerocopy = "0.7"
9192

9293
[package.metadata.cargo-machete]
93-
ignored = ["crossbeam-skiplist", "dashmap", "figment", "parking_lot", "serde_bytes"]
94+
ignored = [
95+
"crossbeam-skiplist",
96+
"dashmap",
97+
"figment",
98+
"parking_lot",
99+
"r2d2",
100+
"r2d2_mysql",
101+
"r2d2_sqlite",
102+
"serde_bytes",
103+
"torrust-tracker-torrent-repository",
104+
]
94105

95106
[dev-dependencies]
96107
local-ip-address = "0"
@@ -109,6 +120,7 @@ members = [
109120
"packages/torrent-repository",
110121
"packages/tracker-api-client",
111122
"packages/tracker-client",
123+
"packages/tracker-core",
112124
]
113125

114126
[profile.dev]

packages/tracker-core/Cargo.toml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[package]
2+
description = "A library with the core functionality needed to implement a BitTorrent tracker."
3+
keywords = ["api", "bittorrent", "core", "library", "tracker"]
4+
name = "bittorrent-tracker-core"
5+
readme = "README.md"
6+
7+
authors.workspace = true
8+
documentation.workspace = true
9+
edition.workspace = true
10+
homepage.workspace = true
11+
license.workspace = true
12+
publish.workspace = true
13+
repository.workspace = true
14+
rust-version.workspace = true
15+
version.workspace = true
16+
17+
[dependencies]
18+
aquatic_udp_protocol = "0"
19+
bittorrent-http-protocol = { version = "3.0.0-develop", path = "../http-protocol" }
20+
bittorrent-primitives = "0.1.0"
21+
chrono = { version = "0", default-features = false, features = ["clock"] }
22+
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
23+
futures = "0"
24+
r2d2 = "0"
25+
r2d2_mysql = "25"
26+
r2d2_sqlite = { version = "0", features = ["bundled"] }
27+
rand = "0"
28+
serde = { version = "1", features = ["derive"] }
29+
serde_json = { version = "1", features = ["preserve_order"] }
30+
thiserror = "2"
31+
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
32+
torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
33+
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
34+
torrust-tracker-located-error = { version = "3.0.0-develop", path = "../located-error" }
35+
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
36+
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "../torrent-repository" }
37+
tracing = "0"
38+
39+
[dev-dependencies]
40+
local-ip-address = "0"
41+
mockall = "0"
42+
torrust-tracker-api-client = { version = "3.0.0-develop", path = "../tracker-api-client" }
43+
torrust-tracker-test-helpers = { version = "3.0.0-develop", path = "../test-helpers" }

0 commit comments

Comments
 (0)