Skip to content

Commit a49b8d8

Browse files
committed
New API which does not expose unreachable
The old API exposes `unreachable` in both unescape_unicode and unescape_mixed. These are conceptually one function, but because their return types are incompatible, they could not be unified. The new API takes this insight further to separate unescape_unicode into separate functions, such that byte functions can return bytes instead of chars.
1 parent a584e1a commit a49b8d8

File tree

6 files changed

+428
-87
lines changed

6 files changed

+428
-87
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 0.0.4
2+
3+
- Add `check_raw_str`, `check_raw_byte_str`, `check_raw_c_str`,
4+
- Add `unescape_str`, `unescape_byte_str`, `unescape_c_str`,
5+
- Add `unescape_for_errors`,
6+
- Remove: `unescape_unicode` and `unescape_mixed`
7+
18
# 0.0.3
29

310
- Extend `rustc-dep-of-std` feature to include `libcore`

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc-literal-escaper"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
edition = "2021"
55
description = "Provides code to unescape string literals"
66
license = "Apache-2.0 OR MIT"

0 commit comments

Comments
 (0)