File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ license = "Apache-2.0 / MIT"
66name = " ascii"
77readme = " README.md"
88repository = " https://github.com/tomprogrammer/rust-ascii"
9- version = " 0.9.2 "
9+ version = " 0.9.3 "
1010
1111[dependencies ]
1212serde = { version = " 1.0.25" , optional = true }
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ ascii = "0.9"
1818
1919Most of ` AsciiChar ` and ` AsciiStr ` can be used without ` std ` by disabling the
2020default 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
2324available as an inherent method for ` ToAsciiCharError ` and ` AsAsciiStrError ` .
2425
2526To use the ` ascii ` crate in ` core ` -only mode in your cargo project just add the
Original file line number Diff line number Diff line change 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+
118Version 0.9.2 (2019-07-07)
219==========================
320* Implement the ` IntoAsciiString ` trait for ` std::ffi::CStr ` and ` std::ffi::CString ` types,
You can’t perform that action at this time.
0 commit comments