forked from kent/consciousness
enable tls
This commit is contained in:
parent
6e3bacb182
commit
25e4775974
1 changed files with 8 additions and 0 deletions
|
|
@ -14,5 +14,13 @@ fn main() {
|
|||
unsafe { std::env::set_var("RUST_BACKTRACE", "1"); }
|
||||
}
|
||||
std::panic::set_backtrace_style(std::panic::BacktraceStyle::Short);
|
||||
|
||||
// rustls 0.23 requires an explicit process-wide CryptoProvider
|
||||
// when both `ring` and `aws-lc-rs` are in the dep graph (otherwise
|
||||
// it panics on first ClientConfig::builder()). Pick `ring`.
|
||||
rustls::crypto::ring::default_provider()
|
||||
.install_default()
|
||||
.expect("install rustls crypto provider");
|
||||
|
||||
consciousness::user::main()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue