Skip to content

Commit 5fc5e0d

Browse files
committed
Renome crate to unicode-width-16
1 parent ed95475 commit 5fc5e0d

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[package]
2+
name = "unicode-width-16"
3+
version = "0.1.0"
4+
authors = [
5+
"Christian Duerr <[email protected]>",
6+
"Kirill Chibisov <[email protected]>",
7+
]
28

3-
name = "unicode-width"
4-
version = "0.1.11"
5-
authors = ["kwantam <[email protected]>", "Manish Goregaokar <[email protected]>"]
6-
7-
homepage = "https://github.com/unicode-rs/unicode-width"
8-
repository = "https://github.com/unicode-rs/unicode-width"
9+
homepage = "https://github.com/alacritty/unicode-width-16"
10+
repository = "https://github.com/alacritty/unicode-width-16"
911
documentation = "https://unicode-rs.github.io/unicode-width"
1012
license = "MIT OR Apache-2.0"
1113
keywords = ["text", "width", "unicode"]

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
# unicode-width
1+
# unicode-width-16
2+
3+
**This crate is a fork** of https://github.com/unicode-rs/unicode-width with
4+
Unicode 16 support and removed `normalization`.
25

36
Determine displayed width of `char` and `str` types according to
47
[Unicode Standard Annex #11][UAX11] rules.
58

69
[UAX11]: http://www.unicode.org/reports/tr11/
710

8-
[![Build Status](https://travis-ci.org/unicode-rs/unicode-width.svg)](https://travis-ci.org/unicode-rs/unicode-width)
9-
10-
[Documentation](https://unicode-rs.github.io/unicode-width/unicode_width/index.html)
11-
1211
```rust
13-
extern crate unicode_width;
14-
15-
use unicode_width::UnicodeWidthStr;
12+
use unicode_width_16::UnicodeWidthStr;
1613

1714
fn main() {
1815
let teststr = "Hello, world!";
@@ -29,8 +26,7 @@ width. For example, the woman scientist emoji comprises of a woman emoji, a
2926
zero-width joiner and a microscope emoji.
3027

3128
```rust
32-
extern crate unicode_width;
33-
use unicode_width::UnicodeWidthStr;
29+
use unicode_width_16::UnicodeWidthStr;
3430

3531
fn main() {
3632
assert_eq!(UnicodeWidthStr::width("👩"), 2); // Woman
@@ -54,5 +50,5 @@ to your `Cargo.toml`:
5450

5551
```toml
5652
[dependencies]
57-
unicode-width = "0.1.7"
53+
unicode-width-16 = "0.1.0"
5854
```

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
//! rules.
1414
//!
1515
//! ```rust
16-
//! extern crate unicode_width;
16+
//! extern crate unicode_width_16;
1717
//!
18-
//! use unicode_width::UnicodeWidthStr;
18+
//! use unicode_width_16::UnicodeWidthStr;
1919
//!
2020
//! fn main() {
2121
//! let teststr = "Hello, world!";

0 commit comments

Comments
 (0)