~witcher/public-inbox

rss-email: Replace OpenSSL with RustTLS v1 APPLIED

Hey!

This patch replaces the native OpenSSL dependency with the pure Rust implementation.
When possible I try to do that in my projects to reduce usage of system dependencies
and because I think RustTLS is mature enough.

After applying this patch, you can check with `cargo tree` that openssl is now nowhere.

What do you think? This patch was not discussed so totally fine if you decide
to discard it :)

I've only compiled so no guarantees I didn't break anything :) I think now you
can remove openssl also from the .build.yml

p.s. I've checked the build file for this project and found some interesting bits
that I'll steal for my projects, thanks!

p.p.s. I'm also on IRC

jman (1):
  Use RustTLS instead of native OpenSSL

 Cargo.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.35.1
#824515 .build.yml failed
rss-email/patches/.build.yml: FAILED in 52s

[Replace OpenSSL with RustTLS][0] from [jman][1]

[0]: https://lists.sr.ht/~witcher/public-inbox/patches/34708
[1]: mailto:srht@city17.xyz

✗ #824515 FAILED rss-email/patches/.build.yml https://builds.sr.ht/~witcher/job/824515
> You're building the artifacts twice
I've eventually noticed that, seems I forgot about fixing it. Oops!
Thanks for the reminder.
> You'll shave off 2'36" for basically free.
~2.5m is quite a bit of time. Glad I'm shaving that off of the CI
with simple fixes.

-- 
witcher
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~witcher/public-inbox/patches/34708/mbox | git am -3
Learn more about email & git

[PATCH rss-email 1/1] Use RustTLS instead of native OpenSSL Export this patch

Signed-off-by: jman <srht@city17.xyz>
---
 Cargo.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index fe45c45..bb2c31e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,11 +11,11 @@ strip = "symbols"
diesel = { version = "1.4", features = ["sqlite"] }
rss = "2.0"
anyhow = "1.0"
reqwest = { version = "0.11", features = ["blocking"] }
reqwest = {version = "0.11", default-features = false, features = ["blocking", "rustls-tls"]}
clap = { version = "3", features = ["derive"] }
chrono = "0.4"
toml = "0.5.8"
lettre = "0.10.1"
lettre = { version = "0.10.1", default-features = false, features = ["rustls", "rustls-tls", "builder", "smtp-transport"] }
serde = { version = "1.0", features = ["derive"] }
diesel_migrations = "1.4.0"
directories = "4.0.1"
-- 
2.35.1
rss-email/patches/.build.yml: FAILED in 52s

[Replace OpenSSL with RustTLS][0] from [jman][1]

[0]: https://lists.sr.ht/~witcher/public-inbox/patches/34708
[1]: mailto:srht@city17.xyz

✗ #824515 FAILED rss-email/patches/.build.yml https://builds.sr.ht/~witcher/job/824515