From 103df55a43343e1fc172b86b3d261a863d4e8276 Mon Sep 17 00:00:00 2001 From: strawberry <strawberry@puppygock.gay> Date: Sat, 2 Mar 2024 16:45:13 -0500 Subject: [PATCH] dont use default features for argon2, dev build speedup this seems to reduce a few crates when building Signed-off-by: strawberry <strawberry@puppygock.gay> --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d5a20770c..a91d37fc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ serde = { version = "1.0.197", features = ["rc"] } # Used for secure identifiers rand = "0.8.5" # Used to hash passwords -argon2 = "0.5.3" +argon2 = { version = "0.5.3", features = ["alloc", "rand"], default-features = false } reqwest = { version = "0.11.24", default-features = false, features = ["rustls-tls-native-roots", "socks"] } # Used for conduit::Error type thiserror = "1.0.57" @@ -171,6 +171,10 @@ systemd-units = { unit-name = "matrix-conduit" } debug = 0 lto = 'off' incremental = true +# seems to speed up continuous debug compilations +opt-level = 1 +[profile.dev.package."*"] +opt-level = 3 # default release profile [profile.release] -- GitLab