From 8cc7a2c145ac0c3bc79db500976fc38dc0897ed3 Mon Sep 17 00:00:00 2001 From: Patrick Fernie Date: Sat, 17 Jun 2023 11:49:17 -0400 Subject: [PATCH] refact: update to `cookie_store 0.20` `cookie_store` now re-exports the `cookie` dependency, so remove explicit dependency from Cargo.toml and update `use` statements --- Cargo.toml | 3 +-- src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0239c98..f00b381 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,9 +18,8 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] bytes = "1.0.1" -cookie = "0.16.1" -cookie_store = "0.19.0" reqwest = { version = "0.11.3", default-features = false, features = ["cookies"] } +cookie_store = "^0.20" url = "2.2.2" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 524070c..5aa7b36 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,8 +80,7 @@ use std::{ }; use bytes::Bytes; -use cookie::{Cookie as RawCookie, ParseError as RawCookieParseError}; -pub use cookie_store::CookieStore; +pub use cookie_store::{CookieStore, RawCookie, RawCookieParseError}; use reqwest::header::HeaderValue; use url;