Skip to content

Commit 8429bc3

Browse files
author
Thomas Bahn
committed
Release version 1.0.0
1 parent 338bf03 commit 8429bc3

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

Cargo.toml

+1-1
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.3"
9+
version = "1.0.0"
1010

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

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
A library that provides ASCII-only string and character types, equivalent to the
44
`char`, `str` and `String` types in the standard library.
55

6-
Types and conversion traits are described in the
7-
[Documentation](https://docs.rs/ascii).
6+
Types and conversion traits are described in the [Documentation](https://docs.rs/ascii).
87

98
You can include this crate in your cargo project by adding it to the
109
dependencies section in `Cargo.toml`:
1110

1211
```toml
1312
[dependencies]
14-
ascii = "0.9"
13+
ascii = "1.0"
1514
```
1615

1716
## Using ascii without libstd
@@ -28,7 +27,7 @@ following dependency declaration in `Cargo.toml`:
2827

2928
```toml
3029
[dependencies]
31-
ascii = { version = "0.9", default-features = false }
30+
ascii = { version = "1.0", default-features = false }
3231
```
3332

3433
## Minimum supported Rust version
@@ -37,7 +36,7 @@ The minimum Rust version for 1.0.\* releases is 1.33.0.
3736
Later 1.y.0 releases might require newer Rust versions, but the three most
3837
recent stable releases at the time of publishing will always be supported.
3938
For example this means that if the current stable Rust version is 1.38 when
40-
ascii 1.1.0 is released, then ascii 1.1.* will not require a newer
39+
ascii 1.1.0 is released, then ascii 1.1.\* will not require a newer
4140
Rust version than 1.36.
4241

4342
## History

RELEASES.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
Version 1.0.0 (2019-08-26)
2+
==========================
3+
4+
Breaking changes:
5+
6+
* Change `AsciiChar.is_whitespace()` to also return true for '\0xb' (vertical tab) and '\0xc' (form feed).
7+
* Remove quickcheck feature.
8+
* Remove `AsciiStr::new()`.
9+
* Rename `AsciiChar::from()` and `AsciiChar::from_unchecked()` to `from_ascii()` and `from_ascii_unchecked()`.
10+
* Rename several `AsciiChar.is_xxx()` methods to `is_ascii_xxx()` (for comsistency with std).
11+
* Rename `AsciiChar::Null` to `Nul` (for consistency with eg. `CStr::from_bytes_with_nul()`).
12+
* Rename `AsciiStr.trim_left()` and `AsciiStr.trim_right()` to `trim_start()` and `trim_end()`.
13+
* Remove impls of the deprecated `std::ascii::AsciiExt` trait.
14+
* Change iterators `Chars`, `CharsMut` and `CharsRef` from type aliases to newtypes.
15+
* Return `impl Trait` from `AsciiStr.lines()` and `AsciiStr.split()`, and remove iterator types `Lines` and `Split`.
16+
* Add `slice_ascii_str()`, `get_ascii()` and `unwrap_ascii()` to the `AsAsciiStr` trait.
17+
* Add `slice_mut_ascii_str()` and `unwrap_ascii_mut()` to the `AsMutAsciiStr` trait.
18+
* Require Rust 1.33.0 for 1.0.\*, and allow later semver-compatible 1.y.0 releases to increase it.
19+
20+
Additions:
21+
22+
* Add `const fn` `AsciiChar::new()` which panicks on invalid values.
23+
* Make most `AsciiChar` methods `const fn`.
24+
* Add multiple `AsciiChar::is_[ascii_]xxx()` methods.
25+
* Implement `AsRef<AsciiStr>` for `AsciiChar`.
26+
* Make `AsciiString`'s `Extend` and `FromIterator` impl generic over all `AsRef<AsciiStr>`.
27+
* Implement inclusive range indexing for `AsciiStr` (and thereby `AsciiString`).
28+
* Mark `AsciiStr` and `AsciiString` `#[repr(transparent)]` (to `[AsciiChar]` and `Vec<AsciiChar>` respectively).
29+
130
Version 0.9.3 (2019-08-26)
231
==========================
332

0 commit comments

Comments
 (0)