How to escape/de-descape with Serde
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the Serde serialization API around se::to_string and how it writes XML text and attributes. Check the escaping behavior for quotes and other characters, then determine whether the API offers an option or requires lower-level calls; done means the supported way to escape serialized messages is clear and works for the reported protocol use case.
由索引模型根据 Issue 内容生成。
描述
Sorry if I'm spamming with question; my project involves implementing a very complicated XML-encoded protocol so y'all will likely be hearing a lot from me lol.
I just now started sending messages that require escaping and was surprised to find that se::to_string doesn't escape " or ' (I haven't tried other characters) by default. Is there a way to enable this or will I have to get into more low-level APIs for this?
- 主要语言
- Rust
- 星标
- 1.6k
- 派生
- 299
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tafia/quick-xml 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
DecodingReader::set_encoding panics when the XML declaration is longer than 64 bytes可能已有人在做 @emschwartz 于 4 天前认领。 未关闭bug encoding
难度 4/5 3-5 天 新手友好度 30/100
tafia/quick-xml#1040 · 1 条评论 ·
维护者通常 1 天内回复
-
encoding optimization
难度 4/5 3-5 天 新手友好度 55/100
tafia/quick-xml#1039 · 1 条评论 ·
维护者通常 1 天内回复
-
optimization question
难度 4/5 3-5 天 新手友好度 52/100
维护者通常 1 天内回复
-
enhancement
难度 4/5 1-2 天 新手友好度 53/100
tafia/quick-xml#1035 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
[Bug]: opencode_go chat route drops reasoning_effort (even 'none'), while the same endpoint honors it via custom_llm_provider=openai可能已有人在做 @arvindkumar-ship-it 今天认领。 未关闭llm translation
难度 2/5 1-3 小时 新手友好度 70/100
BerriAI/litellm#51871 · 1 条评论 ·
维护者通常 1 天内回复
-
comp-formats
难度 2/5 半天 新手友好度 64/100
ClickHouse/ClickHouse#131694 ·
维护者通常 1 天内回复
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundaries未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
C-Bug S-Needs-Triage
难度 2/5 1-3 小时 新手友好度 72/100
bevyengine/bevy#26558 ·
维护者通常 2 天内回复