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

Could not compile `diesel`. #578

Closed
Ga1der opened this Issue Jan 14, 2017 · 12 comments

Comments

Projects
None yet
3 participants
@Ga1der

Ga1der commented Jan 14, 2017

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>cargo install
   Compiling quote v0.3.10
   Compiling winapi-build v0.1.1
   Compiling libc v0.2.19
   Compiling unicode-xid v0.0.3
   Compiling memchr v0.1.11
   Compiling pq-sys v0.2.7
   Compiling winapi v0.2.8
   Compiling kernel32-sys v0.2.2
   Compiling aho-corasick v0.5.3
   Compiling syn v0.10.6
   Compiling utf8-ranges v0.1.3
   Compiling byteorder v0.3.13
   Compiling regex-syntax v0.3.9
   Compiling diesel v0.9.1
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 error: expected expression, found `1`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49                     if row.next_is_null($Tuple) {
                                                                                                                                             ^~~~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 error: expected `{`, found `1`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49                     if row.next_is_null($Tuple) {
                                                                                                                                             ^~~~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:49:41: 49:47 help: place this code inside a block
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66                     ($($T::build(row.$idx),)+)
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: expected one of `,`, `.`, `::`, `?`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66                     ($($T::build(row.$idx),)+)
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66:38: 66:42 error: expected one of `)`, `,`, `.`, `::`, `?`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:66                     ($($T::build(row.$idx),)+)
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:78:28: 78:32 error: expected expression, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:78                         if $idx != 0 {
                                                                                                                                ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94:28: 94:32 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94                     $(self.$idx.is_safe_to_cache_prepared() &&)+ true
                                                                                                                                ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94:28: 94:32 error: expected one of `.`, `::`, `;`, `?`, `}`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:94                     $(self.$idx.is_safe_to_cache_prepared() &&)+ true
                                                                                                                                ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:118:28: 118:32 error: expected expression, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:118                         if $idx != 0 {
                                                                                                                                 ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:129:28: 129:32 error: expected expression, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:129                         if $idx != 0 {
                                                                                                                                 ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145:37: 145:41 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145:37: 145:41 error: expected one of `.`, `::`, `?`, `{`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:145                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167:37: 167:41 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167:37: 167:41 error: expected one of `.`, `::`, `?`, `{`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:167                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186:37: 186:41 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186:37: 186:41 error: expected one of `.`, `::`, `?`, `{`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:186                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206:37: 206:41 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206:37: 206:41 error: expected one of `.`, `::`, `?`, `{`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:206                         match &self.$idx {
                                                                                                                                          ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242:29: 242:33 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242                     ($(self.$idx.as_changeset(),)+)
                                                                                                                                  ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242:29: 242:33 error: expected one of `)`, `,`, `.`, `::`, `?`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:242                     ($(self.$idx.as_changeset(),)+)
                                                                                                                                  ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251:28: 251:32 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251                     $(self.$idx.is_noop() &&)+ true
                                                                                                                                 ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251:28: 251:32 error: expected one of `.`, `::`, `;`, `?`, `}`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:251                     $(self.$idx.is_noop() &&)+ true
                                                                                                                                 ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258:49: 258:53 error: unexpected token: `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258                         let noop_element = self.$idx.is_noop();
                                                                                                                                                      ^~~~
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258:49: 258:53 error: expected one of `.`, `::`, `;`, `?`, or an operator, found `0`
C:\Users\_\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-0.9.1\src\types\impls\tuples.rs:258                         let noop_element = self.$idx.is_noop();
                                                                                                                                                      ^~~~
Build failed, waiting for other jobs to finish...
error: failed to compile `diesel_demo_step_3 v0.1.0 (file:///D:/idea%20projects/rust_diesel/diesel/examples/getting_started_step_3)`, intermediate artifacts can be found at `D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3\target`

Caused by:
  Could not compile `diesel`.

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

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>

@killercup

This comment has been minimized.

Member

killercup commented Jan 14, 2017

@Ga1der

This comment has been minimized.

Ga1der commented Jan 14, 2017

rust version is 1.11.0
cargo build gives the same result

this is a example from https://github.com/diesel-rs/diesel/tree/master/examples/getting_started_step_3
what guide do you mean ? this one ? http://diesel.rs/guides/getting-started/ yes i did

@killercup

This comment has been minimized.

Member

killercup commented Jan 14, 2017

Yes that's the guide I mean. (I think you want to use cargo build or cargo run; cargo install is for installing rust applications on your system.)

I don't think diesel 0.9 works with rust 1.11. Can you update to 1.14?

@Ga1der

This comment has been minimized.

Ga1der commented Jan 14, 2017

thx it helped

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
info: downloading component 'rustc'
 34.7 MiB /  34.7 MiB (100 %)   5.2 MiB/s ETA:   0 s
info: downloading component 'rust-std'
 41.9 MiB /  41.9 MiB (100 %)   8.5 MiB/s ETA:   0 s
info: downloading component 'cargo'
  4.1 MiB /   4.1 MiB (100 %) 675.4 KiB/s ETA:   0 s
info: downloading component 'rust-mingw'
info: downloading component 'rust-docs'
  6.9 MiB /   6.9 MiB (100 %) 991.6 KiB/s ETA:   0 s
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-mingw'
info: installing component 'rust-docs'
info: checking for self-updates

  stable-x86_64-pc-windows-gnu updated - rustc 1.14.0 (e8a012324 2016-12-16)


D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>

but now i have another problem

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling quote v0.3.10
   Compiling winapi-build v0.1.1
   Compiling pq-sys v0.2.7
   Compiling utf8-ranges v0.1.3
   Compiling byteorder v0.3.13
   Compiling libc v0.2.19
   Compiling unicode-xid v0.0.3
   Compiling memchr v0.1.11
   Compiling kernel32-sys v0.2.2
   Compiling syn v0.10.6
   Compiling aho-corasick v0.5.3
   Compiling winapi v0.2.8
   Compiling diesel v0.9.1 (file:///D:/idea%20projects/rust_diesel/diesel/diesel)
   Compiling regex-syntax v0.3.9
   Compiling thread-id v2.0.0
   Compiling thread_local v0.2.7
   Compiling regex v0.1.80
   Compiling dotenv v0.8.0
   Compiling diesel_codegen_shared v0.9.0 (file:///D:/idea%20projects/rust_diesel/diesel/diesel_codegen_shared)
   Compiling diesel_codegen v0.9.0 (file:///D:/idea%20projects/rust_diesel/diesel/diesel_codegen)
error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:40:3
   |
40 | #[proc_macro_derive(Identifiable, attributes(table_name, primary_key))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:45:3
   |
45 | #[proc_macro_derive(Insertable, attributes(table_name, column_name))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:50:3
   |
50 | #[proc_macro_derive(AsChangeset, attributes(table_name, column_name, changeset_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:55:3
   |
55 | #[proc_macro_derive(Associations, attributes(table_name, has_many, belongs_to))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:60:3
   |
60 | #[proc_macro_derive(InferSchema, attributes(infer_schema_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:66:3
   |
66 | #[proc_macro_derive(InferTableFromSchema, attributes(infer_table_from_schema_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:72:3
   |
72 | #[proc_macro_derive(EmbedMigrations, attributes(embed_migrations_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `proc-macro` crate type is experimental
  |
  = help: add #![feature(proc_macro)] to the crate attributes to enable

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:35:1
   |
35 | #[proc_macro_derive(Queryable)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:40:1
   |
40 | #[proc_macro_derive(Identifiable, attributes(table_name, primary_key))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:45:1
   |
45 | #[proc_macro_derive(Insertable, attributes(table_name, column_name))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:50:1
   |
50 | #[proc_macro_derive(AsChangeset, attributes(table_name, column_name, changeset_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:55:1
   |
55 | #[proc_macro_derive(Associations, attributes(table_name, has_many, belongs_to))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:60:1
   |
60 | #[proc_macro_derive(InferSchema, attributes(infer_schema_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:66:1
   |
66 | #[proc_macro_derive(InferTableFromSchema, attributes(infer_table_from_schema_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:72:1
   |
72 | #[proc_macro_derive(EmbedMigrations, attributes(embed_migrations_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 8 previous errors

error: Could not compile `diesel_codegen`.

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

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>

@killercup

This comment has been minimized.

Member

killercup commented Jan 14, 2017

Cool! As the guide mentions, the first three steps are assuming you are using a semi-recent nightly compiler. Step 4 adds support for building on stable.

FYI: Diesel will work on stable with the release of Rust 1.15 on February 3!

@Ga1der

This comment has been minimized.

Ga1der commented Jan 14, 2017

what version of rust and diesel should i use to play around with diesel today ?

@killercup

This comment has been minimized.

Member

killercup commented Jan 14, 2017

@Ga1der

This comment has been minimized.

Ga1der commented Jan 14, 2017

my goal is to test how much of performance cat i squeeze out of rust+Diesel vs php+PDO

@Ga1der

This comment has been minimized.

Ga1der commented Jan 14, 2017

btw nightly

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>rustup update nightly
info: syncing channel updates for 'nightly-x86_64-pc-windows-gnu'

  nightly-x86_64-pc-windows-gnu unchanged - rustc 1.16.0-nightly (1a2ed98d3 2017-01-13)


D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>cargo build
   Compiling diesel_codegen v0.9.0 (file:///D:/idea%20projects/rust_diesel/diesel/diesel_codegen)
error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:40:3
   |
40 | #[proc_macro_derive(Identifiable, attributes(table_name, primary_key))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:45:3
   |
45 | #[proc_macro_derive(Insertable, attributes(table_name, column_name))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:50:3
   |
50 | #[proc_macro_derive(AsChangeset, attributes(table_name, column_name, changeset_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:55:3
   |
55 | #[proc_macro_derive(Associations, attributes(table_name, has_many, belongs_to))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:60:3
   |
60 | #[proc_macro_derive(InferSchema, attributes(infer_schema_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:66:3
   |
66 | #[proc_macro_derive(InferTableFromSchema, attributes(infer_table_from_schema_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:72:3
   |
72 | #[proc_macro_derive(EmbedMigrations, attributes(embed_migrations_options))]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `proc-macro` crate type is experimental
  |
  = help: add #![feature(proc_macro)] to the crate attributes to enable

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:35:1
   |
35 | #[proc_macro_derive(Queryable)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:40:1
   |
40 | #[proc_macro_derive(Identifiable, attributes(table_name, primary_key))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:45:1
   |
45 | #[proc_macro_derive(Insertable, attributes(table_name, column_name))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:50:1
   |
50 | #[proc_macro_derive(AsChangeset, attributes(table_name, column_name, changeset_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:55:1
   |
55 | #[proc_macro_derive(Associations, attributes(table_name, has_many, belongs_to))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:60:1
   |
60 | #[proc_macro_derive(InferSchema, attributes(infer_schema_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:66:1
   |
66 | #[proc_macro_derive(InferTableFromSchema, attributes(infer_table_from_schema_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the `#[proc_macro_derive]` attribute is an experimental feature (see issue #35900)
  --> D:\idea projects\rust_diesel\diesel\diesel_codegen\src\lib.rs:72:1
   |
72 | #[proc_macro_derive(EmbedMigrations, attributes(embed_migrations_options))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 8 previous errors

error: Could not compile `diesel_codegen`.

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

D:\idea projects\rust_diesel\diesel\examples\getting_started_step_3>

@killercup

This comment has been minimized.

Member

killercup commented Jan 14, 2017

Did you use the diesel version from git master? Also, did you set nightly to be the default toolchain to be used? Otherwise you might need to call it like cargo +nightly build.

my goal is to test how much of performance cat i squeeze out of rust+Diesel vs php+PDO

With a CPU-heavy, Rust will probably run laps around PHP, with database-heavy application it might be not that much of a difference.

@Ga1der

This comment has been minimized.

Ga1der commented Jan 16, 2017

well, so far no luck
but i did run tests with sfackler/rust-postgres and results were not so impressive unfortunately
rust-postgres is about twice as fast compared to PDO
but pg_connect surprisingly gives the same result so ...

thanks for your help anyway )

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 6, 2017

Looks like there's nothing actionable left here. If you're still having trouble, I recommend trying Diesel 0.10 with Rust 1.15 stable.

@sgrif sgrif closed this Feb 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment