Repository: mgeisler/textwrap (language: rust)

Issue:
crates.io version `0.15.1`
Seems that `0.15.1` was removed from crates.io. Can we have a version that will be resolved by cargo when `0.15.1` is specified in `Cargo.toml`?


Discussion / hints:
Please upload a `0.15.2`, even if it's identical to `0.15.0`. I maintain multiple applications using `clap` which are no longer installable via `cargo install` without using the `--locked` option, because this version was yanked.
Thanks for the bug report! This was of course not the intention of the change in https://github.com/mgeisler/textwrap/issues/453.

From what I understand, it seems that making a 0.15.2 release without the semver breaking changes would fix this. I'll get onto that immediately.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 093b9dc2..434f1569 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,12 @@
 This file lists the most important changes made in each release of
 `textwrap`.
 
+## Version 0.15.2 (2022-10-24)
+
+This release is identical to 0.15.0 and is only there to give people a
+way to install crates which depend on the yanked 0.15.1 release. See
+[#484](https://github.com/mgeisler/textwrap/issues/484) for details.
+
 ## Version 0.15.0 (2022-02-27)
 
 This is a major feature release with two main changes:
diff --git a/Cargo.toml b/Cargo.toml
index d6fcc35e..f1b4f6cf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "textwrap"
-version = "0.15.0"
+version = "0.15.2"
 authors = ["Martin Geisler <martin@geisler.net>"]
 description = "Powerful library for word wrapping, indenting, and dedenting strings"
 documentation = "https://docs.rs/textwrap/"
diff --git a/images/textwrap-0.15.2.svg b/images/textwrap-0.15.2.svg
new file mode 100644
index 00000000..bc234068
--- /dev/null
+++ b/images/textwrap-0.15.2.svg
@@ -0,0 +1,21 @@
+<svg height="116pt" viewBox="0 0 485.29 116" width="485pt" xmlns="http://www.w3.org/2000/svg">
+<g transform="translate(4 112)">
+<path d="m-4 4v-116h485.29v116z" fill="#fff"/>
+<path d="m237.2-108h-83v36h83z" fill="none" stroke="#000"/>
+<text font-family="monospace" font-size="14" text-anchor="middle" x="195.7" y="-86.3">textwrap</text>
+<ellipse cx="37.7" cy="-18" fill="none" rx="37.89" ry="18" stroke="#000" stroke-dasharray="5 2"/>
+<text font-family="monospace" font-size="14" text-anchor="middle" x="37.7" y="-14.3">smawk</text>
+<g stroke="#000">
+<path d="m157.05-71.88c-25.33 11.22-58.22 25.79-83.05 36.8" fill="none" stroke-dasharray="1 5"/>
+<path d="m75.13-31.76-10.56.86 7.72-7.26z"/>
+<ellipse cx="195.7" cy="-18" fill="none" rx="102.08" ry="18" stroke-dasharray="5 2"/>
+</g>
+<text font-family="monospace" font-size="14" text-anchor="middle" x="195.7" y="-14.3">unicode-linebreak</text>
+<path d="m195.7-71.7v25.59" fill="none" stroke="#000" stroke-dasharray="1 5"/>
+<path d="m199.2-46.1-3.5 10-3.5-10z" stroke="#000"/>
+<ellipse cx="396.7" cy="-18" fill="none" rx="80.69" ry="18" stroke="#000" stroke-dasharray="5 2"/>
+<text font-family="monospace" font-size="14" text-anchor="middle" x="396.7" y="-14.3">unicode-width</text>
+<path d="m237.34-74.5c31.4 10.94 74.63 25.99 108.14 37.66" fill="none" stroke="#000" stroke-dasharray="1 5"/>
+<path d="m346.81-40.08 8.29 6.59-10.59.02z" stroke="#000"/>
+</g>
+</svg>
diff --git a/src/lib.rs b/src/lib.rs
index 6d68309a..e570eac2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -112,7 +112,7 @@
 //! The full dependency graph, where dashed lines indicate optional
 //! dependencies, is shown below:
 //!
-//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.15.0.svg">
+//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.15.2.svg">
 //!
 //! ## Default Features
 //!
@@ -189,7 +189,7 @@
 //! [terminal_size]: https://docs.rs/terminal_size/
 //! [hyphenation]: https://docs.rs/hyphenation/
 
-#![doc(html_root_url = "https://docs.rs/textwrap/0.15.0")]
+#![doc(html_root_url = "https://docs.rs/textwrap/0.15.2")]
 #![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210
 #![deny(missing_docs)]
 #![deny(missing_debug_implementations)]


Test patch: