Use native tls as default tls backend, add features to use rustls or openssl instead

This commit is contained in:
bytedream 2023-09-21 13:46:23 +02:00
parent 185b65fc9b
commit 8eda8df3f7
6 changed files with 103 additions and 56 deletions

View file

@ -1,3 +1,11 @@
#[cfg(not(any(
feature = "rustls-tls",
feature = "native-tls",
feature = "openssl-tls",
feature = "openssl-tls-static"
)))]
compile_error!("At least one tls feature must be activated");
#[tokio::main]
async fn main() {
crunchy_cli_core::cli_entrypoint().await