Skip to content

Commit

Permalink
Merge #203
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors[bot] committed Feb 7, 2018
2 parents fcdf416 + c811dc7 commit c2ed9f8
Show file tree
Hide file tree
Showing 29 changed files with 123 additions and 105 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ this crate.

### Major Components

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

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

### Applications

- [`unic-cli`](apps/cli): UNIC Command-Line Tools
[![Crates.io](https://img.shields.io/crates/v/unic-cli.svg)](https://crates.io/crates/unic-cli/)

## Code Organization: Combined Repository

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

```toml
[dependencies]
unic = "0.6.0" # This has Unicode 10.0.0 data and algorithms
unic = "0.7.0" # This has Unicode 10.0.0 data and algorithms
```

And in `main.rs`:
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-cli"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -11,7 +11,7 @@ readme = "README.md"


[dependencies]
unic = { path = "../../unic/", version = "0.6.0" }
unic = { path = "../../unic/", version = "0.7.0" }

clap = "2.29"
lazy_static = "1.0"
Expand Down
7 changes: 6 additions & 1 deletion etc/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ set -e
export COMPONENTS="
unic/common
unic/char/property
unic/char/range
unic/char/property
unic/char
unic/ucd/version
Expand Down Expand Up @@ -49,6 +49,11 @@ export COMPONENTS="
unic
"

# List of apps, in order of dependency
export APPS="
apps/cli
"

-() {
cmd="$@"
echo
Expand Down
10 changes: 9 additions & 1 deletion etc/publish-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Steps

# Publish all components (ignore failures, because of the version being released already)
# Publish all components
for component in $COMPONENTS; do
- cargo update --verbose --manifest-path "$component/Cargo.toml"
# ignore failures, because of the version being released already
- cargo publish --verbose --manifest-path "$component/Cargo.toml" || true
done

# Publish all apps
for app in $APPS; do
- cargo update --verbose --manifest-path "$component/Cargo.toml"
# ignore failures, because of the version being released already
- cargo publish --verbose --manifest-path "$component/Cargo.toml" || true
done
2 changes: 1 addition & 1 deletion gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

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

# Command line argument parsing
clap = "2.29"
Expand Down
18 changes: 9 additions & 9 deletions unic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -19,14 +19,14 @@ bench_it = ["unic-bidi/bench_it"]
serde = ["unic-bidi/serde"]

[dependencies]
unic-bidi = { path = "bidi/", version = "0.6.0" }
unic-char = { path = "char/", version = "0.6.0", features = ["std"] }
unic-common = { path = "common/", version = "0.6.0" }
unic-emoji = { path = "emoji/", version = "0.6.0" }
unic-idna = { path = "idna/", version = "0.6.0" }
unic-normal = { path = "normal/", version = "0.6.0" }
unic-segment = { path = "segment/", version = "0.6.0" }
unic-ucd = { path = "ucd/", version = "0.6.0" }
unic-bidi = { path = "bidi/", version = "0.7.0" }
unic-char = { path = "char/", version = "0.7.0", features = ["std"] }
unic-common = { path = "common/", version = "0.7.0" }
unic-emoji = { path = "emoji/", version = "0.7.0" }
unic-idna = { path = "idna/", version = "0.7.0" }
unic-normal = { path = "normal/", version = "0.7.0" }
unic-segment = { path = "segment/", version = "0.7.0" }
unic-ucd = { path = "ucd/", version = "0.7.0" }

[badges]
appveyor = { repository = "behnam/rust-unic", branch = "master", service = "github" }
Expand Down
8 changes: 4 additions & 4 deletions unic/bidi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-bidi"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -25,9 +25,9 @@ bench_it = []
[dependencies]
matches = "0.1"
serde = { version = ">=0.8, <2.0", optional = true, features = ["derive"] }
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.6.0" }
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.7.0" }

[dev-dependencies]
serde_test = ">=0.8, <2.0"
unic-char-property = { path = "../char/property/", version = "0.6.0" }
unic-ucd-version = { path = "../ucd/version/", version = "0.6.0" }
unic-char-property = { path = "../char/property/", version = "0.7.0" }
unic-ucd-version = { path = "../ucd/version/", version = "0.7.0" }
6 changes: 3 additions & 3 deletions unic/char/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-char"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -20,5 +20,5 @@ std = ["unic-char-range/std"]
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-char-property = { path = "property/", version = "0.6.0" }
unic-char-range = { path = "range/", version = "0.6.0" }
unic-char-property = { path = "property/", version = "0.7.0" }
unic-char-range = { path = "range/", version = "0.7.0" }
4 changes: 2 additions & 2 deletions unic/char/property/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-char-property"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -12,7 +12,7 @@ categories = ["internationalization", "text-processing", "parsing"]
exclude = []

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

[badges]
travis-ci = { repository = "behnam/rust-unic", branch = "master" }
2 changes: 1 addition & 1 deletion unic/char/range/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-char-range"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion unic/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-common"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions unic/emoji/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-emoji"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -15,4 +15,4 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-emoji-char = { path = "char/", version = "0.6.0" }
unic-emoji-char = { path = "char/", version = "0.7.0" }
8 changes: 4 additions & 4 deletions unic/emoji/char/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-emoji-char"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -15,6 +15,6 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-char-property = { path = "../../char/property/", version = "0.6.0" }
unic-char-range = { path = "../../char/range", version = "0.6.0" }
unic-ucd-version = { path = "../../ucd/version/", version = "0.6.0" }
unic-char-property = { path = "../../char/property/", version = "0.7.0" }
unic-char-range = { path = "../../char/range", version = "0.7.0" }
unic-ucd-version = { path = "../../ucd/version/", version = "0.7.0" }
14 changes: 7 additions & 7 deletions unic/idna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-idna"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -17,9 +17,9 @@ travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
matches = "0.1"
unic-idna-punycode = { path = "punycode/", version = "0.6.0" }
unic-idna-mapping = { path = "mapping/", version = "0.6.0" }
unic-normal = { path = "../normal/", version = "0.6.0" }
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.6.0" }
unic-ucd-normal = { path = "../ucd/normal/", version = "0.6.0" }
unic-ucd-version = { path = "../ucd/version/", version = "0.6.0" }
unic-idna-punycode = { path = "punycode/", version = "0.7.0" }
unic-idna-mapping = { path = "mapping/", version = "0.7.0" }
unic-normal = { path = "../normal/", version = "0.7.0" }
unic-ucd-bidi = { path = "../ucd/bidi/", version = "0.7.0" }
unic-ucd-normal = { path = "../ucd/normal/", version = "0.7.0" }
unic-ucd-version = { path = "../ucd/version/", version = "0.7.0" }
8 changes: 4 additions & 4 deletions unic/idna/mapping/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-idna-mapping"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -15,6 +15,6 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-char-range = { path = "../../char/range/", version = "0.6.0" }
unic-char-property = { path = "../../char/property/", version = "0.6.0" }
unic-ucd-version = { path = "../../ucd/version/", version = "0.6.0" }
unic-char-range = { path = "../../char/range/", version = "0.7.0" }
unic-char-property = { path = "../../char/property/", version = "0.7.0" }
unic-ucd-version = { path = "../../ucd/version/", version = "0.7.0" }
2 changes: 1 addition & 1 deletion unic/idna/punycode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-idna-punycode"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions unic/normal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-normal"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -16,7 +16,7 @@ exclude = ["tests/conformance_tests.rs"]
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-ucd-normal = { path = "../ucd/normal/", version = "0.6.0" }
unic-ucd-normal = { path = "../ucd/normal/", version = "0.7.0" }

[dev-dependencies]
unic-ucd-version = { path = "../ucd/version/", version = "0.6.0" }
unic-ucd-version = { path = "../ucd/version/", version = "0.7.0" }
6 changes: 3 additions & 3 deletions unic/segment/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-segment"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -16,8 +16,8 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-ucd-segment = { path = "../ucd/segment/", version = "0.6.0" }
unic-ucd-segment = { path = "../ucd/segment/", version = "0.7.0" }

[dev-dependencies]
quickcheck = "0.6"
unic-ucd-common = { path = "../ucd/common/", version = "0.6.0" }
unic-ucd-common = { path = "../ucd/common/", version = "0.7.0" }
26 changes: 13 additions & 13 deletions unic/ucd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-ucd"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -16,18 +16,18 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-ucd-age = { path = "age/", version = "0.6.0" }
unic-ucd-bidi = { path = "bidi/", version = "0.6.0" }
unic-ucd-case = { path = "case/", version = "0.6.0" }
unic-ucd-category = { path = "category/", version = "0.6.0" }
unic-ucd-common = { path = "common/", version = "0.6.0" }
unic-ucd-ident = { path = "ident/", version = "0.6.0" }
unic-ucd-name = { path = "name/", version = "0.6.0" }
unic-ucd-normal = { path = "normal/", version = "0.6.0", features = ["unic-ucd-category"] }
unic-ucd-segment = { path = "segment/", version = "0.6.0" }
unic-ucd-version = { path = "version/", version = "0.6.0" }
unic-ucd-age = { path = "age/", version = "0.7.0" }
unic-ucd-bidi = { path = "bidi/", version = "0.7.0" }
unic-ucd-case = { path = "case/", version = "0.7.0" }
unic-ucd-category = { path = "category/", version = "0.7.0" }
unic-ucd-common = { path = "common/", version = "0.7.0" }
unic-ucd-ident = { path = "ident/", version = "0.7.0" }
unic-ucd-name = { path = "name/", version = "0.7.0" }
unic-ucd-normal = { path = "normal/", version = "0.7.0", features = ["unic-ucd-category"] }
unic-ucd-segment = { path = "segment/", version = "0.7.0" }
unic-ucd-version = { path = "version/", version = "0.7.0" }

[dev-dependencies]
unic-char-range = { path = "../char/range/", version = "0.6.0" }
unic-char-property = { path = "../char/property/", version = "0.6.0" }
unic-char-range = { path = "../char/range/", version = "0.7.0" }
unic-char-property = { path = "../char/property/", version = "0.7.0" }
matches = "0.1"
8 changes: 4 additions & 4 deletions unic/ucd/age/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-ucd-age"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -15,6 +15,6 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-char-property = { path = "../../char/property/", version = "0.6.0" }
unic-char-range = { path = "../../char/range", version = "0.6.0" }
unic-ucd-version = { path = "../version/", version = "0.6.0" }
unic-char-property = { path = "../../char/property/", version = "0.7.0" }
unic-char-range = { path = "../../char/range", version = "0.7.0" }
unic-ucd-version = { path = "../version/", version = "0.7.0" }
8 changes: 4 additions & 4 deletions unic/ucd/bidi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unic-ucd-bidi"
version = "0.6.0"
version = "0.7.0"
authors = ["The UNIC Project Developers"]
repository = "https://github.com/behnam/rust-unic/"
license = "MIT/Apache-2.0"
Expand All @@ -15,6 +15,6 @@ exclude = []
travis-ci = { repository = "behnam/rust-unic", branch = "master" }

[dependencies]
unic-char-property = { path = "../../char/property/", version = "0.6.0" }
unic-char-range = { path = "../../char/range", version = "0.6.0" }
unic-ucd-version = { path = "../version/", version = "0.6.0" }
unic-char-property = { path = "../../char/property/", version = "0.7.0" }
unic-char-range = { path = "../../char/range", version = "0.7.0" }
unic-ucd-version = { path = "../version/", version = "0.7.0" }
Loading

0 comments on commit c2ed9f8

Please sign in to comment.