Use the crates.io release of http.
This commit is contained in:
parent
6ef1776aed
commit
9ff74ba776
@ -9,11 +9,10 @@ name = "ruma-api"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/ruma/ruma-api"
|
repository = "https://github.com/ruma/ruma-api"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.1.14"
|
futures = "0.1.15"
|
||||||
http = { git = "https://github.com/carllerche/http" }
|
http = "0.1.0"
|
||||||
serde_json = "1.0.2"
|
serde_json = "1.0.3"
|
||||||
serde_urlencoded = "0.5.1"
|
serde_urlencoded = "0.5.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -17,8 +17,6 @@ extern crate http;
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate ruma_identifiers;
|
extern crate ruma_identifiers;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate serde;
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
@ -106,7 +104,7 @@ mod tests {
|
|||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
use futures::future::{err, ok, FutureFrom, FutureResult};
|
use futures::future::{err, ok, FutureFrom, FutureResult};
|
||||||
use http::method::PUT;
|
use http::method::Method;
|
||||||
use http::{Request as HttpRequest, Response as HttpResponse};
|
use http::{Request as HttpRequest, Response as HttpResponse};
|
||||||
use ruma_identifiers::{RoomAliasId, RoomId};
|
use ruma_identifiers::{RoomAliasId, RoomId};
|
||||||
use serde_json;
|
use serde_json;
|
||||||
@ -122,7 +120,7 @@ mod tests {
|
|||||||
|
|
||||||
const METADATA: Metadata = Metadata {
|
const METADATA: Metadata = Metadata {
|
||||||
description: "Add an alias to a room.",
|
description: "Add an alias to a room.",
|
||||||
method: PUT,
|
method: Method::PUT,
|
||||||
name: "create_alias",
|
name: "create_alias",
|
||||||
path: "/_matrix/client/r0/directory/room/:room_alias",
|
path: "/_matrix/client/r0/directory/room/:room_alias",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user