use edition 2018 (beta)
This is expected to be stable by the end of the year.
This commit is contained in:
parent
1ac3e212c2
commit
763220cefa
@ -2,7 +2,7 @@
|
||||
name = "apitest"
|
||||
version = "0.1.0"
|
||||
authors = ["Dietmar Maurer <dietmar@proxmox.com>"]
|
||||
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
name = "apitest"
|
||||
|
@ -1,6 +1,6 @@
|
||||
use failure::*;
|
||||
|
||||
use json_schema::*;
|
||||
use crate::json_schema::*;
|
||||
use serde_json::{Value};
|
||||
|
||||
pub struct ApiMethod<'a> {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use static_map::StaticMap;
|
||||
use crate::static_map::StaticMap;
|
||||
|
||||
pub type PropertyMap<'a> = StaticMap<'a, &'a str, Jss<'a>>;
|
||||
|
||||
|
@ -1,8 +1,3 @@
|
||||
extern crate failure;
|
||||
|
||||
extern crate serde_json;
|
||||
|
||||
|
||||
pub mod static_map;
|
||||
pub mod json_schema;
|
||||
pub mod api_info;
|
||||
|
18
src/main.rs
18
src/main.rs
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user