Use the crates.io release of http.

This commit is contained in:
Jimmy Cuadra 2017-09-08 17:29:19 -07:00
parent 6ef1776aed
commit 9ff74ba776
2 changed files with 5 additions and 8 deletions

View File

@ -9,11 +9,10 @@ name = "ruma-api"
readme = "README.md"
repository = "https://github.com/ruma/ruma-api"
version = "0.4.0"
[dependencies]
futures = "0.1.14"
http = { git = "https://github.com/carllerche/http" }
serde_json = "1.0.2"
futures = "0.1.15"
http = "0.1.0"
serde_json = "1.0.3"
serde_urlencoded = "0.5.1"
[dev-dependencies]

View File

@ -17,8 +17,6 @@ extern crate http;
#[cfg(test)]
extern crate ruma_identifiers;
#[cfg(test)]
extern crate serde;
#[cfg(test)]
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
@ -106,7 +104,7 @@ mod tests {
use std::convert::TryFrom;
use futures::future::{err, ok, FutureFrom, FutureResult};
use http::method::PUT;
use http::method::Method;
use http::{Request as HttpRequest, Response as HttpResponse};
use ruma_identifiers::{RoomAliasId, RoomId};
use serde_json;
@ -122,7 +120,7 @@ mod tests {
const METADATA: Metadata = Metadata {
description: "Add an alias to a room.",
method: PUT,
method: Method::PUT,
name: "create_alias",
path: "/_matrix/client/r0/directory/room/:room_alias",
rate_limited: false,