aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
-rw-r--r--src/models.rs2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 097dc66..c950e7a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,6 @@
+#![feature(plugin, custom_derive)]
+#![plugin(rocket_codegen)]
+
#[macro_use]
extern crate diesel_codegen;
pub mod models;
diff --git a/src/models.rs b/src/models.rs
index a0152c0..d8aa0aa 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -1,4 +1,4 @@
-#[derive(Default, Serialize, Queryable)]
+#[derive(Debug, Default, FromForm, Serialize, Queryable)]
pub struct Post {
pub id: i32,
pub title: String,