Repository: mgeisler/textwrap (language: rust)

Issue:
Release of version with hyphenation 0.7
In Debian, we packaged textwrap 0.10. We usually try to package the latest versions of crates only, and for the packages to migrate from the unstable to the testing repository, all feature dependencies need to be packaged as well. In this specific case, packaging hyphenation 0.6 would require a whole tree of old dependencies, which we try to avoid. I have seen that hyphenation has been updated to 0.7 in textwrap master. Can we expect a release of textwrap any time soon?


Discussion / hints:
Hi @silwol,

Thanks for the reminder! I'll make a release now!

Fix patch:
diff --git a/Cargo.toml b/Cargo.toml
index 10183e92..9d82ca58 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "textwrap"
-version = "0.10.0"
+version = "0.11.0"
 authors = ["Martin Geisler <martin@geisler.net>"]
 description = """
 Textwrap is a small library for word wrapping, indenting, and
diff --git a/README.md b/README.md
index 70404e44..23a54390 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ the [Python textwrap module][py-textwrap].
 Add this to your `Cargo.toml`:
 ```toml
 [dependencies]
-textwrap = "0.10"
+textwrap = "0.11"
 ```
 
 and this to your crate root:
@@ -28,7 +28,7 @@ If you would like to have automatic hyphenation, specify the
 dependency as:
 ```toml
 [dependencies]
-textwrap = { version = "0.10", features = ["hyphenation"] }
+textwrap = { version = "0.11", features = ["hyphenation"] }
 ```
 
 To conveniently wrap text at the current terminal width, enable the
@@ -36,7 +36,7 @@ To conveniently wrap text at the current terminal width, enable the
 
 ```toml
 [dependencies]
-textwrap = { version = "0.10", features = ["term_size"] }
+textwrap = { version = "0.11", features = ["term_size"] }
 ```
 
 ## Documentation
@@ -182,21 +182,20 @@ cost abstractions.
 
 This section lists the largest changes per release.
 
-### Unreleased
+### Version 0.11.0 — December 9th, 2018
 
 Due to our dependencies bumping their minimum supported version of
 Rust, the minimum version of Rust we test against is now 1.22.0.
 
 * Merged [#141][issue-141]: Fix `dedent` handling of empty lines and
   trailing newlines. Thanks @bbqsrc!
+* Fixed [#151][issue-151]: Release of version with hyphenation 0.7.
 
 ### Version 0.10.0 — April 28th, 2018
 
 Due to our dependencies bumping their minimum supported version of
 Rust, the minimum version of Rust we test against is now 1.17.0.
 
-Issues closed:
-
 * Fixed [#99][issue-99]: Word broken even though it would fit on line.
 * Fixed [#107][issue-107]: Automatic hyphenation is off by one.
 * Fixed [#122][issue-122]: Take newlines into account when wrapping.
@@ -213,8 +212,6 @@ Added a regression test for the case where `width` is set to
 `usize::MAX`, thanks @Fraser999! All public structs now implement
 `Debug`, thanks @hcpl!
 
-Issues closed:
-
 * Fixed [#101][issue-101]: Make `term_size` an optional dependency.
 
 ### Version 0.8.0 — September 4th, 2017
@@ -228,12 +225,9 @@ The `Wrapper` struct has two new methods that will wrap the input text
 lazily: `Wrapper::wrap_iter` and `Wrapper::into_wrap_iter`. Use those
 if you will be iterating over the wrapped lines one by one.
 
-Issues closed:
-
 * Fixed [#59][issue-59]: `wrap` could return an iterator. Thanks
   @hcpl!
-
-* Fixed [#81][issue-81]: Set `html_root_url`
+* Fixed [#81][issue-81]: Set `html_root_url`.
 
 ### Version 0.7.0 — July 20th, 2017
 
@@ -250,12 +244,8 @@ The `squeeze_whitespace` option has been removed since it was
 complicating the above optimization. Let us know if this option is
 important for you so we can provide a work around.
 
-Issues closed:
-
-* Fixed [#58][issue-58]: Add a "fast_wrap" function that reuses the
-  input string
-
-* Fixed [#61][issue-61]: Documentation errors
+* Fixed [#58][issue-58]: Add a "fast_wrap" function.
+* Fixed [#61][issue-61]: Documentation errors.
 
 ### Version 0.6.0 — May 22nd, 2017
 
@@ -269,9 +259,7 @@ let wrapper = Wrapper::new(60).break_words(false);
 It also add a new `NoHyphenation` word splitter that will never split
 words, not even at existing hyphens.
 
-Issues closed:
-
-* Fixed [#28][issue-28]: Support not squeezing whitespace
+* Fixed [#28][issue-28]: Support not squeezing whitespace.
 
 ### Version 0.5.0 — May 15th, 2017
 
@@ -290,20 +278,18 @@ wrapper.splitter = Box::new(corpus);
 Other changes include optimizations, so version 0.5.0 is roughly
 10-15% faster than version 0.4.0.
 
-Issues closed:
-
-* Fixed [#19][issue-19]: Add support for finding terminal size
-* Fixed [#25][issue-25]: Handle words longer than `self.width`
-* Fixed [#26][issue-26]: Support custom indentation
-* Fixed [#36][issue-36]: Support building without `hyphenation`
-* Fixed [#39][issue-39]: Respect non-breaking spaces
+* Fixed [#19][issue-19]: Add support for finding terminal size.
+* Fixed [#25][issue-25]: Handle words longer than `self.width`.
+* Fixed [#26][issue-26]: Support custom indentation.
+* Fixed [#36][issue-36]: Support building without `hyphenation`.
+* Fixed [#39][issue-39]: Respect non-breaking spaces.
 
 ### Version 0.4.0 — January 24th, 2017
 
 Documented complexities and tested these via `cargo bench`.
 
-* Fixed [#13][issue-13]: Immediatedly add word if it fits
-* Fixed [#14][issue-14]: Avoid splitting on initial hyphens in `--foo-bar`
+* Fixed [#13][issue-13]: Immediatedly add word if it fits.
+* Fixed [#14][issue-14]: Avoid splitting on initial hyphens.
 
 ### Version 0.3.0 — January 7th, 2017
 
@@ -347,4 +333,5 @@ Contributions will be accepted under the same license.
 [issue-122]: https://github.com/mgeisler/textwrap/issues/122
 [issue-129]: https://github.com/mgeisler/textwrap/issues/129
 [issue-141]: https://github.com/mgeisler/textwrap/issues/141
+[issue-151]: https://github.com/mgeisler/textwrap/issues/151
 [mit]: LICENSE
diff --git a/src/lib.rs b/src/lib.rs
index cc25e73f..2f82325f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,7 +41,7 @@
 //!
 //! [unicode-width]: https://docs.rs/unicode-width/
 
-#![doc(html_root_url = "https://docs.rs/textwrap/0.10.0")]
+#![doc(html_root_url = "https://docs.rs/textwrap/0.11.0")]
 #![deny(missing_docs)]
 #![deny(missing_debug_implementations)]
 


Test patch: