pimeys / rust-web-push

A Web Push library for Rust
Apache License 2.0
113 stars 21 forks source link

Is it possible to use this library without OpenSSL? #49

Closed Hugo-Persson closed 1 year ago

Hugo-Persson commented 1 year ago

Would it be possible to not use OpenSSL as an dependency. Maybe letting you pick similar to how reqwest does it.

https://docs.rs/reqwest/latest/reqwest/#optional-features

andyblarblar commented 1 year ago

We don't directly depend on openssl at all (anymore, the library used to but we moved to Rust implementations). Rather, openssl is dragged in via the ece crate, which is managed by Mozilla. Because this crate is fundamental to VAPID, and thus all of modern web push, we cannot simply feature flag it. The only way to remove this dependency would be to add another crypto backend to the ece crate, which it says is possible but does not provide.