All contributions

rust-syndication/rss

rust-syndication/rss

A Rust library for reading, writing and validating RSS feeds.

Language
Rust
GitHub stars
504
Merged changes
1
Project site
crates.io

What we changed

Feed image validation accepts heights up to 400 pixels, the maximum the RSS 2.0 spec allows, instead of the 144 limit copied from the width.

What this work shows

  • RSS 2.0 specification
  • Data validation in Rust
  • Feature-gated tests in Cargo
What was broken

A 200 pixel height was an error

Image validation checked the height against the range 0 to 144, copied from the width. The RSS 2.0 specification allows a width up to 144 but a height up to 400, so a valid image with a height of 200 was reported as invalid.

How we fixed it

A height limit that matches the spec

The height is now checked against 0 to 400, with a corrected error message, and the width stays at 144. A regression test accepts a height of 400 and rejects 401.

#194

Merged change 1

  1. #194 Fix image height validation to allow the spec maximum of 400 Merged 5 September 2026

What it taught us

When validating data we check every limit against the spec, not against the neighbouring field: here the image height had a limit copied from the width, so valid RSS feeds were rejected.

More about this technology: Rust

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.