diff options
-rw-r--r-- | Cargo.toml | 12 | ||||
-rw-r--r-- | src/lib.rs | 4 |
2 files changed, 8 insertions, 8 deletions
@@ -1,6 +1,6 @@ [package] name = "mammut" -version = "0.6.1" +version = "0.7.0" description = "A wrapper around the Mastodon API." authors = ["Aaron Power <theaaronepower@gmail.com>"] license = "MIT/Apache-2.0" @@ -10,13 +10,13 @@ keywords = ["api", "web", "social", "mastodon", "wrapper"] categories = ["web-programming", "http-client"] [dependencies] -reqwest = "0.5" -serde = "0.9" -serde_json = "0.9" -serde_derive = "0.9" +reqwest = "0.6" +serde = "1" +serde_json = "1" +serde_derive = "1" [dependencies.chrono] # Locked to 0.3.0 since chrono 0.3.1 uses serde ^1, which is incompatible # with serde 0.9 specified above. -version = "=0.3.0" +version = "0.3" features = ["serde"] @@ -32,7 +32,7 @@ //! # } //! ``` -#[cfg_attr(test, deny(warnings))] +#![cfg_attr(test, deny(warnings))] #[macro_use] extern crate serde_derive; #[macro_use] extern crate serde_json as json; @@ -66,7 +66,7 @@ pub type Result<T> = std::result::Result<T, Error>; macro_rules! methods { ($($method:ident,)+) => { $( - fn $method<T: serde::Deserialize>(&self, url: String) + fn $method<T: for<'de> serde::Deserialize<'de>>(&self, url: String) -> Result<T> { use std::io::Read; |