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" name = "apitest"
version = "0.1.0" version = "0.1.0"
authors = ["Dietmar Maurer <dietmar@proxmox.com>"] authors = ["Dietmar Maurer <dietmar@proxmox.com>"]
edition = "2018"
[lib] [lib]
name = "apitest" name = "apitest"

View File

@ -1,6 +1,6 @@
use failure::*; use failure::*;
use json_schema::*; use crate::json_schema::*;
use serde_json::{Value}; use serde_json::{Value};
pub struct ApiMethod<'a> { 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>>; 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 static_map;
pub mod json_schema; pub mod json_schema;
pub mod api_info; pub mod api_info;

View File

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