Closed SiddheshKanawade closed 2 years ago
@smrpn @hackerchai @PsiACE @GopherJ
@PsiACE
Do not use rustc directly. I highly recommend that you use cargo for all the work that needs to be done.
I have tried cargo build in this project and there will not be any problem.
I have tried using cargo build
and cargo test
and then I ran the project using cargo run
. It worked in my case but not sure why rustc
gave error. Still this solves the issue in my case, thanks for the help.
Also, @PsiACE, do we still have to implement Rust version of Casbin server, since this feature is removed from Casbin-rs project (GSOC '22).
hi @SiddheshKanawade , In GSoC 2021, we have a casbin-grpc that you can consider to improve on it.
Sure, I will try to improve on it Thank you.
https://doc.rust-lang.org/rustc/command-line-arguments.html#--edition-specify-the-edition-to-use
rustc
defaults to 2015
.
cargo
just passes the correct edition to rustc
. If you invoke rustc
directly, you need to specify the edition yourself.
@schungx Thank you for your help, now its clear why rustc gave error.
I was trying to setup the local environment to run rust-cabin-example. I am consistently getting an error saying upgrade to latest version of RUST. I am using 2021 version of rust in project and have tried
cargo fix —edition
but still issue continues. Can someone please help to solve this issue Following is the screenshot of the issue:Following is how my Cargo.toml file looks like