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

error - "cargo build" #23

Open
Bounderx opened this issue May 13, 2020 · 1 comment
Open

error - "cargo build" #23

Bounderx opened this issue May 13, 2020 · 1 comment

Comments

@Bounderx
Copy link

when i do cargo build this error comes up. What is it ?

ubuntu@ubuntu:~/rust/projektx$ cargo build Compiling conduit v0.1.0 (/home/ubuntu/rust/projektx) error[E0277]: the trait bound uuid::Uuid: diesel::Expressionis not satisfied --> src/models/article.rs:18:17 | 18 | #[derive(Debug, Insertable)] | ^^^^^^^^^^ the traitdiesel::Expressionis not implemented foruuid::Uuid| = note: required because of the requirements on the impl ofdiesel::expression::AsExpressiondiesel::sql_types::Uuidforuuid::Uuid`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:18:17
|
18 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:18:17
|
18 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 15 previous errors

For more information about this error, try rustc --explain E0277.
error: could not compile conduit.

To learn more, run the command again with --verbose.
ubuntu@ubuntu:~/rust/projektx$
`

@dustypomerleau
Copy link

I was able to build after updating the following dependencies in Cargo.toml:

blob-uuid = "0.4.0"
diesel = { version = "1.4.5", features = ["chrono", "postgres", "r2d2", "uuidv07", "serde_json"] }
uuid = { version = "0.8.1", features = ["serde", "v4"] }

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

2 participants