improve API with PasswordConfig struct, added validate_password and made character generation more fine-grained

This commit is contained in:
2026-04-17 00:41:29 -04:00
parent 32371f20d4
commit f8c97f71f8
3 changed files with 124 additions and 22 deletions
Generated
+7
View File
@@ -8,6 +8,12 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
[[package]]
name = "bitflags"
version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
[[package]]
name = "cfg-if"
version = "1.0.4"
@@ -82,6 +88,7 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
name = "password-generator"
version = "0.1.0"
dependencies = [
"bitflags",
"rand",
"webster",
]