Reimplement #[bitcode(with_serde)]
还没有人认领这个 Issue。
评估
调研方向
该 issue 未指定文件、测试或入口点。首先比较当前的 0.6 实现与之前的 0.5 功能,然后确定 #[bitcode(with_serde)] 应如何支持 serde::Serialize 字段,同时处理所述的集合限制。当该功能已针对所请求的第三方类型重新实现,并且其行为得到验证时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
There have been many requests for supporting 3rd party crates such as: time, rust_decimal, uuid, and chrono. Rather than implementing support manually for these crates and more, an easier solution is to allow types implementing serde::Serialize inside types implementing bitcode::Encode.
This was previously a feature in 0.5, but we didn't reimplement it in the 0.6 rewrite due due to technical limitations. I have since found a path forward and intend to add this feature to 0.6.
The downsides of using serde instead of implementing these types in native bitcode are:
- Worse performance
- Requiring
#[bitcode(with_serde)]annotations on every field where serde is used - Doesn't work well on collection types since it forces everything inside them to use serde
1 and 2 aren't much of an issue if serde is used infrequently. 3 poses more of an issue, but so far none of the types requested are collections. We could mitigate it by implementing some of the popular collections such as IndexMap.
- 主要语言
- Rust
- 星标
- 675
- 派生
- 61
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SoftbearStudios/bitcode 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
SoftbearStudios/bitcode#122 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
SoftbearStudios/bitcode#121 · 2 条评论 ·
-
Implement #[bitcode(with = LocalType)] RemoteType可能已有人在做 @finnbear 于 110 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 35/100
SoftbearStudios/bitcode#115 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
SoftbearStudios/bitcode#110 · 1 个 reaction ·
-
BUffer for serde?可能重新可做 @caibear 于 237 天前认领,目前没有进行中的 PR。 未关闭
SoftbearStudios/bitcode#102 · 1 条评论 · 已指派 1 人 ·
查看 SoftbearStudios/bitcode 的全部 Issue
相似的 Issue
-
Four problem loader browser tests fail on Windows可能已有人在做 @Patriciaath999 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
starkware-libs/sequencer#15229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 66/100
ActivityWatch/aw-notify-rs#47 · 1 条评论 ·