Skip to content

Commit c2ed9f8

Browse files
committed
Merge #203
203: Release v0.7.0 r=behnam a=behnam # UNIC Applications UNIC Applications are binary creates hosting in the same repository as `unic` super-crate, under the `apps/` directory. These creates are not internal parts of the `unic` library, but tools designed and developed for the general audience, also serving as a test bed for the UNIC API. We are starting with CLI applications, and possibly expanding it to GUI and WEB applications, as well. - [`unic-cli`] The new UNIC CLI application provides command-line tools for working with Unicode characters and strings. In this release, first versions of `unic-echo` and `unic-inspector` commands are implemented. # New Components ## Character Property - [`unic-ucd-common `] Common character properties (*alphabetic*, *alphanumeric*, *control*, *numeric*, and *white_space*). - [`unic-ucd-ident`] Unicode Identifier character properties. - [`unic-ucd-segment`] Unicode Segmentation character properties. - [`unic-emoji-char`] Unicode Emoji character properties. ## String Algorithm - [`unic-segment`] Implementation of Unicode Text Segmentation algorithms (*Grapheme Cluster* and *Word* boundaries). # Other Updates This release was delayed for a couple of cycles, because of the problems with running tests in a workspace with a mix of std and no-std creates. The issue is resolved as of `1.22.0`. - Enable `no_std` for many of the existing components. - Bumped minimum Rust to `1.22.0`. - Lots of small fixes for data types and internal structure updates.
2 parents fcdf416 + c811dc7 commit c2ed9f8

File tree

29 files changed

+123
-105
lines changed

29 files changed

+123
-105
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ this crate.
8585

8686
### Major Components
8787

88-
- [`unic-char`](char): Unicode Character Tools.
88+
- [`unic-char`](unic/char/): Unicode Character Tools.
8989
[![Crates.io](https://img.shields.io/crates/v/unic-char.svg)](https://crates.io/crates/unic-char/)
9090

9191
- [`unic-ucd`](unic/ucd/): Unicode Character Database
@@ -112,6 +112,11 @@ this crate.
112112
([UTS\#51](https://unicode.org/reports/tr51/)).
113113
[![Crates.io](https://img.shields.io/crates/v/unic-emoji.svg)](https://crates.io/crates/unic-emoji/)
114114

115+
### Applications
116+
117+
- [`unic-cli`](apps/cli): UNIC Command-Line Tools
118+
[![Crates.io](https://img.shields.io/crates/v/unic-cli.svg)](https://crates.io/crates/unic-cli/)
119+
115120
## Code Organization: Combined Repository
116121

117122
Some of the reasons to have a combined repository these components are:
@@ -154,7 +159,7 @@ In `Cargo.toml`:
154159

155160
```toml
156161
[dependencies]
157-
unic = "0.6.0" # This has Unicode 10.0.0 data and algorithms
162+
unic = "0.7.0" # This has Unicode 10.0.0 data and algorithms
158163
```
159164

160165
And in `main.rs`:

apps/cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic-cli"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"
@@ -11,7 +11,7 @@ readme = "README.md"
1111

1212

1313
[dependencies]
14-
unic = { path = "../../unic/", version = "0.6.0" }
14+
unic = { path = "../../unic/", version = "0.7.0" }
1515

1616
clap = "2.29"
1717
lazy_static = "1.0"

etc/common.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set -e
1717
export COMPONENTS="
1818
unic/common
1919
20-
unic/char/property
2120
unic/char/range
21+
unic/char/property
2222
unic/char
2323
2424
unic/ucd/version
@@ -49,6 +49,11 @@ export COMPONENTS="
4949
unic
5050
"
5151

52+
# List of apps, in order of dependency
53+
export APPS="
54+
apps/cli
55+
"
56+
5257
-() {
5358
cmd="$@"
5459
echo

etc/publish-all.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2525

2626
# Steps
2727

28-
# Publish all components (ignore failures, because of the version being released already)
28+
# Publish all components
2929
for component in $COMPONENTS; do
3030
- cargo update --verbose --manifest-path "$component/Cargo.toml"
31+
# ignore failures, because of the version being released already
32+
- cargo publish --verbose --manifest-path "$component/Cargo.toml" || true
33+
done
34+
35+
# Publish all apps
36+
for app in $APPS; do
37+
- cargo update --verbose --manifest-path "$component/Cargo.toml"
38+
# ignore failures, because of the version being released already
3139
- cargo publish --verbose --manifest-path "$component/Cargo.toml" || true
3240
done

gen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ publish = false
1111
travis-ci = { repository = "behnam/rust-unic", branch = "master" }
1212

1313
[dependencies]
14-
unic-char-range = { path = "../unic/char/range/", version = "0.6.0" }
14+
unic-char-range = { path = "../unic/char/range/", version = "0.7.0" }
1515

1616
# Command line argument parsing
1717
clap = "2.29"

unic/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"
@@ -19,14 +19,14 @@ bench_it = ["unic-bidi/bench_it"]
1919
serde = ["unic-bidi/serde"]
2020

2121
[dependencies]
22-
unic-bidi = { path = "bidi/", version = "0.6.0" }
23-
unic-char = { path = "char/", version = "0.6.0", features = ["std"] }
24-
unic-common = { path = "common/", version = "0.6.0" }
25-
unic-emoji = { path = "emoji/", version = "0.6.0" }
26-
unic-idna = { path = "idna/", version = "0.6.0" }
27-
unic-normal = { path = "normal/", version = "0.6.0" }
28-
unic-segment = { path = "segment/", version = "0.6.0" }
29-
unic-ucd = { path = "ucd/", version = "0.6.0" }
22+
unic-bidi = { path = "bidi/", version = "0.7.0" }
23+
unic-char = { path = "char/", version = "0.7.0", features = ["std"] }
24+
unic-common = { path = "common/", version = "0.7.0" }
25+
unic-emoji = { path = "emoji/", version = "0.7.0" }
26+
unic-idna = { path = "idna/", version = "0.7.0" }
27+
unic-normal = { path = "normal/", version = "0.7.0" }
28+
unic-segment = { path = "segment/", version = "0.7.0" }
29+
unic-ucd = { path = "ucd/", version = "0.7.0" }
3030

3131
[badges]
3232
appveyor = { repository = "behnam/rust-unic", branch = "master", service = "github" }

unic/bidi/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic-bidi"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"
@@ -25,9 +25,9 @@ bench_it = []
2525
[dependencies]
2626
matches = "0.1"
2727
serde = { version = ">=0.8, <2.0", optional = true, features = ["derive"] }
28-
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.6.0" }
28+
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.7.0" }
2929

3030
[dev-dependencies]
3131
serde_test = ">=0.8, <2.0"
32-
unic-char-property = { path = "../char/property/", version = "0.6.0" }
33-
unic-ucd-version = { path = "../ucd/version/", version = "0.6.0" }
32+
unic-char-property = { path = "../char/property/", version = "0.7.0" }
33+
unic-ucd-version = { path = "../ucd/version/", version = "0.7.0" }

unic/char/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic-char"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"
@@ -20,5 +20,5 @@ std = ["unic-char-range/std"]
2020
travis-ci = { repository = "behnam/rust-unic", branch = "master" }
2121

2222
[dependencies]
23-
unic-char-property = { path = "property/", version = "0.6.0" }
24-
unic-char-range = { path = "range/", version = "0.6.0" }
23+
unic-char-property = { path = "property/", version = "0.7.0" }
24+
unic-char-range = { path = "range/", version = "0.7.0" }

unic/char/property/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic-char-property"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"
@@ -12,7 +12,7 @@ categories = ["internationalization", "text-processing", "parsing"]
1212
exclude = []
1313

1414
[dependencies]
15-
unic-char-range = { path = "../range/", version = "0.6.0" }
15+
unic-char-range = { path = "../range/", version = "0.7.0" }
1616

1717
[badges]
1818
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

unic/char/range/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unic-char-range"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["The UNIC Project Developers"]
55
repository = "https://github.com/behnam/rust-unic/"
66
license = "MIT/Apache-2.0"

0 commit comments

Comments
 (0)