Skip to content

Commit 697ec25

Browse files
authored
Merge pull request #70 from mgeisler/release-0.7.0
Release 0.7.0
2 parents a70675e + 9af06ab commit 697ec25

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.appveyor.yml

+21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
environment:
2+
# From https://github.com/rust-lang-nursery/rand/commit/bb78689:
3+
#
4+
# At the time this was added AppVeyor was having troubles with checking
5+
# revocation of SSL certificates of sites like static.rust-lang.org and what
6+
# we think is crates.io. The libcurl HTTP client by default checks for
7+
# revocation on Windows and according to a mailing list [1] this can be
8+
# disabled.
9+
#
10+
# The `CARGO_HTTP_CHECK_REVOKE` env var here tells cargo to disable SSL
11+
# revocation checking on Windows in libcurl. Note, though, that rustup, which
12+
# we're using to download Rust here, also uses libcurl as the default backend.
13+
# Unlike Cargo, however, rustup doesn't have a mechanism to disable revocation
14+
# checking. To get rustup working we set `RUSTUP_USE_HYPER` which forces it to
15+
# use the Hyper instead of libcurl backend. Both Hyper and libcurl use
16+
# schannel on Windows but it appears that Hyper configures it slightly
17+
# differently such that revocation checking isn't turned on by default.
18+
#
19+
# [1]: https://curl.haxx.se/mail/lib-2016-03/0202.html
20+
RUSTUP_USE_HYPER: 1
21+
CARGO_HTTP_CHECK_REVOKE: false
22+
223
matrix:
324
- TOOLCHAIN: stable
425
FEATURES: "hyphenation"

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "textwrap"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["Martin Geisler <[email protected]>"]
55
description = """
66
Textwrap is a small library for word wrapping, indenting, and

README.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the [Python textwrap module][py-textwrap].
1515
Add this to your `Cargo.toml`:
1616
```toml
1717
[dependencies]
18-
textwrap = "0.6"
18+
textwrap = "0.7"
1919
```
2020

2121
and this to your crate root:
@@ -27,7 +27,7 @@ If you would like to have automatic hyphenation, specify the
2727
dependency as:
2828
```toml
2929
[dependencies]
30-
textwrap = { version: "0.6", features: ["hyphenation"] }
30+
textwrap = { version: "0.7", features: ["hyphenation"] }
3131
```
3232

3333
## Documentation
@@ -173,6 +173,28 @@ cost abstractions.
173173

174174
This section lists the largest changes per release.
175175

176+
### Version 0.7.0 — July 20th, 2017
177+
178+
Version 0.7.0 changes the return type of `Wrapper::wrap` from
179+
`Vec<String>` to `Vec<Cow<'a, str>>`. This means that the output lines
180+
borrow data from the input string. This is a *breaking API change* if
181+
you relied on the exact return type of `Wrapper::wrap`. Callers of the
182+
`textwrap::fill` convenience function will see no breakage.
183+
184+
The above change and other optimizations makes version 0.7.0 roughly
185+
15-30% faster than version 0.6.0.
186+
187+
The `squeeze_whitespace` option has been removed since it was
188+
complicating the above optimization. Let us know if this option is
189+
important for you so we can provide a work around.
190+
191+
Issues closed:
192+
193+
* Fixed [#58][issue-58]: Add a "fast_wrap" function that reuses the
194+
input string
195+
196+
* Fixed [#61][issue-61]: Documentation errors
197+
176198
### Version 0.6.0 — May 22nd, 2017
177199

178200
Version 0.6.0 adds builder methods to `Wrapper` for easy one-line
@@ -252,4 +274,6 @@ Contributions will be accepted under the same license.
252274
[issue-28]: ../../issues/28
253275
[issue-36]: ../../issues/36
254276
[issue-39]: ../../issues/39
277+
[issue-58]: ../../issues/58
278+
[issue-61]: ../../issues/61
255279
[mit]: LICENSE

0 commit comments

Comments
 (0)