use edition 2018 (beta)

This is expected to be stable by the end of the year.
This commit is contained in:
Dietmar Maurer 2018-11-01 14:42:27 +01:00
parent 1ac3e212c2
commit 763220cefa
5 changed files with 7 additions and 22 deletions

View File

@ -2,7 +2,7 @@
name = "apitest"
version = "0.1.0"
authors = ["Dietmar Maurer <dietmar@proxmox.com>"]
edition = "2018"
[lib]
name = "apitest"

View File

@ -1,6 +1,6 @@
use failure::*;
use json_schema::*;
use crate::json_schema::*;
use serde_json::{Value};
pub struct ApiMethod<'a> {

View File

@ -1,4 +1,4 @@
use static_map::StaticMap;
use crate::static_map::StaticMap;
pub type PropertyMap<'a> = StaticMap<'a, &'a str, Jss<'a>>;

View File

@ -1,8 +1,3 @@
extern crate failure;
extern crate serde_json;
pub mod static_map;
pub mod json_schema;
pub mod api_info;

View File

@ -1,29 +1,19 @@
extern crate failure;
use failure::*;
#[macro_use]
extern crate apitest;
use apitest::static_map::StaticMap;
use failure::*;
use std::collections::HashMap;
#[macro_use]
extern crate apitest;
use apitest::json_schema::*;
use apitest::api_info::*;
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
use serde_derive::{Serialize, Deserialize};
use serde_json::{json, Value};
extern crate url;
use url::form_urlencoded;
extern crate hyper;
use hyper::{Method, Body, Request, Response, Server, StatusCode};
use hyper::rt::Future;
use hyper::service::service_fn_ok;