Browse Source

Release 0.11.0.

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
master v0.11.0
Fletcher Nichol 6 years ago
parent
commit
045758db56
6 changed files with 30 additions and 17 deletions
  1. +13
    -0
      CHANGELOG.md
  2. +1
    -1
      Cargo.toml
  3. +3
    -3
      cli/Cargo.lock
  4. +1
    -1
      cli/Cargo.toml
  5. +11
    -11
      cli/README.md
  6. +1
    -1
      cli/scripts/build_linux.sh

+ 13
- 0
CHANGELOG.md View File

@ -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
### Breaking API changes


+ 1
- 1
Cargo.toml View File

@ -1,6 +1,6 @@
[package]
name = "names"
version = "0.10.0"
version = "0.11.0"
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
license = "MIT"
readme = "README.md"


+ 3
- 3
cli/Cargo.lock View File

@ -1,9 +1,9 @@
[root]
name = "names-cli"
version = "0.10.0"
version = "0.11.0"
dependencies = [
"clap 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"names 0.10.0",
"names 0.11.0",
]
[[package]]
@ -36,7 +36,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "names"
version = "0.10.0"
version = "0.11.0"
dependencies = [
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
]


+ 1
- 1
cli/Cargo.toml View File

@ -1,6 +1,6 @@
[package]
name = "names-cli"
version = "0.10.0"
version = "0.11.0"
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
license = "MIT"
repository = "https://github.com/fnichol/names.git"


+ 11
- 11
cli/README.md View File

@ -44,14 +44,14 @@ If you're ever confused, at least there's help:
```sh
> names --help
names 0.10.0
names 0.11.0
Author: Fletcher Nichol <fnichol@nichol.ca>
A random name generator with results like `delirious-pail'.
USAGE:
names [FLAGS] [ARGS]
names [FLAGS] [ARGS]
FLAGS:
-h, --help Prints help information
@ -59,7 +59,7 @@ FLAGS:
-V, --version Prints version information
ARGS:
amount Number of names to generate (default: 1)
[amount] Number of names to generate (default: 1)
```
## 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?
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
> git clone https://github.com/fnichol/names.git
> 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
> 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
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
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
./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
> git clone https://github.com/fnichol/names.git
> 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
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
> du -csh ./cli/target/names*.zip*
396K cli/target/names_0.10.0_linux_x86_64.zip
4.0K cli/target/names_0.10.0_linux_x86_64.zip.sha256
396K cli/target/names_0.11.0_linux_x86_64.zip
4.0K cli/target/names_0.11.0_linux_x86_64.zip.sha256
400K total
```


+ 1
- 1
cli/scripts/build_linux.sh View File

@ -11,7 +11,7 @@ VERSION="${1:-${VERSION}}"
echo "--> Building Linux release artifact version $VERSION"
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
apt-get update
apt-get install -y zip


Loading…
Cancel
Save