Created
September 8, 2016 16:57
-
-
Save dogamak/c1025c41385cbf0c3dae002489b2d775 to your computer and use it in GitHub Desktop.
Diesel macro error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "notehub" | |
version = "0.1.0" | |
authors = ["Mitja Karhusaari <monttu300@gmail.com>"] | |
[dependencies] | |
diesel = { git = "https://github.com/diesel-rs/diesel.git" } | |
diesel_codegen = { git = "https://github.com/diesel-rs/diesel.git" } | |
diesel_codegen_syntex = { git = "https://github.com/diesel-rs/diesel.git" } | |
custom_derive = "*" # Cargo.lock: 0.1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating git repository `https://github.com/diesel-rs/diesel.git | |
Updating git repository `https://github.com/diesel-rs/diesel.git` | |
Updating git repository `https://github.com/diesel-rs/diesel.git` | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Downloading custom_derive v0.1.5 | |
Downloading syntex_syntax v0.42.0 | |
Downloading syntex v0.42.2 | |
Downloading syntex_errors v0.42.0 | |
Downloading syntex_pos v0.42.0 | |
Downloading unicode-xid v0.0.3 | |
Downloading term v0.4.4 | |
Downloading rustc-serialize v0.3.19 | |
Downloading bitflags v0.5.0 | |
Downloading log v0.3.6 | |
Downloading diesel_codegen_syntex v0.7.2 | |
Compiling winapi-build v0.1.1 | |
Compiling unicode-xid v0.0.3 | |
Compiling rustc-serialize v0.3.19 | |
Compiling bitflags v0.5.0 | |
Compiling winapi v0.2.8 | |
Compiling log v0.3.6 | |
Compiling kernel32-sys v0.2.2 | |
Compiling term v0.4.4 | |
Compiling syntex_pos v0.42.0 | |
Compiling syntex_errors v0.42.0 | |
Compiling syntex_syntax v0.42.0 | |
Compiling syntex v0.42.2 | |
Compiling diesel_codegen_syntex v0.7.2 (https://github.com/diesel-rs/diesel.git#8b418701) | |
Compiling notehub v0.1.0 (file:///source) | |
error: expected ident, found , | |
--> <diesel macros>:21:25 | |
| | |
21 | Identifiable ! { $ args , fields = [ $ ( $ fields ) * ] , } } ; ( | |
| ^ | |
error: Could not compile `notehub`. | |
To learn more, run the command again with --verbose. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom_derive! { | |
#[derive(Identifiable)] | |
//#[derive(Queryable, Identifiable, Debug, HasMany(notebook_shares, foreign_key = notebook_id))] | |
#[table_name(notebooks)] | |
pub struct Notebook { | |
pub id: i32, | |
pub name: String, | |
pub description: Option<String>, | |
pub public: bool, | |
pub owner: i32, | |
pub tags: Vector<String>, | |
pub created_at: PgTimestamp | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment