-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delegate jwt signing and remove many dependencies (#31)
* Remove unused ring import. * Refactor jwt code. This delegates jwt handling to the jwt_simple crate, and replaces openssl uses with lighter PEM and DER decoders. This does not break the public API. Also removes now unused dependencies. Improves compile times by ~11s. * Handle Results and improve docs. * Install openssl on windows Github action. This is needed to compile, as actions does not contain openssl on windows-latest. * Change semver to 0.9 and better doc openssl. 0.9 is needed as adding an error variant is a breaking change.
- Loading branch information
1 parent
ddc8301
commit 4bef960
Showing
12 changed files
with
144 additions
and
151 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,8 +1,8 @@ | ||
[package] | ||
name = "web-push" | ||
description = "Web push notification client with support for http-ece encryption and VAPID authentication." | ||
version = "0.8.0" | ||
authors = ["Julius de Bruijn <[email protected]>"] | ||
version = "0.9.0" | ||
authors = ["Julius de Bruijn <[email protected]>", "Andrew Ealovega <[email protected]>"] | ||
license = "Apache-2.0" | ||
homepage = "https://github.com/pimeys/rust-web-push" | ||
repository = "https://github.com/pimeys/rust-web-push" | ||
|
@@ -12,33 +12,30 @@ keywords = ["web-push", "http-ece", "vapid"] | |
categories = ["web-programming", "asynchronous"] | ||
edition = "2018" | ||
|
||
[badges] | ||
travis-ci = { repository = "pimeys/rust-web-push" } | ||
|
||
[features] | ||
default = ["isahc"] | ||
default = ["isahc", "futures-lite/futures-io"] #futures are only used for read_to_end() in isach client. | ||
hyper-client = ["hyper", "hyper-tls"] #use features = ["hyper-client"], default-features = false for about 300kb size decrease. | ||
|
||
[dependencies] | ||
futures = "^0.3" | ||
hyper = { version = "^0.14", features = ["client", "http1"], optional = true } | ||
hyper-tls = { version = "^0.5", optional = true } | ||
isahc = { version = "^1.4.0", optional = true } | ||
futures-lite = { version = "^1.12", optional = true } | ||
http = "^0.2" | ||
serde = "^1.0" | ||
serde_json = "^1.0" | ||
serde_derive = "^1.0" | ||
ring = "^0.16" | ||
ece = "^2.1.0" | ||
native-tls = "^0.2" | ||
jwt-simple = "^0.10.4" | ||
ece = "^2.1" | ||
pem = "^0.8.3" | ||
pkcs8 = { version = "^0.7.5", features = ["alloc"] } | ||
sec1_decode = "^0.1.0" | ||
base64 = "^0.13" | ||
openssl = "^0.10" | ||
time = { version = "^0.2", features = ["std"] } | ||
lazy_static = "^1.4" | ||
chrono = "^0.4" | ||
log = "^0.4" | ||
|
||
[dev-dependencies] | ||
argparse = "^0.2" | ||
regex = "^1.5" | ||
tokio = { version = "^1.1", features = ["macros", "rt-multi-thread"] } | ||
lazy_static = "^1.4" |
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
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.