chore(deps): use [workspace.dependencies] consistently and converge thiserror / heapless / rand versions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system
調査の方向性
Start by comparing the root Cargo.toml workspace dependencies with the crate manifests listed in the issue, then inspect Cargo.lock for the named version splits. Work one dependency at a time, as suggested, and check the affected manifests and tests for compatibility. Done means first-party dependencies consistently use workspace declarations where possible and the specified version splits are resolved or documented as required.
索引モデルが issue の本文から書いたものです。
説明
Problem
The root Cargo.toml declares a [workspace.dependencies] table, but many crates re-declare the same dependencies with their own version strings, so the table is not the single source of truth it looks like.
Re-declared instead of workspace = true
tokio:aimdb-tcp-connector,aimdb-uds-connector,aimdb-serial-connector,aimdb-websocket-connector,aimdb-client,tools/aimdb-cli,examples/serve-records-http-demo("1");aimdb-sync("1.40");tools/aimdb-mcp,examples/remote-access-demo("1.48"). Workspace says1.49.serde/serde_json: about a dozen manifests (aimdb-tokio-adapter,aimdb-uds-connector,aimdb-websocket-connector,aimdb-client,aimdb-sync,aimdb-cdr,aimdb-data-contracts,aimdb-zenoh-connector,tools/aimdb-cli,tools/aimdb-mcp,examples/remote-access-demo).futures,tracing,clap,anyhow,log:aimdb-core,aimdb-client,aimdb-mqtt-connector,aimdb-embassy-adapter,aimdb-bench,aimdb-websocket-connector,aimdb-tokio-adapter,tools/aimdb-cli,tools/aimdb-mcp, and two examples.embassy-sync,embassy-time,embassy-net:aimdb-mqtt-connector/Cargo.toml:157-164.
Real version splits inside our own crates
thiserror:aimdb-client,tools/aimdb-cli,tools/aimdb-mcpare on 1.x; workspace,aimdb-coreandaimdb-syncare on 2.x. Both end up inCargo.lock.heapless: workspace (used byaimdb-knx-connector,aimdb-mqtt-connector, two embassy demos) is0.8;aimdb-core,aimdb-embassy-adapterandaimdb-tcp-connectordeclare0.9directly. Part of this is forced (mountain-mqttpacket types takeheapless0.8Vec; embassy-net uses 0.9), so it may not be fully removable.rand:aimdb-mqtt-connectordev-depends on0.8;aimdb-embassy-adapter,tools/embedded-check-fixtureand the embassy demos use0.10.1.
For context, Cargo.lock has 58 of 643 crates in more than one version. Most of the rest is transitive (zenoh, axum — e.g. three tungstenite versions via zenoh-link-ws, our direct 0.26, and axum) and out of our hands.
Suggested work
- Move each first-party use of a workspace-declared dependency to
{ workspace = true, features = [...] }, adding the missing ones (e.g.heapless0.9 under a second alias) to the table. - Bump
aimdb-client,aimdb-cliandaimdb-mcptothiserror2. - Bump the
randdev-dependency inaimdb-mqtt-connectorto 0.10 if the tests allow. - Decide whether
heapless0.8 can be confined to the crates that need it formountain-mqtt.
Mechanical, but touches many manifests; best done in one PR per dependency.
Notes
Derived from the manifests and Cargo.lock at d9c7be0. cargo tree was not run (the embassy git patch could not be fetched offline), so parent crates were read from the lockfile.
- 主要言語
- Rust
- スター
- 101
- フォーク
- 20
- 平均マージ
- 2時間 33分
- マージ済み PR(30日)
- 90
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aimdb-dev/aimdb のほかの issue
-
🏷️ good first issue enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
aimdb-dev/aimdb の issue をすべて見る
似ている issue
-
Panic on live viewport resize when unstyled elements exist in display: none subtree対応中かも @GoCoder7 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DioxusLabs/blitz#1488 ·
メンテナーはふだん 1 日以内に返信
-
S-Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vectordotdev/vrl#2042 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信