parse-srcset 0.1.1

Parse an HTML img srcset attribute into image candidates (url + density/width/height). A faithful port of the WHATWG-based parse-srcset npm package. Zero dependencies, no_std.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Changelog

All notable changes to this project are documented here. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] - 2026-06-22

### Added

- Initial release.
- `parse_srcset` — parse a `srcset` attribute into a `Vec<ImageCandidate>`.
- `ImageCandidate` with `url`, `density`, `width`, and `height`.
- Faithful to the `parse-srcset` npm package (WHATWG srcset parsing algorithm):
  the descriptor tokenizer, `w`/`x`/`h` validation, comma-in-URL handling, and
  skipping of invalid candidates. Zero dependencies; `#![no_std]`.

[0.1.0]: https://github.com/trananhtung/parse-srcset/releases/tag/v0.1.0