File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ## [ 1.2.0] - 2021-10-03
11+
1012### Added
1113
1214- Added ` --slug ` , ` --version ` , and ` --help ` arguments to ` cuid ` binary ([ b93b5b3] )
@@ -75,7 +77,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7577- CUID & CUID slug generation
7678- Benchmark suite
7779
78- [ unreleased ] : https://github.com/mplanchard/cuid-rust/compare/v1.1.0...HEAD
80+ [ unreleased ] : https://github.com/mplanchard/cuid-rust/compare/v1.2.0...HEAD
81+ [ 1.2.0 ] : https://github.com/mplanchard/cuid-rust/compare/v1.1.0...v1.2.0
7982[ 1.1.0 ] : https://github.com/mplanchard/cuid-rust/compare/v1.0.2...v1.1.0
8083[ 1.0.2 ] : https://github.com/mplanchard/cuid-rust/compare/v1.0.1...v1.0.2
8184[ 1.0.1 ] : https://github.com/mplanchard/cuid-rust/compare/v1.0.0...v1.0.1
Original file line number Diff line number Diff line change 11[package ]
22name = " cuid"
3- version = " 1.1 .0"
3+ version = " 1.2 .0"
44license = " MIT"
55edition = " 2018"
66authors = [
" Matthew Planchard <[email protected] >" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ implementation of which may be found [here](https://github.com/ericelliott/cuid)
1515In cargo.toml
1616
1717``` toml
18- cuid = " 1.1 .0"
18+ cuid = " 1.2 .0"
1919```
2020
2121Or install the binary:
@@ -39,13 +39,24 @@ fn main() -> () {
3939threads share the same atomic counter, which is used as a component of the
4040generated CUID.
4141
42- This package also provides a binary:
42+ This package also provides a binary if installed via ` cargo install ` .
43+
44+ Its default behavior is to generate a CUID:
4345
4446``` sh
4547> cuid
4648ckmqrwysb0000iz5p4u1b79hd
4749```
4850
51+ You can also generate a slug:
52+
53+ ``` sh
54+ > cuid --slug
55+ 4k0000dszy
56+ ```
57+
58+ See ` cuid --help ` for more information.
59+
4960## Performance
5061
5162Performance is one of the primary concerns of this library (see
You can’t perform that action at this time.
0 commit comments