-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 'RustCrypto'-based crypto in lieu of 'ring'.
Introduces the 'signed', 'private', and 'key-expansion' features. Removes 'Key::from_master()' in favor of 'Key::derive_from()' and 'Key::from()', the former of which is only available when 'key-expansion' is enabled. Updates version to 0.14.0.
- Loading branch information
1 parent
3b8c648
commit 08ebc40
Showing
14 changed files
with
372 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[package] | ||
name = "cookie" | ||
authors = ["Alex Crichton <[email protected]>", "Sergio Benitez <[email protected]>"] | ||
version = "0.13.3" | ||
version = "0.14.0" | ||
authors = ["Sergio Benitez <[email protected]>", "Alex Crichton <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT/Apache-2.0" | ||
repository = "https://github.com/SergioBenitez/cookie-rs" | ||
documentation = "https://docs.rs/cookie" | ||
|
@@ -11,14 +12,23 @@ and private (encrypted + signed) jars. | |
""" | ||
|
||
[features] | ||
secure = ["ring", "base64"] | ||
percent-encode = ["percent-encoding"] | ||
secure = ["private", "signed", "key-expansion"] | ||
private = ["aes-gcm", "base64", "rand"] | ||
signed = ["hmac", "sha2", "base64", "rand"] | ||
key-expansion = ["sha2", "hkdf"] | ||
|
||
[dependencies] | ||
time = { version = "0.2.6", default-features = false, features = ["std"] } | ||
percent-encoding = { version = "2.0", optional = true } | ||
ring = { version = "0.16.0", optional = true } | ||
|
||
# dependencies for secure (private/signed) functionality | ||
aes-gcm = { version = "0.5.0", optional = true } | ||
hmac = { version = "0.7.1", optional = true } | ||
sha2 = { version = "0.8.2", optional = true } | ||
base64 = { version = "0.11.0", optional = true } | ||
rand = { version = "0.7.3", optional = true } | ||
hkdf = { version = "0.8.0", optional = true } | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
cargo build --verbose | ||
|
||
cargo test --verbose --features percent-encode | ||
cargo test --verbose --features private | ||
cargo test --verbose --features signed | ||
cargo test --verbose --features secure | ||
cargo test --verbose --features 'private,key-expansion' | ||
cargo test --verbose --features 'signed,key-expansion' | ||
cargo test --verbose --features 'secure,percent-encode' | ||
|
||
cargo test --verbose | ||
cargo test --verbose --no-default-features | ||
cargo test --verbose --all-features | ||
|
||
rustdoc --test README.md -L target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.