From 761e2286735d2d838d813e05b58b7924f496dfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gr=C3=A4ff?= Date: Fri, 8 Jan 2021 00:37:52 +0100 Subject: [PATCH] Update to reqwest 0.11 / tokio 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Changelog Signed-off-by: David Gräff --- CHANGELOG.md | 24 ++++++++++++++++++++++++ Cargo.toml | 14 +++++++------- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6838ec..bba17d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Credentials::download_google_jwks(): Update/replace public keys. Useful for long running services. +- Added/Improved tests with doctest_credentials() + deserialize_credentials() +- JWKSet::new() + +### Changed + +- Support for reqwest 0.11 / Tokio 1.0 +- Prefer to use `AsRef` when passing params +- Add ability to read raw document contents (without deserializing the JSON) +- [Breaking] Change Credentials::new: No JWKSet parameter, use with_jwkset or download_jwkset +- [Breaking] Change Credentials::from_file: Do not download jwks anymore. Use with_jwkset or download_jwkset. +- [Breaking] Rename JWKSetDTO to JWKSet +- [Breaking] jwt::download_google_jwks returns a string and not a DTO anymore for better error reporting +- [Breaking] jwt::download_google_jwks_async is behind the unstable feature now, as originally intended + +## [0.6.1] - 2020-11-12 + +### Changed + +- Change type signature for `MapValue` to allow for empty fields +- Update dependency biscuit to 0.5 + ## [0.6] - 2020-01-22 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 5d01f4d..78361dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,13 +12,13 @@ maintenance = { status = "passively-maintained" } repository = "https://github.com/davidgraeff/firestore-db-and-auth-rs" [dependencies] -reqwest = { version = "0.10.9", default-features = false, features = ["json", "blocking"] } -serde = { version = "1.0.117", features = ["derive"] } -serde_json = "1.0.59" -chrono = { version = "0.4.19", features = ["serde"] } -biscuit = "0.5.0" -ring = "0.16.18" -base64 = "0.13.0" +reqwest = { version = "0.11", default-features = false, features = ["json", "blocking"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +chrono = { version = "0.4", features = ["serde"] } +biscuit = "0.5" +ring = "0.16" +base64 = "0.13" [dependencies.rocket] version = "0.4.6"