Drop the embassy-sync git patch once a release carries poll_next_message / poll_changed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start with the [patch.crates-io] block in the workspace Cargo.toml and the matching dependency lines in aimdb-mqtt-connector/Cargo.toml, then check crates.io for an embassy-sync release that includes poll_next_message and poll_changed. Only after that release exists, bump the crates, remove the patch entries, and update PUBLISH_NO_VERIFY in the Makefile. Done means the workspace resolves from registry releases and the embedded build (make test-embedded) passes. The work is blocked on upstream, so confirm the release status with a maintainer first.
由索引模型根据 Issue 内容生成。
描述
Tracking issue for moving embassy-sync (and the two crates that follow it) back to crates.io releases.
Background
aimdb-embassy-adapter/src/buffer.rs polls Subscriber::poll_next_message and Receiver::poll_changed directly. Both are merged upstream but not in embassy-sync 0.8.0, still the latest on crates.io. The workspace therefore patches them in (Cargo.toml, [patch.crates-io], added in #343 for #341):
embassy-sync→ embassy git rev03c826fembassy-net-driver-channelandembassy-net-driver→ same rev. Publishedembassy-net-driver-channel0.4.0 calls the pre-guardzerocopy_channelAPI the patched embassy-sync no longer has, and its driver trait must be the same instanceembassy-netsees.
Consequences while the patch is in place:
- Publishing: patches are not published, so the packaged
aimdb-embassy-adaptercannot build itsembassy-syncfeature for a downstream user. The Makefile publishes it without verification (PUBLISH_NO_VERIFY) for this reason. The vendored copy carries the same0.8.0version as the registry release, so nothing flags the mismatch. - Other embassy bumps: pinning further embassy-* crates to git is constrained by this rev. E.g. pointing
embassy-stm32at03c826fto pick up theBufferedUartTX fix fails to resolve (embassy-time-driverconflict), see #382 / #385.
To do once a release carries both APIs
- Bump
embassy-syncin the workspaceCargo.tomland inaimdb-mqtt-connector/Cargo.toml(it declares its ownembassy-sync = "0.8.0"). - Remove the three
[patch.crates-io]entries and their comment; bumpembassy-net-driver-channel/embassy-net-driver(orembassy-net) to releases that match the new embassy-sync. - Drop
aimdb-embassy-adapterfromPUBLISH_NO_VERIFYin the Makefile and update its comment (it still points at #242). - Update the comments that point at the patch (
aimdb-mqtt-connector/Cargo.toml,aimdb-embassy-adapter/src/buffer.rsaround thepoll_*calls). - Check whether this unblocks #385 (embassy-stm32 with the
BufferedUartfix) so both can move together. - Build the embedded targets (
make test-embeddedor equivalent) and smoke-test one Embassy demo on the NUCLEO-H563ZI.
- 主要语言
- 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 天内回复