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
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 1.2.0] - 2021-10-03
11
+
10
12
### Added
11
13
12
14
- 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
75
77
- CUID & CUID slug generation
76
78
- Benchmark suite
77
79
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
79
82
[ 1.1.0 ] : https://github.com/mplanchard/cuid-rust/compare/v1.0.2...v1.1.0
80
83
[ 1.0.2 ] : https://github.com/mplanchard/cuid-rust/compare/v1.0.1...v1.0.2
81
84
[ 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 1
1
[package ]
2
2
name = " cuid"
3
- version = " 1.1 .0"
3
+ version = " 1.2 .0"
4
4
license = " MIT"
5
5
edition = " 2018"
6
6
authors = [
" 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)
15
15
In cargo.toml
16
16
17
17
``` toml
18
- cuid = " 1.1 .0"
18
+ cuid = " 1.2 .0"
19
19
```
20
20
21
21
Or install the binary:
@@ -39,13 +39,24 @@ fn main() -> () {
39
39
threads share the same atomic counter, which is used as a component of the
40
40
generated CUID.
41
41
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:
43
45
44
46
``` sh
45
47
> cuid
46
48
ckmqrwysb0000iz5p4u1b79hd
47
49
```
48
50
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
+
49
60
## Performance
50
61
51
62
Performance is one of the primary concerns of this library (see
You can’t perform that action at this time.
0 commit comments