Giter Club home page Giter Club logo

Comments (8)

SiddheshKanawade avatar SiddheshKanawade commented on June 12, 2024 1

@schungx Thank you for your help, now its clear why rustc gave error.

from casbin-rs.

casbin-bot avatar casbin-bot commented on June 12, 2024

@smrpn @hackerchai @PsiACE @GopherJ

from casbin-rs.

hsluoyz avatar hsluoyz commented on June 12, 2024

@PsiACE

from casbin-rs.

PsiACE avatar PsiACE commented on June 12, 2024

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.

from casbin-rs.

SiddheshKanawade avatar SiddheshKanawade commented on June 12, 2024

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).

from casbin-rs.

PsiACE avatar PsiACE commented on June 12, 2024

hi @SiddheshKanawade , In GSoC 2021, we have a casbin-grpc that you can consider to improve on it.

from casbin-rs.

SiddheshKanawade avatar SiddheshKanawade commented on June 12, 2024

Sure, I will try to improve on it
Thank you.

from casbin-rs.

schungx avatar schungx commented on June 12, 2024

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.

from casbin-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.