From 1f57846664b97f0cb630bf5fee13dfbc66f7c77a Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 23 Oct 2022 20:26:23 +0200 Subject: Add precomputed constants for common cases. There are now 2 features that control the amount of precomputed constants. They can either be 0, 12, or 256. Most users will likely want to go with the 12, so this is the default feature. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 24363ab..46e3713 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,11 @@ license = "LGPL-3.0-or-later" keywords = ["password", "crypto", "password-generator", "security"] categories = ["cryptography"] +[features] +default = ["precomputed_common_max_powers"] +precomputed_max_powers = ["precomputed_common_max_powers"] +precomputed_common_max_powers = [] + [dependencies] unicode-segmentation = "1.10.0" -- cgit v1.2.3