1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Fix casbin example for actix-web v3 (#467)

This commit is contained in:
Christian Beier
2022-01-04 12:41:17 +01:00
committed by GitHub
parent 06ffe40945
commit 16447351c1
2 changed files with 32 additions and 41 deletions

View File

@ -6,5 +6,10 @@ edition = "2018"
[dependencies]
actix-web = "3"
casbin = "2"
# 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"
loge = {version = "0.4", default-features = false, features = ["colored", "chrono"]}