diff --git a/Cargo.toml b/Cargo.toml index 09404d7..0df366a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] 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"] diff --git a/src/lib.rs b/src/lib.rs index 812696b..ddffd05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 = std::result::Result; macro_rules! methods { ($($method:ident,)+) => { $( - fn $method(&self, url: String) + fn $method serde::Deserialize<'de>>(&self, url: String) -> Result { use std::io::Read;