Skip to content

build(deps): quick-xml 0.41 → 0.42(String 人机工学迁移) - #10

Merged
loong10k merged 1 commit into
mainfrom
feat/quick-xml-0.42-v2
Sep 17, 2026
Merged

loong10k merged 1 commit into
mainfrom
feat/quick-xml-0.42-v2

Conversation

@loong10k

Copy link
Copy Markdown
Contributor

内容

0.42 将 Name 类型(QName/LocalName 等)与事件内容从 &[u8] 改为 &str(Rust 2024 / MSRV 1.86),迁移要点:

  • sax.rs 常量表 const X: &[u8] = b"..." → &str = "...",全文件比较与 match 判据自动适配
  • numbering.rs / image.rs / easydoc-mcp tools.rs 字节字面量 → 字符串字面量;extract_u32_attr / extract_u8_attr 签名 &[u8] → &str
  • omml_to_latex.rs 去掉多余 from_utf8 包装;BytesText / Attribute::value 直接取 &str / Cow<str>(保持 0.41 的不反转义语义不变,行为零漂移)

supersede #4

验证

  • 全量 workspace 测试 0 失败(1,140 用例)
  • clippy 0 警告;fmt 干净

- 0.42 将 Name 类型/事件内容从 &[u8] 改为 &str(Rust 2024 / MSRV 1.86)
- sax.rs 常量表 &[u8] = b"..." → &str = "...",全文件比较与 match 判据自动适配
- numbering.rs / image.rs / easydoc-mcp tools.rs 字节字面量 → 字符串字面量,
  extract_u32_attr / extract_u8_attr 签名 &[u8] → &str
- omml_to_latex.rs 去掉多余 from_utf8 包装;BytesText / Attribute::value
  直接取 &str / Cow<str>(保持 0.41 的不反转义语义不变)
- 全量 1140 测试通过;clippy / fmt 干净

supersede dependabot #4
@loong10k
loong10k merged commit 964e69f into main Sep 17, 2026
11 checks passed
@loong10k
loong10k deleted the feat/quick-xml-0.42-v2 branch September 17, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant