@@ -15,7 +15,7 @@ the [Python textwrap module][py-textwrap].
15
15
Add this to your ` Cargo.toml ` :
16
16
``` toml
17
17
[dependencies ]
18
- textwrap = " 0.6 "
18
+ textwrap = " 0.7 "
19
19
```
20
20
21
21
and this to your crate root:
@@ -27,7 +27,7 @@ If you would like to have automatic hyphenation, specify the
27
27
dependency as:
28
28
``` toml
29
29
[dependencies ]
30
- textwrap = { version: "0.6 ", features: ["hyphenation"] }
30
+ textwrap = { version: "0.7 ", features: ["hyphenation"] }
31
31
```
32
32
33
33
## Documentation
@@ -173,6 +173,28 @@ cost abstractions.
173
173
174
174
This section lists the largest changes per release.
175
175
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
+
176
198
### Version 0.6.0 — May 22nd, 2017
177
199
178
200
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.
252
274
[ issue-28 ] : ../../issues/28
253
275
[ issue-36 ] : ../../issues/36
254
276
[ issue-39 ] : ../../issues/39
277
+ [ issue-58 ] : ../../issues/58
278
+ [ issue-61 ] : ../../issues/61
255
279
[ mit ] : LICENSE
0 commit comments