Skip to content

Commit fd6e902

Browse files
committed
Merge #1301: Update dependencies
6e74f5f chore(deps): bump derive_more from 1.0.0 to 2.0.1 (Jose Celano) 66c70d9 chore(deps): bump testcontainers from 0.17.0 to 0.23.3 (Jose Celano) d4ec44e chore(deps): udpate dependencies (Jose Celano) Pull request description: Update dependencies. ACKs for top commit: josecelano: ACK 6e74f5f Tree-SHA512: 7d796b840b3c1ebca6df3fb8733a596fe2c3e3a8e6e8bda1c8e056eee657e4caa00f2247f84f34f2bfcf16848b21051c85a45e0995fec0049722ee8f3732e1bc
2 parents 5c48930 + 6e74f5f commit fd6e902

File tree

10 files changed

+170
-166
lines changed

10 files changed

+170
-166
lines changed

Cargo.lock

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

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ chrono = { version = "0", default-features = false, features = ["clock"] }
4747
clap = { version = "4", features = ["derive", "env"] }
4848
crossbeam-skiplist = "0"
4949
dashmap = "6"
50-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
50+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
5151
figment = "0"
5252
futures = "0"
5353
futures-util = "0"

packages/axum-http-tracker-server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bittorrent-http-tracker-core = { version = "3.0.0-develop", path = "../http-trac
2222
bittorrent-http-tracker-protocol = { version = "3.0.0-develop", path = "../http-protocol" }
2323
bittorrent-primitives = "0.1.0"
2424
bittorrent-tracker-core = { version = "3.0.0-develop", path = "../tracker-core" }
25-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
25+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
2626
futures = "0"
2727
hyper = "1"
2828
reqwest = { version = "0", features = ["json"] }

packages/configuration/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version.workspace = true
1616

1717
[dependencies]
1818
camino = { version = "1", features = ["serde", "serde1"] }
19-
derive_more = { version = "1", features = ["constructor", "display"] }
19+
derive_more = { version = "2", features = ["constructor", "display"] }
2020
figment = { version = "0", features = ["env", "test", "toml"] }
2121
serde = { version = "1", features = ["derive"] }
2222
serde_json = { version = "1", features = ["preserve_order"] }

packages/http-protocol/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ version.workspace = true
1818
aquatic_udp_protocol = "0"
1919
bittorrent-primitives = "0.1.0"
2020
bittorrent-tracker-core = { version = "3.0.0-develop", path = "../tracker-core" }
21-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
21+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
2222
multimap = "0"
2323
percent-encoding = "2"
2424
serde = { version = "1", features = ["derive"] }

packages/primitives/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ version.workspace = true
1818
aquatic_udp_protocol = "0"
1919
binascii = "0"
2020
bittorrent-primitives = "0.1.0"
21-
derive_more = { version = "1", features = ["constructor"] }
21+
derive_more = { version = "2", features = ["constructor"] }
2222
serde = { version = "1", features = ["derive"] }
2323
tdyne-peer-id = "1"
2424
tdyne-peer-id-registry = "0"

packages/server-lib/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust-version.workspace = true
1414
version.workspace = true
1515

1616
[dependencies]
17-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
17+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
1818
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
1919
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
2020
tracing = "0"

packages/tracker-client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ version.workspace = true
1717
[dependencies]
1818
aquatic_udp_protocol = "0"
1919
bittorrent-primitives = "0.1.0"
20-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
20+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
2121
hyper = "1"
2222
percent-encoding = "2"
2323
reqwest = { version = "0", features = ["json"] }

packages/tracker-core/Cargo.toml

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[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"
62
authors.workspace = true
3+
description = "A library with the core functionality needed to implement a BitTorrent tracker."
74
documentation.workspace = true
85
edition.workspace = true
96
homepage.workspace = true
7+
keywords = ["api", "bittorrent", "core", "library", "tracker"]
108
license.workspace = true
9+
name = "bittorrent-tracker-core"
1110
publish.workspace = true
11+
readme = "README.md"
1212
repository.workspace = true
1313
rust-version.workspace = true
1414
version.workspace = true
@@ -17,7 +17,7 @@ version.workspace = true
1717
aquatic_udp_protocol = "0"
1818
bittorrent-primitives = "0.1.0"
1919
chrono = { version = "0", default-features = false, features = ["clock"] }
20-
derive_more = { version = "1", features = ["as_ref", "constructor", "from"] }
20+
derive_more = { version = "2", features = ["as_ref", "constructor", "from"] }
2121
mockall = "0"
2222
r2d2 = "0"
2323
r2d2_mysql = "25"
@@ -26,13 +26,7 @@ rand = "0"
2626
serde = { version = "1", features = ["derive"] }
2727
serde_json = { version = "1", features = ["preserve_order"] }
2828
thiserror = "2"
29-
tokio = { version = "1", features = [
30-
"macros",
31-
"net",
32-
"rt-multi-thread",
33-
"signal",
34-
"sync",
35-
] }
29+
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
3630
torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
3731
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
3832
torrust-tracker-located-error = { version = "3.0.0-develop", path = "../located-error" }
@@ -43,7 +37,7 @@ tracing = "0"
4337
[dev-dependencies]
4438
local-ip-address = "0"
4539
mockall = "0"
40+
testcontainers = "0"
4641
torrust-tracker-api-client = { version = "3.0.0-develop", path = "../tracker-api-client" }
4742
torrust-tracker-test-helpers = { version = "3.0.0-develop", path = "../test-helpers" }
48-
testcontainers = "0.17.0"
4943
url = "2.5.4"

packages/tracker-core/src/databases/driver/mysql.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl Database for Mysql {
268268
mod tests {
269269
use std::sync::Arc;
270270

271+
use testcontainers::core::IntoContainerPort;
271272
/*
272273
We run a MySQL container and run all the tests against the same container and database.
273274
@@ -285,7 +286,7 @@ mod tests {
285286
If we increase the number of methods or the number or drivers.
286287
*/
287288
use testcontainers::runners::AsyncRunner;
288-
use testcontainers::{ContainerAsync, GenericImage};
289+
use testcontainers::{ContainerAsync, GenericImage, ImageExt};
289290
use torrust_tracker_configuration::Core;
290291

291292
use super::Mysql;
@@ -298,12 +299,12 @@ mod tests {
298299
impl StoppedMysqlContainer {
299300
async fn run(self, config: &MysqlConfiguration) -> Result<RunningMysqlContainer, Box<dyn std::error::Error + 'static>> {
300301
let container = GenericImage::new("mysql", "8.0")
302+
.with_exposed_port(config.internal_port.tcp())
303+
// todo: this does not work
304+
//.with_wait_for(WaitFor::message_on_stdout("ready for connections"))
301305
.with_env_var("MYSQL_ROOT_PASSWORD", config.db_root_password.clone())
302306
.with_env_var("MYSQL_DATABASE", config.database.clone())
303307
.with_env_var("MYSQL_ROOT_HOST", "%")
304-
.with_exposed_port(config.internal_port)
305-
// todo: this doesn't work
306-
//.with_wait_for(WaitFor::message_on_stdout("ready for connections"))
307308
.start()
308309
.await?;
309310

0 commit comments

Comments
 (0)