Skip to content

Commit 8fb219a

Browse files
authored
Merge pull request #49 from hackerchai/master
Feat: bump version 0.8.1
2 parents 7337d96 + 8a7448a commit 8fb219a

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.github/workflows/ci.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
- 5432:5432
2525
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2626

27+
mysql:
28+
image: mysql:8.0
29+
env:
30+
MYSQL_DATABASE: casbin
31+
MYSQL_USER: casbin_rs
32+
MYSQL_PASSWORD: casbin_rs
33+
MYSQL_ROOT_PASSWORD: root
34+
ports:
35+
- 3306:3306
36+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
37+
2738
steps:
2839
- name: Checkout Repository
2940
uses: actions/checkout@master
3041

31-
- name: Shutdown Ubuntu MySQL (SUDO)
32-
run: sudo service mysql stop
33-
34-
- name: Set Up MySQL
35-
uses: mirromutth/[email protected]
36-
with:
37-
mysql version: '8.0'
38-
mysql database: 'casbin'
39-
mysql user: 'casbin_rs'
40-
mysql password: 'casbin_rs'
41-
4242
- name: Install Rust toolchain
4343
uses: actions-rs/toolchain@v1
4444
with:

Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel-adapter"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
authors = ["Cheng JIANG <[email protected]>"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -9,12 +9,12 @@ homepage= "https://github.com/casbin-rs/diesel-adapter"
99
readme= "README.md"
1010

1111
[dependencies]
12-
casbin = { version = "2.0.1", default-features = false }
12+
casbin = { version = "2.0.2", default-features = false }
1313
diesel = { version = "1.4.5", default-features = false, features = ["r2d2"] }
14-
async-trait = "0.1.36"
14+
async-trait = "0.1.40"
1515
futures = "0.3.5"
16-
tokio = { version = "0.2.21", default-features = false, optional = true }
17-
async-std = { version = "1.6.2", default-features = false, optional = true }
16+
tokio = { version = "0.2.22", default-features = false, optional = true }
17+
async-std = { version = "1.6.4", default-features = false, optional = true }
1818

1919
[features]
2020
default = ["postgres", "runtime-async-std"]
@@ -27,6 +27,6 @@ runtime-tokio = ["casbin/runtime-tokio", "tokio/blocking", "tokio/rt-core"]
2727
runtime-async-std = ["casbin/runtime-async-std", "async-std/unstable"]
2828

2929
[dev-dependencies]
30-
async-std = { version = "1.6.2", features = [ "attributes", "unstable"] }
31-
tokio = { version = "0.2.21", features = [ "full" ] }
30+
async-std = { version = "1.6.4", features = [ "attributes", "unstable"] }
31+
tokio = { version = "0.2.22", features = [ "full" ] }
3232

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Based on [Diesel](https://github.com/diesel-rs/diesel), The current supported da
1818
Add it to `Cargo.toml`
1919

2020
```
21-
diesel-adapter = { version = "0.8.0", features = ["postgres"] }
22-
async-std = "1.6.3"
21+
diesel-adapter = { version = "0.8.1", features = ["postgres"] }
22+
async-std = "1.6.4"
2323
```
2424

2525
## Example
@@ -41,5 +41,6 @@ async fn main() -> Result<()> {
4141

4242
- `postgres`
4343
- `mysql`
44+
- `sqlite`
4445

45-
*Attention*: `postgres` and `mysql` are mutual exclusive which means that you can only activate one of them. Currently we don't have support for `sqlite`, it may be added in the near future.
46+
*Attention*: `postgres`, `mysql`, `sqlite` are mutual exclusive which means that you can only activate one of them.

0 commit comments

Comments
 (0)