13 Commits

Author SHA1 Message Date
Sylvestre Ledru b31eed26cd Merge pull request #11 from uutils/renovate/migrate-config
Migrate renovate config
2025-06-01 12:10:31 +02:00
renovate[bot] 8e772e8527 Migrate config renovate.json 2025-06-01 11:27:04 +02:00
Sylvestre Ledru 3a062a06bf Merge pull request #12 from iximeow/main
add homepage and repository fields to Cargo.toml
2025-02-27 09:56:32 +01:00
iximeow 0b087bd663 add homepage and repository fields to Cargo.toml 2025-02-27 00:46:57 -08:00
Daniel Hofstetter 3b7e6e78a8 Merge pull request #8 from uutils/renovate/unicode-width-0.x
Update Rust crate unicode-width to 0.2.0
2024-09-20 07:27:12 +02:00
renovate[bot] 987ed173a9 Update Rust crate unicode-width to 0.2.0 2024-09-19 21:40:00 +00:00
Daniel Hofstetter ee3193972e Merge pull request #7 from uutils/renovate/unicode-width-0.x
Update Rust crate unicode-width to 0.1.12
2024-04-27 13:50:54 +02:00
renovate[bot] b574a84613 Update Rust crate unicode-width to 0.1.12 2024-04-27 11:43:36 +00:00
Sylvestre Ledru 3d6c707ddd Merge pull request #6 from principis/exclude-renovate
Exclude `renovate.json` from package
2024-03-22 22:46:57 +01:00
Arthur Bols c2910efb5c Exclude renovate.json from package 2024-03-22 22:37:38 +01:00
Sylvestre Ledru 65caa0fd87 Merge pull request #5 from uutils/textwrap-description
README: update textwrap description
2024-02-18 20:14:55 +01:00
Terts Diepraam 580f990e6e README: update textwrap description 2024-02-18 12:24:02 +01:00
Sylvestre Ledru 0820f35843 add badges (#4)
* add badges

* Update README.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-02-12 14:14:38 +01:00
3 changed files with 8 additions and 6 deletions
+4 -1
View File
@@ -3,12 +3,15 @@ name = "ansi-width"
description = "Calculate the width of a string when printed to the terminal"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/uutils/ansi-width"
repository = "https://github.com/uutils/ansi-width"
authors = ["uutils developers"]
version = "0.1.0"
edition = "2021"
rust-version = "1.70"
exclude = ["/renovate.json"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
unicode-width = "0.1.11"
unicode-width = "0.2.0"
+3 -4
View File
@@ -81,10 +81,9 @@ assert_eq!(
might be what you want if you don't care about ANSI codes. `unicode-width` is
used internally by this crate as well.
- [`textwrap::core::display_width`](https://docs.rs/textwrap/latest/textwrap/core/fn.display_width.html):
Similar functionality to this crate, except that it does not support ANSI
hyperlinks. Another advantage of this crate is that it does not require
pulling in the rest of `textwrap`'s functionality (even though that
functionality is excellent if you need it).
Very similar functionality to this crate and it also supports hyperlinks since version 0.16.1. The
advantage of this crate is that it does not require pulling in the rest of `textwrap`'s functionality
(even though that functionality is excellent if you need it).
- [`console::measure_text_width`](https://docs.rs/console/latest/console/fn.measure_text_width.html):
Similar to `textwrap` and very well-tested. However, it constructs a new
string internally without ANSI codes first and then measures the width of
+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
]
}