Updated dependencies, and version bump

master
Aaron Power 8 years ago
parent 9515b89690
commit d1063570f6
  1. 12
      Cargo.toml
  2. 4
      src/lib.rs

@ -1,6 +1,6 @@
[package] [package]
name = "mammut" name = "mammut"
version = "0.6.1" version = "0.7.0"
description = "A wrapper around the Mastodon API." description = "A wrapper around the Mastodon API."
authors = ["Aaron Power <theaaronepower@gmail.com>"] authors = ["Aaron Power <theaaronepower@gmail.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
@ -10,13 +10,13 @@ keywords = ["api", "web", "social", "mastodon", "wrapper"]
categories = ["web-programming", "http-client"] categories = ["web-programming", "http-client"]
[dependencies] [dependencies]
reqwest = "0.5" reqwest = "0.6"
serde = "0.9" serde = "1"
serde_json = "0.9" serde_json = "1"
serde_derive = "0.9" serde_derive = "1"
[dependencies.chrono] [dependencies.chrono]
# Locked to 0.3.0 since chrono 0.3.1 uses serde ^1, which is incompatible # Locked to 0.3.0 since chrono 0.3.1 uses serde ^1, which is incompatible
# with serde 0.9 specified above. # with serde 0.9 specified above.
version = "=0.3.0" version = "0.3"
features = ["serde"] 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_derive;
#[macro_use] extern crate serde_json as json; #[macro_use] extern crate serde_json as json;
@ -66,7 +66,7 @@ pub type Result<T> = std::result::Result<T, Error>;
macro_rules! methods { macro_rules! methods {
($($method:ident,)+) => { ($($method:ident,)+) => {
$( $(
fn $method<T: serde::Deserialize>(&self, url: String) fn $method<T: for<'de> serde::Deserialize<'de>>(&self, url: String)
-> Result<T> -> Result<T>
{ {
use std::io::Read; use std::io::Read;

Loading…
Cancel
Save