diff --git a/pubky-testnet/CHANGELOG.md b/pubky-testnet/CHANGELOG.md index 8befcc66..7c26dcea 100644 --- a/pubky-testnet/CHANGELOG.md +++ b/pubky-testnet/CHANGELOG.md @@ -2,19 +2,7 @@ All notable changes to the `pubky-testnet` crate will be documented in this file. -## [0.7.2] - 2026-03-01 - -### Changed - -- Set explicit versions for all workspace dependencies in `Cargo.toml` for better reproducibility when publishing - -## [0.7.1] - 2026-02-27 - -### Changed - -- Set explicit versions for internal pubky dependencies in `Cargo.toml` - -## [0.7.0] - 2026-02-26 +## [0.7.3] - 2026-03-03 ### Added @@ -23,7 +11,7 @@ All notable changes to the `pubky-testnet` crate will be documented in this file ### Changed -- Bumped `pkarr`, `mainline`, and `pkarr-relay` dependencies +- Set explicit versions for all workspace dependencies in `Cargo.toml` for better reproducibility when publishing ### Fixed diff --git a/pubky-testnet/Cargo.toml b/pubky-testnet/Cargo.toml index 1074f2e4..8153e3b3 100644 --- a/pubky-testnet/Cargo.toml +++ b/pubky-testnet/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pubky-testnet" description = "A local test network for Pubky Core development." -version = "0.7.2" +version = "0.7.3" edition.workspace = true authors.workspace = true license.workspace = true @@ -14,26 +14,26 @@ categories = ["web-programming", "authentication", "cryptography"] [dependencies] anyhow = "1.0.101" -pkarr-relay = "0.11.4" +pkarr-relay = "0.11.1" tokio = { version = "1.49.0", features = ["rt-multi-thread", "macros", "signal"] } tracing-subscriber = "0.3.22" url = "2.5.8" -pubky = { path = "../pubky-sdk", version = "0.6.0", features = ["json"] } -pubky-common = { path = "../pubky-common", version = "0.6.0" } -pubky-homeserver = { path = "../pubky-homeserver", version = "0.6.0", default-features = false, features = [ +pubky = { version = "0.6.0", features = ["json"] } +pubky-common = { version = "0.6.0" } +pubky-homeserver = { version = "0.6.0", default-features = false, features = [ "testing", ] } pubky_test_utils = { path = "../test_utils/pubky_test", version = "0.1.0" } http-relay = { path = "../http-relay", version = "0.5.1" } tempfile = "3.19.1" tracing = "0.1.44" -pkarr = { version = "5.0.3", default-features = false, features = ["relays"] } -mainline = "6.1.1" +pkarr = { version = "3.10.0", default-features = false, features = ["dht", "relays"] } +mainline = "5.4.0" clap = "4.5.58" dirs = "6.0.0" once_cell = "1.21.3" -postgresql_embedded = { version = "0.20", optional = true } +postgresql_embedded = { version = "=0.20.0", optional = true } rand = { version = "0.9", optional = true } [features] diff --git a/pubky-testnet/src/static_testnet.rs b/pubky-testnet/src/static_testnet.rs index 03ed5165..5a8d9dab 100644 --- a/pubky-testnet/src/static_testnet.rs +++ b/pubky-testnet/src/static_testnet.rs @@ -149,11 +149,11 @@ impl StaticTestnet { } let mut builder = pkarr::mainline::Dht::builder(); - let dht = builder + builder .port(6881) .bootstrap(other_bootstrap_nodes) - .server_mode() - .build()?; + .server_mode(); + let dht = builder.build()?; Ok(Some(dht)) } diff --git a/pubky-testnet/src/testnet.rs b/pubky-testnet/src/testnet.rs index 303c0be6..06299830 100644 --- a/pubky-testnet/src/testnet.rs +++ b/pubky-testnet/src/testnet.rs @@ -32,7 +32,7 @@ pub struct Testnet { impl Testnet { /// Run a new testnet with a local DHT. pub async fn new() -> Result { - let dht = pkarr::mainline::Testnet::builder(2).build()?; + let dht = pkarr::mainline::Testnet::new_async(2).await?; let testnet = Self { dht, pkarr_relays: vec![], @@ -52,7 +52,7 @@ impl Testnet { pub async fn new_with_custom_postgres( postgres_connection_string: ConnectionString, ) -> Result { - let dht = pkarr::mainline::Testnet::builder(2).build()?; + let dht = pkarr::mainline::Testnet::new_async(2).await?; let testnet: Testnet = Self { dht, pkarr_relays: vec![],