Skip to content

Commit

Permalink
manually set cryptoprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 20, 2024
1 parent e85f1e1 commit ddce68d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ serde = { version = "1.0.123", features = ["derive"] }
tokio = { version = "1.34.0", features = ["full"] }
tracing = "0.1.37"
twilight-gateway = { git = "https://github.com/twilight-rs/twilight", branch = "erk/user-apps" }
twilight-http = { git = "https://github.com/twilight-rs/twilight", branch = "erk/user-apps" }
twilight-http = { git = "https://github.com/twilight-rs/twilight", branch = "erk/user-apps", features = [
"rustls-ring",
] }
twilight-model = { git = "https://github.com/twilight-rs/twilight", branch = "erk/user-apps" }
twilight-util = { git = "https://github.com/twilight-rs/twilight", branch = "erk/user-apps", features = [
"builder",
Expand Down
2 changes: 2 additions & 0 deletions assyst-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ assyst-string-fmt = { path = "../assyst-string-fmt" }
assyst-tag = { path = "../assyst-tag" }
assyst-webserver = { path = "../assyst-webserver" }
async-trait = "0.1.77"
aws-lc-rs = "1.10.0"
bincode = "1.3.3"
bytes = "1.5.0"
dash_rt = { git = "https://github.com/y21/dash", rev = "f3fe12b" }
Expand All @@ -31,6 +32,7 @@ paste = "1.0.14"
prometheus = "0.13.3"
rand = "0.8.5"
reqwest = { version = "0.11.24", features = ["json", "stream", "multipart"] }
rustls = "0.23.15"
serde = { workspace = true }
serde_json = "1.0.113"
time = { version = "0.3.31", features = ["macros"] }
Expand Down
2 changes: 2 additions & 0 deletions assyst-core/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ async fn main() {
panic!("Assyst is supported on Linux only.")
}

rustls::crypto::aws_lc_rs::default_provider().install_default().unwrap();

tracing_init();

let assyst: ThreadSafeAssyst = Arc::new(Assyst::new().await.unwrap());
Expand Down
2 changes: 2 additions & 0 deletions assyst-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ time = { version = "0.3.31", features = ["macros"] }
twilight-model = { workspace = true }
twilight-http = { workspace = true }
jemallocator = "0.5.4"
aws-lc-rs = "1.10.0"
rustls = "0.23.15"

[lints]
workspace = true
2 changes: 2 additions & 0 deletions assyst-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ async fn main() -> anyhow::Result<()> {
panic!("Assyst is supported on Linux only.")
}

rustls::crypto::aws_lc_rs::default_provider().install_default().unwrap();

tracing_init();

let http_client = HttpClient::new(CONFIG.authentication.discord_token.clone());
Expand Down

0 comments on commit ddce68d

Please sign in to comment.