From 3161023cf2e681189be1e895e94bb90bb63f4b9d Mon Sep 17 00:00:00 2001 From: Hackerchai Date: Fri, 4 Sep 2020 20:34:56 +0800 Subject: [PATCH 1/2] Feat: update functions --- Cargo.toml | 2 +- tests/test_set_enforcer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e12c10..e44ddef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ path = "src/lib.rs" [dependencies] actix = "0.9.0" casbin = { version = "2.0.1", default-features = false, features = [ "incremental", "cached"] } -actix-casbin-auth = { version = "0.4.0", default-features = false } +actix-casbin-auth = { version = "0.4.2", default-features = false } tokio = { version = "0.2.22", default-features = false, optional = true } async-std = { version = "1.6.3", default-features = false, optional = true } futures = "0.3" diff --git a/tests/test_set_enforcer.rs b/tests/test_set_enforcer.rs index 0d1aef1..053814d 100644 --- a/tests/test_set_enforcer.rs +++ b/tests/test_set_enforcer.rs @@ -10,7 +10,7 @@ async fn test_set_enforcer() { .unwrap(); let a = FileAdapter::new("examples/rbac_policy.csv"); - let mut casbin_middleware = CasbinService::new(m, a).await; + let mut casbin_middleware = CasbinService::new(m, a).await.unwrap(); let enforcer = casbin_middleware.get_enforcer(); let addr = CasbinActor::::set_enforcer(enforcer) From 96b3cf68b582a133c4815baf033b1ab9486510f8 Mon Sep 17 00:00:00 2001 From: Hackerchai Date: Fri, 4 Sep 2020 20:40:42 +0800 Subject: [PATCH 2/2] Feat: nump version 0.4.1 --- Cargo.toml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e44ddef..8dc30ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-casbin" -version = "0.4.0" +version = "0.4.1" authors = ["Eason Chai ","Cheng JIANG "] edition = "2018" license = "Apache-2.0" diff --git a/README.md b/README.md index 2068bdb..062474a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add it to `Cargo.toml` ```rust -actix-casbin = "0.4.0" +actix-casbin = "0.4.1" actix-rt = "1.1.1" ```