saschagrunert / webapp.rs

A web application completely written in Rust. 🌍

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run `make backend`: : cannot find type `Acl_permission` in this scope

eswr opened this issue · comments

when i first ran make backend, i got the following error.

error: recursion limit reached while expanding the macro `table_body`
   --> src/backend/database/schema.rs:173:1
    |
173 | / table! {
174 | |     /// Representation of the `peers` table.
175 | |     ///
176 | |     /// (Automatically generated by Diesel.)
...   |
286 | |     }
287 | | }
    | |_^
    |
    = help: consider adding a `#![recursion_limit="128"]` attribute to your crate
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

error: Could not compile `webapp`.

i could fix it by adding '#![recursion_limit="256"]' to /src/lib.rs

Now i got the following error

error[E0412]: cannot find type `Acl_permission` in this scope
  --> src/backend/database/schema.rs:29:23
   |
29 |         permission -> Acl_permission,
   |                       ^^^^^^^^^^^^^^ did you mean `permission`?

error[E0412]: cannot find type `Acl_permission` in this scope
  --> src/backend/database/schema.rs:61:23
   |
61 |         permission -> Acl_permission,
   |                       ^^^^^^^^^^^^^^ did you mean `permission`?

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0412`.
error: Could not compile `webapp`.

To learn more, run the command again with --verbose.

steps to reproduce:

git clone
make backend

Tank you for the issue. I cannot reproduce this on my machines. Are you using the latest version of the diesel cli?

> diesel --version
diesel 1.3.1

Also did you verify with a cargo update that you are using the latest crate versions? Which system are you running? Which rust version do you use?

it worked after cargo update. thanks.

Thank you!