From 3ca462355bd388883865c107fbc0d39adb2ff74d Mon Sep 17 00:00:00 2001 From: Christopher Gubbin <44929740+cgubbin@users.noreply.github.com> Date: Mon, 31 Jan 2022 12:59:07 +0000 Subject: [PATCH] Updated security/casbin to v4. (#516) --- security/casbin/Cargo.toml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/security/casbin/Cargo.toml b/security/casbin/Cargo.toml index 48185d7e..4ba15b04 100644 --- a/security/casbin/Cargo.toml +++ b/security/casbin/Cargo.toml @@ -2,15 +2,10 @@ name = "actix-casbin-example" version = "0.1.0" authors = ["Chojan Shang "] -edition = "2018" +edition = "2021" [dependencies] -actix-web = "3" -# from v2.0.6 on casbin only supports tokio 1 which conflicts with actix-web 3, -# see see https://github.com/casbin/casbin-rs#installation -casbin = "=2.0.5" -# these rhai deps are needed for casbin v2.0.5 -rhai = "=0.19.14" -rhai_codegen = "=0.3.3" +actix-web = "4.0.0-beta.21" +casbin = "2.0.9" loge = {version = "0.4", default-features = false, features = ["colored", "chrono"]} -tokio = { version = "0.2.22", features = ["sync"] } +tokio = { version = "1.16.1", features = ["sync"] }