Skip to content

Draft: Add rustls backend for tokio and async-std.

janimo requested to merge janimo/arti:rustls into main

This addresses issue #86 (closed).

It helps a bit with wasm builds too in case a TLS stack is needed there.

The feature configuration in Cargo.toml and in the code could probably be done more cleanly.

I have tested all four runtime+tls stack combinations (tokio-with-rustls or async-std-with-rustls need to be passed along with tokio and async-std respectively for choosing rustls)

Maybe there's a cleaner way to include the common module without the path macro.

It does not use tls-api, since both tokio and async-std have their own crates for interacting with TLS stacks (native_tls was already being used via those).

Merge request reports