Release 0.11.0.
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
This commit is contained in:
parent
db08943e6d
commit
045758db56
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,3 +1,16 @@
|
||||||
|
## 0.11.0 / 2016-04-29
|
||||||
|
|
||||||
|
### Breaking API changes
|
||||||
|
|
||||||
|
* Move adjectives const to `names::ADJECTIVES`. ([@fnichol][])
|
||||||
|
* Move nouns const to `names::NOUNS`. ([@fnichol][])
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
* (cli) Add color and suggestions features. ([@fnichol][])
|
||||||
|
* Inline adjective and noun data from plaintext files. ([@fnichol][])
|
||||||
|
|
||||||
|
|
||||||
## 0.10.0 / 2015-11-01
|
## 0.10.0 / 2015-11-01
|
||||||
|
|
||||||
### Breaking API changes
|
### Breaking API changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "names"
|
name = "names"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
[root]
|
[root]
|
||||||
name = "names-cli"
|
name = "names-cli"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"names 0.10.0",
|
"names 0.11.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -36,7 +36,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "names"
|
name = "names"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "names-cli"
|
name = "names-cli"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/fnichol/names.git"
|
repository = "https://github.com/fnichol/names.git"
|
||||||
|
|
|
@ -44,14 +44,14 @@ If you're ever confused, at least there's help:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
> names --help
|
> names --help
|
||||||
names 0.10.0
|
names 0.11.0
|
||||||
|
|
||||||
Author: Fletcher Nichol <fnichol@nichol.ca>
|
Author: Fletcher Nichol <fnichol@nichol.ca>
|
||||||
|
|
||||||
A random name generator with results like `delirious-pail'.
|
A random name generator with results like `delirious-pail'.
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
names [FLAGS] [ARGS]
|
names [FLAGS] [ARGS]
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
|
@ -59,7 +59,7 @@ FLAGS:
|
||||||
-V, --version Prints version information
|
-V, --version Prints version information
|
||||||
|
|
||||||
ARGS:
|
ARGS:
|
||||||
amount Number of names to generate (default: 1)
|
[amount] Number of names to generate (default: 1)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -94,23 +94,23 @@ If you want (or need) to build the CLI from source, the following should not tak
|
||||||
|
|
||||||
#### A static binary on Linux?
|
#### A static binary on Linux?
|
||||||
|
|
||||||
This project was used by its author to experiment with producing static binaries on Linux from a Rust project that has no external dependencies. This was done using a special build of Rust that supports the [musl](http://www.musl-libc.org/) libc project, available via the [fnichol/rust:1.4.0-musl](https://hub.docker.com/r/fnichol/rust/) Docker image. Here's an example building the CLI to a static ELF binary on Linux:
|
This project was used by its author to experiment with producing static binaries on Linux from a Rust project that has no external dependencies. This was done using a special build of Rust that supports the [musl](http://www.musl-libc.org/) libc project, available via the [fnichol/rust:1.8.0-musl](https://hub.docker.com/r/fnichol/rust/) Docker image. Here's an example building the CLI to a static ELF binary on Linux:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
> git clone https://github.com/fnichol/names.git
|
> git clone https://github.com/fnichol/names.git
|
||||||
> cd names
|
> cd names
|
||||||
> docker run --rm -ti -v `pwd`:/src -w /src/cli fnichol/rust:1.4.0-musl \
|
> docker run --rm -ti -v `pwd`:/src -w /src/cli fnichol/rust:1.8.0-musl \
|
||||||
cargo build --release --target=x86_64-unknown-linux-musl
|
cargo build --release --target=x86_64-unknown-linux-musl
|
||||||
|
|
||||||
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.4.0-musl \
|
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.8.0-musl \
|
||||||
du -h ./cli/target/x86_64-unknown-linux-musl/release/names
|
du -h ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
1.5M ./cli/target/x86_64-unknown-linux-musl/release/names
|
1.5M ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
|
|
||||||
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.4.0-musl \
|
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.8.0-musl \
|
||||||
ldd ./cli/target/x86_64-unknown-linux-musl/release/names
|
ldd ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
not a dynamic executable
|
not a dynamic executable
|
||||||
|
|
||||||
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.4.0-musl \
|
> docker run --rm -ti -v `pwd`:/src fnichol/rust:1.8.0-musl \
|
||||||
file ./cli/target/x86_64-unknown-linux-musl/release/names
|
file ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
./cli/target/x86_64-unknown-linux-musl/release/names: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=6ad327ca3a5b21c42fa158832d89f6e9b0fc8e73, not stripped
|
./cli/target/x86_64-unknown-linux-musl/release/names: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=6ad327ca3a5b21c42fa158832d89f6e9b0fc8e73, not stripped
|
||||||
```
|
```
|
||||||
|
@ -121,7 +121,7 @@ A variant of this approach is used in the [build_linux.sh](https://github.com/fn
|
||||||
```sh
|
```sh
|
||||||
> git clone https://github.com/fnichol/names.git
|
> git clone https://github.com/fnichol/names.git
|
||||||
> cd names
|
> cd names
|
||||||
> ./cli/scripts/build_linux.sh 0.10.0
|
> ./cli/scripts/build_linux.sh 0.11.0
|
||||||
|
|
||||||
> du -h ./cli/target/x86_64-unknown-linux-musl/release/names
|
> du -h ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
996K ./cli/target/x86_64-unknown-linux-musl/release/names
|
996K ./cli/target/x86_64-unknown-linux-musl/release/names
|
||||||
|
@ -130,8 +130,8 @@ A variant of this approach is used in the [build_linux.sh](https://github.com/fn
|
||||||
./cli/target/x86_64-unknown-linux-musl/release/names: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
|
./cli/target/x86_64-unknown-linux-musl/release/names: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
|
||||||
|
|
||||||
> du -csh ./cli/target/names*.zip*
|
> du -csh ./cli/target/names*.zip*
|
||||||
396K cli/target/names_0.10.0_linux_x86_64.zip
|
396K cli/target/names_0.11.0_linux_x86_64.zip
|
||||||
4.0K cli/target/names_0.10.0_linux_x86_64.zip.sha256
|
4.0K cli/target/names_0.11.0_linux_x86_64.zip.sha256
|
||||||
400K total
|
400K total
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ VERSION="${1:-${VERSION}}"
|
||||||
|
|
||||||
echo "--> Building Linux release artifact version $VERSION"
|
echo "--> Building Linux release artifact version $VERSION"
|
||||||
pushd `dirname $0`/../../
|
pushd `dirname $0`/../../
|
||||||
docker run --rm -v `pwd`:/src -e VERSION=$VERSION fnichol/rust:1.4.0-musl \
|
docker run --rm -v `pwd`:/src -e VERSION=$VERSION fnichol/rust:1.8.0-musl \
|
||||||
bash -c 'set -eux
|
bash -c 'set -eux
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y zip
|
apt-get install -y zip
|
||||||
|
|
Loading…
Reference in New Issue