Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ notify = "8"
# 请求历史。bundled 是刻意的:零外部依赖,用户不必装 sqlite
rusqlite = { version = "0.40", features = ["bundled"] }
libc = "0.2"
# Windows 上问系统要网卡清单。**纯 Rust 的绑定**,不编译任何 C ——
# 和 unix 那边直接用 libc 是同一个取舍,见 tw-config 的 nics。
windows-sys = "0.61"
# 内置价目表压缩着放(2.3 MB → 110 KB)
flate2 = "1"
# regex-automata / regex-syntax 已经在依赖树里(tracing 的 EnvFilter),
Expand Down
9 changes: 9 additions & 0 deletions crates/tw-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,14 @@ notify = { workspace = true }
libc = { workspace = true }
tokio = { workspace = true }

[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
# IP_ADAPTER_ADDRESSES_LH 挂在这个 feature 下,不是 IpHelper 下
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
] }

[dev-dependencies]
tempfile = "3"
Loading
Loading