Skip to content

Commit

Permalink
Merge pull request #11 from hackerchai/master
Browse files Browse the repository at this point in the history
Feat: bump version v0.3.1
  • Loading branch information
hackerchai authored Aug 4, 2020
2 parents 1a27973 + 2d0c8c2 commit 06a01d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-casbin"
version = "0.3.0"
version = "0.3.1"
authors = ["Eason Chai <hackerchai.com@gmail.com>","Cheng JIANG <jiang.cheng@vip.163.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -15,6 +15,7 @@ path = "src/lib.rs"
[dependencies]
actix = "0.9.0"
casbin = { version = "1.1.2", default-features = false, features = [ "incremental" ] }
actix-casbin-auth = {version = "0.3.1", default-features = false }
tokio = { version = "0.2.21", default-features = false, optional = true }
async-std = { version = "1.6.2", default-features = false, optional = true }
futures = "0.3"
Expand All @@ -29,4 +30,3 @@ runtime-async-std = ["casbin/runtime-async-std", "async-std/std", "actix-casbin-
tokio = { version = "0.2.21", features = [ "full" ] }
async-std = { version = "1.6.2", features = [ "attributes" ] }
actix-rt = "1.1.1"
actix-casbin-auth = {version = "0.3.0", default-features = false }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Add it to `Cargo.toml`

```rust
actix-casbin = "0.3.0"
actix-casbin = "0.3.1"
actix-rt = "1.1.1"
```

Expand Down Expand Up @@ -66,7 +66,7 @@ async fn main() -> Result<()> {
.await?;
let a = FileAdapter::new("examples/rbac_policy.csv");

let casbin_middleware = CasbinService::new(m, a).await;
let mut casbin_middleware = CasbinService::new(m, a).await;
let enforcer = casbin_middleware.get_enforcer().await;

let addr = CasbinActor::<CachedEnforcer>::set_enforcer(enforcer)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_set_enforcer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async fn test_set_enforcer() {
.unwrap();
let a = FileAdapter::new("examples/rbac_policy.csv");

let casbin_middleware = CasbinService::new(m, a).await;
let mut casbin_middleware = CasbinService::new(m, a).await;
let enforcer = casbin_middleware.get_enforcer().await;

let addr = CasbinActor::<CachedEnforcer>::set_enforcer(enforcer)
Expand Down

0 comments on commit 06a01d1

Please sign in to comment.