Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Lemmy from Scratch" release 0.17.4 - fails to compile with cargo #213

Open
RocketDerp opened this issue Jun 14, 2023 · 7 comments
Open

Comments

@RocketDerp
Copy link
Contributor

RocketDerp commented Jun 14, 2023

Following the "Lemmy from Scratch" install or upgrade instructions:

cargo install lemmy_server --target-dir /usr/bin/ --features embed-pictrs

encountering this error with 0.17.4:

error[E0405]: cannot find trait `RowGatWorkaround` in module `diesel::row`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/diesel-async-0.1.1/src/pg/row.rs:16:23
   |
16 | impl<'a> diesel::row::RowGatWorkaround<'a, diesel::pg::Pg> for PgRow {
   |                       ^^^^^^^^^^^^^^^^ not found in `diesel::row`

error[E0405]: cannot find trait `RowGatWorkaround` in module `diesel::row`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/diesel-async-0.1.1/src/pg/row.rs:30:39
   |
30 |     ) -> Option<<Self as diesel::row::RowGatWorkaround<'b, diesel::pg::Pg>>::Field>
   |                                       ^^^^^^^^^^^^^^^^ not found in `diesel::row`

For more information about this error, try `rustc --explain E0405`.
error: could not compile `diesel-async` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `lemmy_server v0.17.4`, intermediate artifacts can be found at `/usr/bin/`

Ubuntu server 22.04

@Nutomic
Copy link
Member

Nutomic commented Jun 14, 2023

Which Rust version are you using? Maybe needs a newer one.

@RocketDerp

This comment was marked as abuse.

@Nutomic
Copy link
Member

Nutomic commented Jun 14, 2023

I suggest you open an issue in the diesel repo: https://github.com/diesel-rs/diesel/issues

@RocketDerp

This comment was marked as abuse.

@Nutomic
Copy link
Member

Nutomic commented Jun 14, 2023

Alright feel free to change the docs to clone from git. It would also make the publishing process a little easier if we dont have to push to crates.io.

@RocketDerp

This comment was marked as abuse.

@Berulacks
Copy link

The problem I'm running into is when building from git checkout, how do we go about on the choice of pics being built in like there was a parameter with cargo?

Unless I'm mistaken, you enable the feature via an additional command line flag: cargo build --release --features embed-pictrs. (check the Cargo.toml file, and this link, for more info)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants