- Updated
base64
dependency to 0.12. - Updated minimum
time
dependency to correct version: 0.2.11. - Added
readme
key toCargo.toml
, updatedlicense
field.
- The
Key::from_master()
method was deprecated in favor of the more aptly namedKey::derive_from()
. - The deprecated
CookieJar::clear()
method was removed.
- Added
Key::from()
to create aKey
structure from a full-length key. - Signed and private cookie jars can be individually enabled via the new
signed
andprivate
features, respectively. - Key derivation via key expansion can be individually enabled via the new
key-expansion
feature.
ring
is no longer a dependency:RustCrypto
-based cryptography is used in lieu ofring
. Prior to their inclusion here, thehmac
andhkdf
crates were audited.- Quotes, if present, are stripped from cookie values when parsing.
- The
time
dependency was unpinned from0.2.4
, allowing any0.2.x
version oftime
wherex >= 6
.
- The
time
dependency was pinned to0.2.4
due to upstream breaking changes in0.2.5
.
- Added the
CookieJar::reset_delta()
method, which reverts all delta changes to aCookieJar
.
time
was updated from 0.1 to 0.2.ring
was updated from 0.14 to 0.16.SameSite::None
now writesSameSite=None
to correspond with updatedSameSite
draft.SameSite
can be unset by passingNone
toCookie::set_same_site()
.CookieBuilder
gained a lifetime:CookieBuilder<'c>
.
- Added a CHANGELOG.
expires
,max_age
,path
, anddomain
can be unset by passingNone
to the respectiveCookie::set_{field}()
method.- The "Expires" field is limited to a date-time of Dec 31, 9999, 23:59:59.
- The
%
character is now properly encoded and decoded. - Constructor methods on
CookieBuilder
allow non-static lifetimes.