netwatch: chrono is built on Windows but never used

オープン
#280 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
33/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

In the Windows-specific netwatch dependency setup, remove the direct chrono version line and disable wmi's default features as described. Start by reading the netwatch Cargo.toml entries and check the existing draft pull request for the proposed two-line change. Done when the Windows-target cargo check passes and cargo tree --target all -i chrono shows no compiled dependency path.

索引モデルが issue の本文から書いたものです。

説明

On Windows, netwatch depends on wmi with default features, which pulls in chrono, plus a direct chrono = "0.4.23" line that only pins a minimum version. netwatch reads one string field from WMI (the default route's interface name) and never touches a date type. Seen on netwatch 0.20.2 and on main at 40fc258.

chrono is now flagged unmaintained (RUSTSEC-2026-0543), and you already ignore that in deny.toml. Dropping the direct line and using wmi with default-features = false stops it from being built. The change is two lines and waits here as a draft: https://github.com/irsync-dev/net-tools/pull/1

With it, cargo check -p netwatch --target x86_64-pc-windows-msvc --all-targets passes and cargo tree --target all -i chrono is empty. chrono stays in Cargo.lock as an optional dependency of wmi, but nothing compiles it.

#226 would make this moot by removing WMI altogether, but this is small and could land first. Happy to send the PR if you want it.

主要言語
Rust
スター
34
フォーク
56
平均マージ
2日 4時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

n0-computer/net-tools のほかの issue

n0-computer/net-tools の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。