-
Notifications
You must be signed in to change notification settings - Fork 22
/
README.tpl
67 lines (42 loc) · 1.64 KB
/
README.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# `diesel-derive-newtype`
Easy-peasy support of newtypes inside of Diesel.
[![Rust](https://github.com/quodlibetor/diesel-derive-newtype/actions/workflows/test.yml/badge.svg?branch=diesel-2)](https://github.com/quodlibetor/diesel-derive-newtype/actions/workflows/test.yml) [![Crates.io Version](https://img.shields.io/crates/v/diesel-derive-newtype.svg)](https://crates.io/crates/diesel-derive-newtype)
## Installation
diesel-derive-newtype supports Diesel according to its major version -- 0.x
through 1.x support the corresponding diesel versions, 2.0 supports diesel 2.0,
and 2.1 supports 2.1.
New features are only developed for the currently supported version of Diesel.
```toml
[dependencies]
diesel-derive-newtype = "2.1.0"
```
for Diesel 2.0.x you have to tell cargo not to upgrade diesel-derive-newtype:
```toml
[dependencies]
diesel-derive-newtype = "~ 2.0.0"
```
And for Diesel 1.x:
```toml
[dependencies]
diesel-derive-newtype = "1.0"
```
{{readme}}
## Releasing
This workflow uses:
* [cargo-readme](https://crates.io/crates/cargo-readme)
* [cargo-release](https://crates.io/crates/cargo-release)
Run, note that we always release patch releases unless diesel has got a new
release:
```
cargo readme > README.md
git diff --exit-code --quiet README.* || (git add README.* && git commit -m "chore: Update README")
cargo release patch
```
## License
diesel-derive-newtype is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)
at your option.
Patches and bug reports welcome!