Skip to content

Commit 338bf03

Browse files
author
Thomas Bahn
committed
Merge branch 'release_0.9'
2 parents 4e0fce5 + a0dde1f commit 338bf03

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "Apache-2.0 / MIT"
66
name = "ascii"
77
readme = "README.md"
88
repository = "https://github.com/tomprogrammer/rust-ascii"
9-
version = "0.9.2"
9+
version = "0.9.3"
1010

1111
[dependencies]
1212
serde = { version = "1.0.25", optional = true }

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ ascii = "0.9"
1818

1919
Most of `AsciiChar` and `AsciiStr` can be used without `std` by disabling the
2020
default features. The owned string type `AsciiString` and the conversion trait
21-
`IntoAsciiString` as well as all methods referring to these types are
22-
unavailable. The `Error` trait is also unavailable, but `description()` is made
21+
`IntoAsciiString` as well as all methods referring to these types and
22+
`CStr` and `CString` are unavailable.
23+
The `Error` trait is also unavailable, but `description()` is made
2324
available as an inherent method for `ToAsciiCharError` and `AsAsciiStrError`.
2425

2526
To use the `ascii` crate in `core`-only mode in your cargo project just add the

RELEASES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Version 0.9.3 (2019-08-26)
2+
==========================
3+
4+
Soundness fix:
5+
6+
**Remove** [unsound](https://github.com/tomprogrammer/rust-ascii/issues/64) impls of `From<&mut AsciiStr>` for `&mut [u8]` and `&mut str`.
7+
This is a breaking change, but theese impls can lead to undefined behavior in safe code.
8+
9+
If you use this impl and know that non-ASCII values are never inserted into the `[u8]` or `str`,
10+
you can pin ascii to 0.9.2.
11+
12+
Other changes:
13+
14+
* Make quickcheck `Arbitrary` impl sometimes produce `AsciiChar::DEL`.
15+
* Implement `Clone`, `Copy` and `Eq` for `ToAsciiCharError`.
16+
* Implement `ToAsciiChar` for `u16`, `u32` and `i8`.
17+
118
Version 0.9.2 (2019-07-07)
219
==========================
320
* Implement the `IntoAsciiString` trait for `std::ffi::CStr` and `std::ffi::CString` types,

0 commit comments

Comments
 (0)