Closed arnaudpoullet closed 3 years ago
@hackerchai @PsiACE plz take a look
/cc @GopherJ
@arnaudpoullet Try to write cargo.toml
like this:
actix-casbin= {version = "0.4.2", default-features = false, features = [ "runtime-async-std" ]}
actix-casbin-auth = {version = "0.4.4", default-features = false, features = [ "runtime-async-std" ]}
diesel-adapter = { version = "0.8.1", default-features = false, features = ["postgres","runtime-async-std"] }
This should avoid async runtime multipile importing issue.
Thank you8 This works indeed. I think this should be added to the Install
section of the README.
As well, I don't want to make a new issue for this, but I had to do an extra import to get the example code working in my main. I think it should be added too, because it doesn't seem to work without.
use actix_casbin_auth::casbin::function_map::key_match2;
@arnaudpoullet can you make a PR to fix the README?
Hello,
I'm having trouble simply adding this crate to my project. The cfg conditional featured-based
use statements
do not seem to be taken into account. Here are the errors:These errors appear whether or not I add the
features = ["runtime-tokio"]
to my Cargo.toml. I'm working withrustc 1.49.0 (e1884a8e3 2020-12-29)
and here is the list of dependencies from myCargo.toml
:Any help would be appreciated.