summaryrefslogtreecommitdiffstats
path: root/third_party/rust/xmldecl/README.md
blob: 9adfefd7e612baa37325d17f87345c4f1db4bf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# xmldecl

[![crates.io](https://img.shields.io/crates/v/xmldecl.svg)](https://crates.io/crates/xmldecl)
[![docs.rs](https://docs.rs/xmldecl/badge.svg)](https://docs.rs/xmldecl/)
[![Apache 2 OR MIT dual-licensed](https://img.shields.io/badge/license-Apache%202%20%2F%20MIT-blue.svg)](https://github.com/hsivonen/xmldecl/blob/main/COPYRIGHT)

`xmldecl::parse()` extracts an encoding from an ASCII-based bogo-XML
declaration in `text/html` in a Web-compatible way.

See https://github.com/whatwg/html/pull/1752

## Licensing

Please see the file named
[COPYRIGHT](https://github.com/hsivonen/xmldecl/blob/main/COPYRIGHT).

## Documentation

Generated [API documentation](https://docs.rs/xmldecl/) is available
online.

## Minimum Supported Rust Version

MSRV: 1.51.0

## Release Notes

### 0.2.0

* Remove the 1024-byte limit.

### 0.1.1

* Map UTF-16LE and UTF-16BE to UTF-8 as in `meta`.

### 0.1.0

* The initial release.