Skip to content

Commit dd3f9b6

Browse files
committed
fix: compile relay tests on Unix
1 parent b7e7234 commit dd3f9b6

5 files changed

Lines changed: 17 additions & 3 deletions

File tree

CHANGELOG.en.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to `ii` are documented here. The default Chinese version is [CHANGELOG.md](CHANGELOG.md).
44

5+
## 0.2.5 - 2026-08-01
6+
7+
### Fixed
8+
9+
- Fixed the missing `PathBuf` import when compiling tests on Unix platforms.
10+
511
## 0.2.4 - 2026-08-01
612

713
### Changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
本文件记录 `ii` 的重要变更。默认中文版本在这里,英文版本见 [CHANGELOG.en.md](CHANGELOG.en.md)
44

5+
## 0.2.5 - 2026-08-01
6+
7+
### 修复
8+
9+
- 修复 Unix 平台构建测试时缺少 `PathBuf` 导入的问题。
10+
511
## 0.2.4 - 2026-08-01
612

713
### 变更

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude = ["vendor/iroh", "vendor/suppaftp"]
44
resolver = "3"
55

66
[workspace.package]
7-
version = "0.2.4"
7+
version = "0.2.5"
88
edition = "2024"
99
rust-version = "1.91"
1010
license = "MIT"

src/relay/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ use state::{load_or_create as load_or_create_state, paths as relay_paths};
1515
mod tests {
1616
use super::*;
1717
use std::fs;
18+
#[cfg(not(target_os = "windows"))]
19+
use std::path::PathBuf;
1820
use tracing::{Level, level_filters::LevelFilter};
1921
fn unused_local_port() -> u16 {
2022
std::net::TcpListener::bind("127.0.0.1:0")

0 commit comments

Comments
 (0)