Speedup generation of RSA keys in debug mode (#5494)

This commit is contained in:
Nutomic 2025-03-10 15:41:43 +00:00 committed by GitHub
parent c315145146
commit 3dfb0cab36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

6
Cargo.lock generated
View file

@ -10,9 +10,9 @@ checksum = "8f27d075294830fcab6f66e320dab524bc6d048f4a151698e153205559113772"
[[package]]
name = "activitypub_federation"
version = "0.6.2"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce5c105760d36108026acde9cb779d8ef4714d5e551f248a9e8e0369b6671b78"
checksum = "cd8c76cad52a3d0f637f1f4ba06d96ac63c92512082f6a1ca86145b66a0a5371"
dependencies = [
"activitystreams-kinds",
"actix-web",
@ -2946,7 +2946,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
dependencies = [
"cfg-if",
"windows-targets 0.48.5",
"windows-targets 0.52.6",
]
[[package]]

View file

@ -88,7 +88,7 @@ lemmy_api_common = { version = "=1.0.0-alpha.2", path = "./crates/api_common" }
lemmy_routes = { version = "=1.0.0-alpha.2", path = "./crates/routes" }
lemmy_db_views = { version = "=1.0.0-alpha.2", path = "./crates/db_views" }
lemmy_federate = { version = "=1.0.0-alpha.2", path = "./crates/federate" }
activitypub_federation = { version = "0.6.2", default-features = false, features = [
activitypub_federation = { version = "0.6.3", default-features = false, features = [
"actix-web",
] }
diesel = "2.2.7"
@ -178,3 +178,8 @@ rustls = { workspace = true }
tokio.workspace = true
clap = { workspace = true }
mimalloc = "0.1.43"
# Speedup RSA key generation
# https://github.com/RustCrypto/RSA/blob/master/README.md#example
[profile.dev.package.num-bigint-dig]
opt-level = 3