Commit aea3275f authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Make medal compile on stable rust

parent b0a2daef
......@@ -14,7 +14,7 @@ iron = "0.5.1"
rand = "*"
mount ="0.3"
router = "0.5"
params = "*"
params = "0.7"
serde = "1.0"
urlencoded = "0.5"
persistent = "0.3"
......
......@@ -3,7 +3,9 @@ extern crate linked_hash_map;
use self::linked_hash_map::LinkedHashMap;
use db_objects::{Contest, Taskgroup, Task};
use serde_yaml;
#[derive(Debug, Deserialize)]
struct ContestYaml {
name: Option<String>,
......
......@@ -7,8 +7,11 @@ use db_objects::*;
use rand::{thread_rng, Rng};
use time;
use ::functions; // todo: remove (usertype in db)
fn hash_password(password: &str, hash: &str) -> String {
password.to_string()
}
......
......@@ -2,6 +2,8 @@ use webfw_iron::{to_json, json_val};
use rusqlite::Connection;
use time;
use rand::{thread_rng, Rng};
use db_conn::{MedalConnection, MedalObject};
......
#![feature(extern_prelude)]
//#![feature(extern_prelude)]
#[macro_use]
extern crate iron;
......
......@@ -27,6 +27,11 @@ pub use handlebars_iron::handlebars::to_json;
use iron::prelude::*;
use iron_sessionstorage::traits::*;
use iron_sessionstorage;
use iron;
use reqwest;
use rusqlite;
pub use serde_json::value as json_val;
use iron::typemap::Key;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment