chore(deps): use [workspace.dependencies] consistently and converge thiserror / heapless / rand versions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 90
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 35/100
维护者通常 1 天内回复
相似的 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 天内回复