forge
Explore
Log in

Don't you dare go Hollow

Bump all dependencies to latest

Browse files at this commit

ea35e583ef0693c2ecdfba85b16716174c049aecAhmet Kaan GümüşParent: 54ec62d
  • chore
    • bump all dependencies to latest
Show full message
⬆️ chore: bump all dependencies to latest
Cargo.lockmodified+153 -75
@@ -134,9 +134,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
134134 checksum = "3c3610892ee6e0cbce8ae2700349fcf8f98adb0dbfbee85aec3c9179d29cc072"
135135 dependencies = [
136136 "base64ct",
137- "blake2",
137+ "blake2 0.10.6",
138138 "cpufeatures 0.2.17",
139- "password-hash",
139+ "password-hash 0.5.0",
140+]
141+
142+[[package]]
143+name = "argon2"
144+version = "0.6.0"
145+source = "registry+https://github.com/rust-lang/crates.io-index"
146+checksum = "134c52ddac6d63c576bef8168db10c83c49c26444ecbc68060fef078925a901c"
147+dependencies = [
148+ "base64ct",
149+ "blake2 0.11.0",
150+ "cpufeatures 0.3.1",
151+ "password-hash 0.6.1",
140152 ]
141153
142154 [[package]]
@@ -250,7 +262,7 @@ checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"
250262 dependencies = [
251263 "proc-macro2",
252264 "quote",
253- "syn 3.0.3",
265+ "syn 3.0.5",
254266 ]
255267
256268 [[package]]
@@ -390,9 +402,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
390402
391403 [[package]]
392404 name = "base64"
393-version = "0.23.0"
405+version = "0.23.1"
394406 source = "registry+https://github.com/rust-lang/crates.io-index"
395-checksum = "b25655df2c3cdd83c5e5b293b88acd880332b2ddadd7c30ac43144fdc0033da9"
407+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
396408
397409 [[package]]
398410 name = "base64ct"
@@ -484,6 +496,15 @@ dependencies = [
484496 "digest 0.10.7",
485497 ]
486498
499+[[package]]
500+name = "blake2"
501+version = "0.11.0"
502+source = "registry+https://github.com/rust-lang/crates.io-index"
503+checksum = "5b5d4d889834ee8ecfc0f8426ad30faf7cdcb10f741a8e6d7224d95325479f6f"
504+dependencies = [
505+ "digest 0.11.3",
506+]
507+
487508 [[package]]
488509 name = "blake3"
489510 version = "1.8.5"
@@ -495,7 +516,7 @@ dependencies = [
495516 "cc",
496517 "cfg-if",
497518 "constant_time_eq",
498- "cpufeatures 0.3.0",
519+ "cpufeatures 0.3.1",
499520 ]
500521
501522 [[package]]
@@ -636,9 +657,9 @@ dependencies = [
636657
637658 [[package]]
638659 name = "cc"
639-version = "1.3.0"
660+version = "1.4.5"
640661 source = "registry+https://github.com/rust-lang/crates.io-index"
641-checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8"
662+checksum = "005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80"
642663 dependencies = [
643664 "find-msvc-tools",
644665 "jobserver",
@@ -660,12 +681,12 @@ checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
660681
661682 [[package]]
662683 name = "chacha20"
663-version = "0.10.1"
684+version = "0.10.2"
664685 source = "registry+https://github.com/rust-lang/crates.io-index"
665-checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
686+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
666687 dependencies = [
667688 "cfg-if",
668- "cpufeatures 0.3.0",
689+ "cpufeatures 0.3.1",
669690 "rand_core 0.10.1",
670691 ]
671692
@@ -729,6 +750,12 @@ dependencies = [
729750 "cc",
730751 ]
731752
753+[[package]]
754+name = "cmov"
755+version = "0.5.4"
756+source = "registry+https://github.com/rust-lang/crates.io-index"
757+checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
758+
732759 [[package]]
733760 name = "concurrent-queue"
734761 version = "2.5.0"
@@ -802,9 +829,9 @@ dependencies = [
802829
803830 [[package]]
804831 name = "cpufeatures"
805-version = "0.3.0"
832+version = "0.3.1"
806833 source = "registry+https://github.com/rust-lang/crates.io-index"
807-checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
834+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
808835 dependencies = [
809836 "libc",
810837 ]
@@ -916,6 +943,15 @@ dependencies = [
916943 "smallvec",
917944 ]
918945
946+[[package]]
947+name = "ctutils"
948+version = "0.4.2"
949+source = "registry+https://github.com/rust-lang/crates.io-index"
950+checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
951+dependencies = [
952+ "cmov",
953+]
954+
919955 [[package]]
920956 name = "curve25519-dalek"
921957 version = "4.1.3"
@@ -959,9 +995,9 @@ dependencies = [
959995
960996 [[package]]
961997 name = "data-encoding"
962-version = "2.11.0"
998+version = "2.11.1"
963999 source = "registry+https://github.com/rust-lang/crates.io-index"
964-checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8"
1000+checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
9651001
9661002 [[package]]
9671003 name = "der"
@@ -1032,6 +1068,7 @@ dependencies = [
10321068 "block-buffer 0.12.1",
10331069 "const-oid 0.10.2",
10341070 "crypto-common 0.2.2",
1071+ "ctutils",
10351072 ]
10361073
10371074 [[package]]
@@ -1094,13 +1131,13 @@ dependencies = [
10941131
10951132 [[package]]
10961133 name = "displaydoc"
1097-version = "0.2.6"
1134+version = "0.2.7"
10981135 source = "registry+https://github.com/rust-lang/crates.io-index"
1099-checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
1136+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
11001137 dependencies = [
11011138 "proc-macro2",
11021139 "quote",
1103- "syn 2.0.119",
1140+ "syn 3.0.5",
11041141 ]
11051142
11061143 [[package]]
@@ -1318,9 +1355,9 @@ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
13181355
13191356 [[package]]
13201357 name = "find-msvc-tools"
1321-version = "0.1.9"
1358+version = "0.1.12"
13221359 source = "registry+https://github.com/rust-lang/crates.io-index"
1323-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
1360+checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
13241361
13251362 [[package]]
13261363 name = "flatbuffers"
@@ -1405,9 +1442,9 @@ dependencies = [
14051442
14061443 [[package]]
14071444 name = "futures-channel"
1408-version = "0.3.33"
1445+version = "0.3.34"
14091446 source = "registry+https://github.com/rust-lang/crates.io-index"
1410-checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae"
1447+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
14111448 dependencies = [
14121449 "futures-core",
14131450 "futures-sink",
@@ -1415,9 +1452,9 @@ dependencies = [
14151452
14161453 [[package]]
14171454 name = "futures-core"
1418-version = "0.3.33"
1455+version = "0.3.34"
14191456 source = "registry+https://github.com/rust-lang/crates.io-index"
1420-checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"
1457+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
14211458
14221459 [[package]]
14231460 name = "futures-executor"
@@ -1432,38 +1469,38 @@ dependencies = [
14321469
14331470 [[package]]
14341471 name = "futures-io"
1435-version = "0.3.33"
1472+version = "0.3.34"
14361473 source = "registry+https://github.com/rust-lang/crates.io-index"
1437-checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"
1474+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
14381475
14391476 [[package]]
14401477 name = "futures-macro"
1441-version = "0.3.33"
1478+version = "0.3.34"
14421479 source = "registry+https://github.com/rust-lang/crates.io-index"
1443-checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b"
1480+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
14441481 dependencies = [
14451482 "proc-macro2",
14461483 "quote",
1447- "syn 2.0.119",
1484+ "syn 3.0.5",
14481485 ]
14491486
14501487 [[package]]
14511488 name = "futures-sink"
1452-version = "0.3.33"
1489+version = "0.3.34"
14531490 source = "registry+https://github.com/rust-lang/crates.io-index"
1454-checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307"
1491+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
14551492
14561493 [[package]]
14571494 name = "futures-task"
1458-version = "0.3.33"
1495+version = "0.3.34"
14591496 source = "registry+https://github.com/rust-lang/crates.io-index"
1460-checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"
1497+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
14611498
14621499 [[package]]
14631500 name = "futures-util"
1464-version = "0.3.33"
1501+version = "0.3.34"
14651502 source = "registry+https://github.com/rust-lang/crates.io-index"
1466-checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"
1503+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
14671504 dependencies = [
14681505 "futures-channel",
14691506 "futures-core",
@@ -1788,10 +1825,10 @@ name = "hezarfen_backend"
17881825 version = "0.1.0"
17891826 dependencies = [
17901827 "anyhow",
1791- "argon2",
1828+ "argon2 0.6.0",
17921829 "axum",
17931830 "axum-extra",
1794- "base64 0.23.0",
1831+ "base64 0.23.1",
17951832 "chrono",
17961833 "dotenvy",
17971834 "futures-util",
@@ -1824,7 +1861,7 @@ dependencies = [
18241861 "tracing",
18251862 "tracing-opentelemetry",
18261863 "tracing-subscriber",
1827- "ulid",
1864+ "ulid 3.0.0",
18281865 "utoipa",
18291866 "utoipa-axum",
18301867 "utoipa-swagger-ui",
@@ -1912,9 +1949,9 @@ checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"
19121949
19131950 [[package]]
19141951 name = "hybrid-array"
1915-version = "0.4.13"
1952+version = "0.4.15"
19161953 source = "registry+https://github.com/rust-lang/crates.io-index"
1917-checksum = "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c"
1954+checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
19181955 dependencies = [
19191956 "typenum",
19201957 ]
@@ -2242,7 +2279,7 @@ dependencies = [
22422279 "js-sys",
22432280 "p256",
22442281 "p384",
2245- "pem",
2282+ "pem 3.0.6",
22462283 "rand 0.8.7",
22472284 "rsa",
22482285 "serde",
@@ -2312,9 +2349,9 @@ dependencies = [
23122349
23132350 [[package]]
23142351 name = "log"
2315-version = "0.4.33"
2352+version = "0.4.34"
23162353 source = "registry+https://github.com/rust-lang/crates.io-index"
2317-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
2354+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
23182355
23192356 [[package]]
23202357 name = "lru-slab"
@@ -2575,9 +2612,9 @@ checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
25752612
25762613 [[package]]
25772614 name = "num-integer"
2578-version = "0.1.46"
2615+version = "0.1.47"
25792616 source = "registry+https://github.com/rust-lang/crates.io-index"
2580-checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
2617+checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
25812618 dependencies = [
25822619 "num-traits",
25832620 ]
@@ -2841,6 +2878,16 @@ dependencies = [
28412878 "subtle",
28422879 ]
28432880
2881+[[package]]
2882+name = "password-hash"
2883+version = "0.6.1"
2884+source = "registry+https://github.com/rust-lang/crates.io-index"
2885+checksum = "aab41826031698d6ffcd9cff78ef56ef998e39dc7e5067cdfebe373842d4723b"
2886+dependencies = [
2887+ "getrandom 0.4.3",
2888+ "phc",
2889+]
2890+
28442891 [[package]]
28452892 name = "paste"
28462893 version = "1.0.15"
@@ -2861,7 +2908,7 @@ checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"
28612908 dependencies = [
28622909 "digest 0.10.7",
28632910 "hmac",
2864- "password-hash",
2911+ "password-hash 0.5.0",
28652912 "sha2 0.10.9",
28662913 ]
28672914
@@ -2881,6 +2928,16 @@ dependencies = [
28812928 "serde_core",
28822929 ]
28832930
2931+[[package]]
2932+name = "pem"
2933+version = "4.0.0"
2934+source = "registry+https://github.com/rust-lang/crates.io-index"
2935+checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120"
2936+dependencies = [
2937+ "base64 0.23.1",
2938+ "serde_core",
2939+]
2940+
28842941 [[package]]
28852942 name = "pem-rfc7468"
28862943 version = "0.7.0"
@@ -2896,6 +2953,17 @@ version = "2.3.2"
28962953 source = "registry+https://github.com/rust-lang/crates.io-index"
28972954 checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
28982955
2956+[[package]]
2957+name = "phc"
2958+version = "0.6.1"
2959+source = "registry+https://github.com/rust-lang/crates.io-index"
2960+checksum = "44dc769b75f93afdddd8c7fa12d685292ddeff1e66f7f0f3a234cf1818afe892"
2961+dependencies = [
2962+ "base64ct",
2963+ "ctutils",
2964+ "getrandom 0.4.3",
2965+]
2966+
28992967 [[package]]
29002968 name = "phf"
29012969 version = "0.13.1"
@@ -3402,11 +3470,11 @@ dependencies = [
34023470
34033471 [[package]]
34043472 name = "rcgen"
3405-version = "0.14.8"
3473+version = "0.14.10"
34063474 source = "registry+https://github.com/rust-lang/crates.io-index"
3407-checksum = "57f6d249aad744e274e682777a50283a225a32705394ee6d5fcc01efa25e4055"
3475+checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8"
34083476 dependencies = [
3409- "pem",
3477+ "pem 4.0.0",
34103478 "ring",
34113479 "rustls-pki-types",
34123480 "time",
@@ -3800,9 +3868,9 @@ dependencies = [
38003868
38013869 [[package]]
38023870 name = "rustls"
3803-version = "0.23.42"
3871+version = "0.23.44"
38043872 source = "registry+https://github.com/rust-lang/crates.io-index"
3805-checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138"
3873+checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"
38063874 dependencies = [
38073875 "log",
38083876 "once_cell",
@@ -3834,9 +3902,9 @@ dependencies = [
38343902
38353903 [[package]]
38363904 name = "rustls-webpki"
3837-version = "0.103.13"
3905+version = "0.103.15"
38383906 source = "registry+https://github.com/rust-lang/crates.io-index"
3839-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
3907+checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
38403908 dependencies = [
38413909 "ring",
38423910 "rustls-pki-types",
@@ -3897,7 +3965,7 @@ version = "0.11.0"
38973965 source = "registry+https://github.com/rust-lang/crates.io-index"
38983966 checksum = "0516a385866c09368f0b5bcd1caff3366aace790fcd46e2bb032697bb172fd1f"
38993967 dependencies = [
3900- "password-hash",
3968+ "password-hash 0.5.0",
39013969 "pbkdf2",
39023970 "salsa20",
39033971 "sha2 0.10.9",
@@ -3970,7 +4038,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
39704038 dependencies = [
39714039 "proc-macro2",
39724040 "quote",
3973- "syn 3.0.3",
4041+ "syn 3.0.5",
39744042 ]
39754043
39764044 [[package]]
@@ -4027,7 +4095,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
40274095 checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"
40284096 dependencies = [
40294097 "cfg-if",
4030- "cpufeatures 0.3.0",
4098+ "cpufeatures 0.3.1",
40314099 "digest 0.11.3",
40324100 ]
40334101
@@ -4049,7 +4117,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
40494117 checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4"
40504118 dependencies = [
40514119 "cfg-if",
4052- "cpufeatures 0.3.0",
4120+ "cpufeatures 0.3.1",
40534121 "digest 0.11.3",
40544122 ]
40554123
@@ -4301,7 +4369,7 @@ dependencies = [
43014369 "ahash 0.8.12",
43024370 "ammonia",
43034371 "anyhow",
4304- "argon2",
4372+ "argon2 0.5.3",
43054373 "async-channel",
43064374 "async-stream",
43074375 "base64 0.22.1",
@@ -4376,7 +4444,7 @@ dependencies = [
43764444 "tokio",
43774445 "tokio-util",
43784446 "tracing",
4379- "ulid",
4447+ "ulid 1.2.1",
43804448 "unicase",
43814449 "url",
43824450 "uuid",
@@ -4446,7 +4514,7 @@ dependencies = [
44464514 "surrealdb-protocol",
44474515 "surrealdb-types-derive",
44484516 "tracing",
4449- "ulid",
4517+ "ulid 1.2.1",
44504518 "url",
44514519 "uuid",
44524520 ]
@@ -4509,9 +4577,9 @@ dependencies = [
45094577
45104578 [[package]]
45114579 name = "syn"
4512-version = "3.0.3"
4580+version = "3.0.5"
45134581 source = "registry+https://github.com/rust-lang/crates.io-index"
4514-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
4582+checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
45154583 dependencies = [
45164584 "proc-macro2",
45174585 "quote",
@@ -4582,22 +4650,22 @@ dependencies = [
45824650
45834651 [[package]]
45844652 name = "thiserror"
4585-version = "2.0.19"
4653+version = "2.0.20"
45864654 source = "registry+https://github.com/rust-lang/crates.io-index"
4587-checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9"
4655+checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
45884656 dependencies = [
45894657 "thiserror-impl",
45904658 ]
45914659
45924660 [[package]]
45934661 name = "thiserror-impl"
4594-version = "2.0.19"
4662+version = "2.0.20"
45954663 source = "registry+https://github.com/rust-lang/crates.io-index"
4596-checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd"
4664+checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
45974665 dependencies = [
45984666 "proc-macro2",
45994667 "quote",
4600- "syn 3.0.3",
4668+ "syn 3.0.5",
46014669 ]
46024670
46034671 [[package]]
@@ -4611,9 +4679,9 @@ dependencies = [
46114679
46124680 [[package]]
46134681 name = "time"
4614-version = "0.3.54"
4682+version = "0.3.55"
46154683 source = "registry+https://github.com/rust-lang/crates.io-index"
4616-checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244"
4684+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
46174685 dependencies = [
46184686 "deranged",
46194687 "num-conv",
@@ -5099,6 +5167,16 @@ dependencies = [
50995167 "web-time",
51005168 ]
51015169
5170+[[package]]
5171+name = "ulid"
5172+version = "3.0.0"
5173+source = "registry+https://github.com/rust-lang/crates.io-index"
5174+checksum = "947dde63b6d514cc5e044edad4e0ca7261afd1099d16c83d942cb2b2f348689c"
5175+dependencies = [
5176+ "rand 0.10.2",
5177+ "web-time",
5178+]
5179+
51025180 [[package]]
51035181 name = "unarray"
51045182 version = "0.1.4"
@@ -5222,9 +5300,9 @@ dependencies = [
52225300
52235301 [[package]]
52245302 name = "uuid"
5225-version = "1.26.0"
5303+version = "1.26.1"
52265304 source = "registry+https://github.com/rust-lang/crates.io-index"
5227-checksum = "b5772d71c9be8a8a6ac2117d949c5b224c1b72241bb611d9a3012edcf8af7812"
5305+checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce"
52285306 dependencies = [
52295307 "getrandom 0.4.3",
52305308 "js-sys",
@@ -5744,18 +5822,18 @@ dependencies = [
57445822
57455823 [[package]]
57465824 name = "zerocopy"
5747-version = "0.8.55"
5825+version = "0.8.57"
57485826 source = "registry+https://github.com/rust-lang/crates.io-index"
5749-checksum = "b5a105cd7b140f6eeec8acff2ea38135d3cab283ada58540f629fe51e46696eb"
5827+checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873"
57505828 dependencies = [
57515829 "zerocopy-derive",
57525830 ]
57535831
57545832 [[package]]
57555833 name = "zerocopy-derive"
5756-version = "0.8.55"
5834+version = "0.8.57"
57575835 source = "registry+https://github.com/rust-lang/crates.io-index"
5758-checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb"
5836+checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc"
57595837 dependencies = [
57605838 "proc-macro2",
57615839 "quote",
Cargo.tomlmodified+6 -6
@@ -23,10 +23,10 @@ surrealdb = { version = "3.2", default-features = false, features = ["protocol-w
2323 serde = { version = "1", features = ["derive"] }
2424 serde_json = "1"
2525 chrono = "0.4"
26-argon2 = "0.5"
26+argon2 = "0.6"
2727 getrandom = "0.4"
2828 hex = "0.4"
29-ulid = "1"
29+ulid = "3"
3030 thiserror = "2"
3131 anyhow = "1"
3232 tracing = "0.1"
@@ -37,9 +37,9 @@ utoipa = { version = "5.5.0", features = ["axum_extras"] }
3737 utoipa-axum = "0.2.0"
3838 utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
3939 quinn = { version = "0.11.11", default-features = false, features = ["runtime-tokio", "rustls-ring", "log"] }
40-rcgen = { version = "0.14.8", default-features = false, features = ["pem", "ring"] }
40+rcgen = { version = "0.14.10", default-features = false, features = ["pem", "ring"] }
4141 rustls-pemfile = "2.2.0"
42-rustls = { version = "0.23.42", default-features = false, features = ["logging", "ring", "std", "tls12"] }
42+rustls = { version = "0.23.44", default-features = false, features = ["logging", "ring", "std", "tls12"] }
4343 sha2 = "0.11.0"
4444 base64 = "0.23"
4545 # `ServiceExt::oneshot`, which is how the AI bridge dispatches a service's api
@@ -49,7 +49,7 @@ tower = { version = "0.5", features = ["util"] }
4949 opentelemetry = "0.32.0"
5050 tracing-opentelemetry = "0.33.0"
5151 opentelemetry-semantic-conventions = "0.32.1"
52-uuid = { version = "1.26.0", features = ["v4"] }
52+uuid = { version = "1.26.1", features = ["v4"] }
5353 opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio"] }
5454 opentelemetry-otlp = { version = "0.32.0", default-features = false, features = ["trace", "metrics", "logs", "grpc-tonic", "http-proto", "reqwest-blocking-client", "internal-logs"] }
5555 opentelemetry-appender-tracing = "0.32.0"
@@ -60,7 +60,7 @@ tokio = { version = "1", features = ["full", "test-util"] }
6060 reqwest = { version = "0.13", default-features = false, features = ["json", "cookies"] }
6161 tempfile = "3"
6262 tokio-tungstenite = "0.30.0"
63-futures-util = "0.3.32"
63+futures-util = "0.3.34"
6464 proptest = "1.11.0"
6565 # Compiles the pattern `GET /limits` publishes and runs it over the same inputs
6666 # the validator sees, so the published promise cannot drift from the accept set.
src/ai/server.rsmodified+2 -2
@@ -260,7 +260,7 @@ impl AiBridge {
260260 // function returns by any path, so an abandoned request frees the
261261 // worker's slot rather than leaking it.
262262 let lease = self.inner.registry.pick(capability)?;
263- let id = Ulid::new().to_string();
263+ let id = Ulid::generate().to_string();
264264 let deadline_ms = timeout.as_millis().min(u64::MAX as u128) as u64;
265265 let request = Request {
266266 id: id.clone(),
@@ -995,7 +995,7 @@ async fn register(
995995 return Err(());
996996 }
997997
998- let worker_id = Ulid::new().to_string();
998+ let worker_id = Ulid::generate().to_string();
999999 let max_concurrent = clamp_concurrency(hello.max_concurrent);
10001000 let greeting = Greeting::Welcome {
10011001 worker_id: worker_id.clone(),
src/db/badge.rsmodified+1 -1
@@ -184,7 +184,7 @@ mod tests {
184184
185185 /// A user row carrying `counters`, by column name.
186186 async fn a_user(counters: &[(&str, i64)], db: &Database) -> UserId {
187- let user = UserId::from_key(&ulid::Ulid::new().to_string());
187+ let user = UserId::from_key(&ulid::Ulid::generate().to_string());
188188 let sets: Vec<String> = counters
189189 .iter()
190190 .map(|(field, value)| format!("{field} = {value}"))
src/db/builder.rsmodified+1 -1
@@ -41,7 +41,7 @@ pub async fn create_session(
4141 db: &Database,
4242 builder: &BuilderId,
4343 ) -> Result<BuilderSession, AppError> {
44- let key = RecordId::new(BUILDER_SESSION_TABLE, Ulid::new().to_string());
44+ let key = RecordId::new(BUILDER_SESSION_TABLE, Ulid::generate().to_string());
4545 let session = BuilderSession {
4646 id: key.clone(),
4747 builder: builder.clone(),
src/db/page.rsmodified+1 -1
@@ -206,7 +206,7 @@ mod tests {
206206 #[tokio::test]
207207 async fn the_window_walks_the_rows_and_total_stays_the_whole_list() {
208208 let db = database::init_mem().await.unwrap();
209- let user = UserId::from_key(&Ulid::new().to_string());
209+ let user = UserId::from_key(&Ulid::generate().to_string());
210210 for i in 0..5 {
211211 note::create(
212212 &db,
src/db/pomodoro.rsmodified+3 -3
@@ -282,7 +282,7 @@ mod tests {
282282 /// touches a record that exists, so a fabricated id would silently store
283283 /// nothing. The tests above need no row — they read only the stint log.
284284 async fn a_user(db: &Database) -> UserId {
285- let user = UserId::from_key(&Ulid::new().to_string());
285+ let user = UserId::from_key(&Ulid::generate().to_string());
286286 db.query("CREATE $usr SET username = $name, password_hash = 'x'")
287287 .bind(("usr", user.record()))
288288 .bind(("name", user.key().to_string()))
@@ -699,7 +699,7 @@ mod tests {
699699 let db = database::init_mem().await.unwrap();
700700 // A `record<user>` column checks the table of the id, not row
701701 // existence — a fabricated id keeps this test free of user ceremony.
702- let user = UserId::from_key(&Ulid::new().to_string());
702+ let user = UserId::from_key(&Ulid::generate().to_string());
703703
704704 // Nothing running yet — finishing conflicts.
705705 assert!(matches!(
@@ -733,7 +733,7 @@ mod tests {
733733 #[tokio::test]
734734 async fn a_backwards_clock_records_a_zero_stint_not_a_negative_one() {
735735 let db = database::init_mem().await.unwrap();
736- let user = UserId::from_key(&Ulid::new().to_string());
736+ let user = UserId::from_key(&Ulid::generate().to_string());
737737
738738 start(&db, &user, None).await.unwrap();
739739 // Stand in for the NTP step: push the running stint's start an hour
src/db/pool_question.rsmodified+12 -12
@@ -288,7 +288,7 @@ mod tests {
288288 /// The two counter columns plus a row to carry them: the `user` table is
289289 /// SCHEMAFULL in production, and the counters are `option<int>` there.
290290 async fn a_user(db: &Database) -> UserId {
291- let user = UserId::from_key(&Ulid::new().to_string());
291+ let user = UserId::from_key(&Ulid::generate().to_string());
292292 db.query(format!(
293293 "DEFINE FIELD IF NOT EXISTS {POOL_APPROVED_TOTAL_FIELD} ON user TYPE option<int>;
294294 DEFINE FIELD IF NOT EXISTS {POOL_PUBLISHED_TOTAL_FIELD} ON user TYPE option<int>;
@@ -336,8 +336,8 @@ mod tests {
336336 #[tokio::test]
337337 async fn approval_is_a_one_way_race_safe_transition() {
338338 let db = database::init_mem().await.unwrap();
339- let asker = UserId::from_key(&Ulid::new().to_string());
340- let teacher = UserId::from_key(&Ulid::new().to_string());
339+ let asker = UserId::from_key(&Ulid::generate().to_string());
340+ let teacher = UserId::from_key(&Ulid::generate().to_string());
341341
342342 let q = insert(&db, question(&asker)).await.unwrap();
343343 assert_eq!(q.get_status(), STATUS_PENDING);
@@ -420,9 +420,9 @@ mod tests {
420420 #[tokio::test]
421421 async fn visibility_hides_others_pending_questions() {
422422 let db = database::init_mem().await.unwrap();
423- let asker = UserId::from_key(&Ulid::new().to_string());
424- let other = UserId::from_key(&Ulid::new().to_string());
425- let teacher = UserId::from_key(&Ulid::new().to_string());
423+ let asker = UserId::from_key(&Ulid::generate().to_string());
424+ let other = UserId::from_key(&Ulid::generate().to_string());
425+ let teacher = UserId::from_key(&Ulid::generate().to_string());
426426
427427 let pending = insert(&db, question(&asker)).await.unwrap();
428428 let published = insert(&db, question(&other)).await.unwrap();
@@ -444,8 +444,8 @@ mod tests {
444444 #[tokio::test]
445445 async fn image_attaches_only_while_pending_and_reports_the_replaced_blob() {
446446 let db = database::init_mem().await.unwrap();
447- let asker = UserId::from_key(&Ulid::new().to_string());
448- let teacher = UserId::from_key(&Ulid::new().to_string());
447+ let asker = UserId::from_key(&Ulid::generate().to_string());
448+ let teacher = UserId::from_key(&Ulid::generate().to_string());
449449 let png = FileContentType::try_new("image/png").unwrap();
450450
451451 let q = insert(&db, question(&asker)).await.unwrap();
@@ -491,8 +491,8 @@ mod tests {
491491 #[tokio::test]
492492 async fn delete_cascades_solutions_and_returns_the_row() {
493493 let db = database::init_mem().await.unwrap();
494- let asker = UserId::from_key(&Ulid::new().to_string());
495- let helper = UserId::from_key(&Ulid::new().to_string());
494+ let asker = UserId::from_key(&Ulid::generate().to_string());
495+ let helper = UserId::from_key(&Ulid::generate().to_string());
496496
497497 let q = insert(&db, question(&asker)).await.unwrap();
498498 let offered = crate::db::solution::insert(
@@ -564,8 +564,8 @@ mod tests {
564564
565565 let (mut solutions, mut swept, mut delete_500) = (0, 0, 0);
566566 for round in 0..4 {
567- let asker = UserId::from_key(&Ulid::new().to_string());
568- let helper = UserId::from_key(&Ulid::new().to_string());
567+ let asker = UserId::from_key(&Ulid::generate().to_string());
568+ let helper = UserId::from_key(&Ulid::generate().to_string());
569569 let q = insert(&db, question(&asker)).await.unwrap();
570570 let id = q.get_id().clone();
571571
src/db/profile.rsmodified+5 -5
@@ -102,7 +102,7 @@ mod tests {
102102 #[tokio::test]
103103 async fn stats_are_zero_without_pomodoro_rows() {
104104 let db = crate::database::init_mem().await.unwrap();
105- let user = UserId::from_key(&ulid::Ulid::new().to_string());
105+ let user = UserId::from_key(&ulid::Ulid::generate().to_string());
106106
107107 let stats = load(&db, &user, 3, 1).await.unwrap();
108108 // Derived counters: no rows is a true zero, never a null.
@@ -121,7 +121,7 @@ mod tests {
121121 #[tokio::test]
122122 async fn lifetime_totals_ride_the_same_query() {
123123 let db = crate::database::init_mem().await.unwrap();
124- let user = UserId::from_key(&ulid::Ulid::new().to_string());
124+ let user = UserId::from_key(&ulid::Ulid::generate().to_string());
125125 db.query(format!(
126126 "CREATE $usr SET username = $name, password_hash = 'x',
127127 {} = 4, {} = 3",
@@ -148,8 +148,8 @@ mod tests {
148148 #[tokio::test]
149149 async fn stats_count_finished_stints_only() {
150150 let db = crate::database::init_mem().await.unwrap();
151- let user = UserId::from_key(&ulid::Ulid::new().to_string());
152- let other = UserId::from_key(&ulid::Ulid::new().to_string());
151+ let user = UserId::from_key(&ulid::Ulid::generate().to_string());
152+ let other = UserId::from_key(&ulid::Ulid::generate().to_string());
153153
154154 // Two finished stints (1000 ms + 2500 ms), one still running, and one
155155 // finished stint belonging to somebody else.
@@ -174,7 +174,7 @@ mod tests {
174174 #[tokio::test]
175175 async fn focus_time_never_reads_negative() {
176176 let db = crate::database::init_mem().await.unwrap();
177- let user = UserId::from_key(&ulid::Ulid::new().to_string());
177+ let user = UserId::from_key(&ulid::Ulid::generate().to_string());
178178
179179 // One honest 1000 ms stint and one inverted row — what a backwards
180180 // clock step left behind before `finish` grew its floor. The raw sum is
src/db/solution.rsmodified+6 -6
@@ -183,7 +183,7 @@ mod tests {
183183 crate::db::pool_question::insert(
184184 db,
185185 PoolQuestion::new(
186- &UserId::from_key(&Ulid::new().to_string()),
186+ &UserId::from_key(&Ulid::generate().to_string()),
187187 PoolQuestionTitle::try_new("soru").unwrap(),
188188 PoolQuestionBody::try_new("neden").unwrap(),
189189 ),
@@ -199,7 +199,7 @@ mod tests {
199199 let db = database::init_mem().await.unwrap();
200200 let question_a = question_row(&db).await;
201201 let question_b = question_row(&db).await;
202- let author = UserId::from_key(&Ulid::new().to_string());
202+ let author = UserId::from_key(&Ulid::generate().to_string());
203203
204204 // Distinct offer times so the assertion pins the real contract —
205205 // older `offered_at` sorts first — not the same-millisecond `id`
@@ -257,7 +257,7 @@ mod tests {
257257 async fn image_set_replace_clear_report_the_replaced_blob() {
258258 let db = database::init_mem().await.unwrap();
259259 let question = question_row(&db).await;
260- let author = UserId::from_key(&Ulid::new().to_string());
260+ let author = UserId::from_key(&Ulid::generate().to_string());
261261 let png = FileContentType::try_new("image/png").unwrap();
262262
263263 let solution = insert(
@@ -318,7 +318,7 @@ mod tests {
318318 async fn set_body_edits_in_place() {
319319 let db = database::init_mem().await.unwrap();
320320 let question = question_row(&db).await;
321- let author = UserId::from_key(&Ulid::new().to_string());
321+ let author = UserId::from_key(&Ulid::generate().to_string());
322322
323323 let solution = insert(
324324 &db,
@@ -346,7 +346,7 @@ mod tests {
346346 assert!(
347347 set_body(
348348 &db,
349- &SolutionId::from_key(&Ulid::new().to_string()),
349+ &SolutionId::from_key(&Ulid::generate().to_string()),
350350 &SolutionBody::try_new("boş").unwrap(),
351351 )
352352 .await
@@ -361,7 +361,7 @@ mod tests {
361361 let two = question_row(&db).await;
362362 let one = question_row(&db).await;
363363 let none = question_row(&db).await;
364- let author = UserId::from_key(&Ulid::new().to_string());
364+ let author = UserId::from_key(&Ulid::generate().to_string());
365365
366366 for (question, bodies) in [(&two, vec!["a", "b"]), (&one, vec!["c"])] {
367367 for body in bodies {
src/db/work_entry.rsmodified+1 -1
@@ -154,7 +154,7 @@ mod tests {
154154 let db = database::init_mem().await.unwrap();
155155 // A `record<user>` column checks the table of the id, not row
156156 // existence — a fabricated id keeps this test free of user ceremony.
157- let user = UserId::from_key(&Ulid::new().to_string());
157+ let user = UserId::from_key(&Ulid::generate().to_string());
158158
159159 let open = check_in(&db, &user).await.unwrap();
160160 assert!(open.is_open());
src/domain/answer_image.rsmodified+1 -1
@@ -85,7 +85,7 @@ impl AnswerImage {
8585 question: question.clone(),
8686 user: user.clone(),
8787 seq,
88- file: Ulid::new().to_string(),
88+ file: Ulid::generate().to_string(),
8989 content_type,
9090 size,
9191 }
src/domain/appointment.rsmodified+1 -1
@@ -50,7 +50,7 @@ use crate::domain::user::UserId;
5050 use crate::error::ValidationError;
5151 use crate::validate::validate_required;
5252
53-/// Mints booking ids in write order — `Ulid::new()`'s random low bits sort
53+/// Mints booking ids in write order — `Ulid::generate()`'s random low bits sort
5454 /// arbitrarily within one millisecond, which would scramble the `id` tie-break
5555 /// of the newest-first listings ([`crate::db::appointment::list_for_requester`]).
5656 static IDS: LazyLock<std::sync::Mutex<Generator>> =
src/domain/bank_question_image.rsmodified+1 -1
@@ -73,7 +73,7 @@ impl BankQuestionImage {
7373 id: BankQuestionImageId::for_slot(question, slot),
7474 bank_question: question.clone(),
7575 slot: slot.cloned(),
76- file: Ulid::new().to_string(),
76+ file: Ulid::generate().to_string(),
7777 content_type,
7878 size,
7979 }
src/domain/board.rsmodified+1 -1
@@ -25,7 +25,7 @@ use crate::validate::validate_required;
2525 pub struct BoardId(RecordId);
2626
2727 impl BoardId {
28- /// Monotonic, not `Ulid::new()`: boards list newest-first by id, and a
28+ /// Monotonic, not `Ulid::generate()`: boards list newest-first by id, and a
2929 /// random low half scrambles rows minted in the same millisecond.
3030 pub fn generate() -> Self {
3131 Self(RecordId::new(BOARD_TABLE, next_ulid().to_string()))
src/domain/board_stroke.rsmodified+1 -1
@@ -62,7 +62,7 @@ pub const REFUSALS: [&str; 5] = [
6262 pub struct BoardStrokeId(RecordId);
6363
6464 impl BoardStrokeId {
65- /// Monotonic, not `Ulid::new()`: this id *is* the board's total order, and
65+ /// Monotonic, not `Ulid::generate()`: this id *is* the board's total order, and
6666 /// a random low half scrambles every stroke drawn in the same millisecond —
6767 /// which is what a burst of drawing looks like.
6868 pub fn generate() -> Self {
src/domain/builder.rsmodified+1 -1
@@ -24,7 +24,7 @@ pub struct BuilderId(RecordId);
2424
2525 impl BuilderId {
2626 pub fn generate() -> Self {
27- Self(RecordId::new(BUILDER_TABLE, Ulid::new().to_string()))
27+ Self(RecordId::new(BUILDER_TABLE, Ulid::generate().to_string()))
2828 }
2929
3030 pub fn from_key(key: &str) -> Self {
src/domain/chatbot_message.rsmodified+1 -1
@@ -23,7 +23,7 @@ use crate::domain::user::UserId;
2323 use crate::error::ValidationError;
2424 use crate::validate::validate_required;
2525
26-/// Mints message ids in write order. Unlike `Ulid::new()`, whose 80 random
26+/// Mints message ids in write order. Unlike `Ulid::generate()`, whose 80 random
2727 /// low bits sort arbitrarily among ids minted in the same millisecond, this
2828 /// increments the previous id — so the `id` tie-break in the `ORDER BY` of
2929 /// [`list_for_thread`](crate::db::chatbot_message::list_for_thread) /
src/domain/chatbot_thread.rsmodified+1 -1
@@ -17,7 +17,7 @@ use crate::validate::validate_required;
1717 pub struct ChatbotThreadId(RecordId);
1818
1919 impl ChatbotThreadId {
20- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
20+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2121 /// threads sort `updated_at DESC, id DESC` and the id breaks the tie
2222 /// between two threads last touched in the same millisecond,
2323 /// and a random low half sorts arbitrarily inside one millisecond.
src/domain/course.rsmodified+1 -1
@@ -11,7 +11,7 @@ use crate::validate::{validate_course_kind, validate_optional, validate_required
1111 pub struct CourseId(RecordId);
1212
1313 impl CourseId {
14- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
14+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
1515 /// courses list `id DESC` (newest first, [`crate::db::course::list_all`]),
1616 /// and a random low half scrambles rows minted in the same millisecond.
1717 pub fn generate() -> Self {
src/domain/course_note.rsmodified+1 -1
@@ -11,7 +11,7 @@ use crate::validate::{validate_optional, validate_required};
1111 pub struct CourseNoteId(RecordId);
1212
1313 impl CourseNoteId {
14- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
14+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
1515 /// a course's notes list `id DESC` (newest first,
1616 /// [`crate::db::course_note::list_for_course`]), and a random low half
1717 /// scrambles rows minted in the same millisecond.
src/domain/course_note_file.rsmodified+1 -1
@@ -20,7 +20,7 @@ use crate::domain::monotonic_id::next_ulid;
2020 pub struct CourseNoteFileId(RecordId);
2121
2222 impl CourseNoteFileId {
23- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
23+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2424 /// a note's files list `id DESC` (newest first,
2525 /// [`crate::db::course_note_file::list_for`]), and a random low half
2626 /// scrambles rows minted in the same millisecond.
src/domain/course_session.rsmodified+1 -1
@@ -12,7 +12,7 @@ use crate::validate::validate_optional;
1212 pub struct CourseSessionId(RecordId);
1313
1414 impl CourseSessionId {
15- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
15+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
1616 /// a course's sessions sort `starts_at DESC, id DESC` and the id breaks
1717 /// the tie between two sessions starting at the same instant,
1818 /// and a random low half sorts arbitrarily inside one millisecond.
src/domain/event.rsmodified+1 -1
@@ -16,7 +16,7 @@ use crate::validate::{validate_optional, validate_required};
1616 pub struct EventId(RecordId);
1717
1818 impl EventId {
19- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
19+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2020 /// events list `id DESC` (newest first, [`crate::db::event::list_all`]),
2121 /// and a random low half scrambles rows minted in the same millisecond.
2222 pub fn generate() -> Self {
src/domain/exam.rsmodified+1 -1
@@ -28,7 +28,7 @@ use crate::validate::{
2828 pub struct ExamId(RecordId);
2929
3030 impl ExamId {
31- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
31+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
3232 /// exams list `id DESC` (newest first, [`crate::db::exam::list_all`]),
3333 /// and a random low half scrambles rows minted in the same millisecond.
3434 pub fn generate() -> Self {
src/domain/exam_question.rsmodified+4 -4
@@ -16,7 +16,7 @@ use crate::validate::{validate_question_kind, validate_question_points, validate
1616 pub struct ExamQuestionId(RecordId);
1717
1818 impl ExamQuestionId {
19- /// Minted from the process-wide monotonic generator, not `Ulid::new()`: the
19+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`: the
2020 /// id *is* the question's presentation order
2121 /// ([`crate::db::exam_question::list_for_exam`]
2222 /// sorts `id ASC`), and a random low half scrambles a burst of saves that
@@ -115,11 +115,11 @@ impl ChoiceText {
115115 pub struct ChoiceId(String);
116116
117117 impl ChoiceId {
118- /// Plain `Ulid::new()` deliberately: options are ordered by their position
118+ /// Plain `Ulid::generate()` deliberately: options are ordered by their position
119119 /// in the stored `Vec`, never by id, so nothing here reads the id as a
120120 /// clock — it only has to be unique.
121121 fn generate() -> Self {
122- Self(Ulid::new().to_string())
122+ Self(Ulid::generate().to_string())
123123 }
124124
125125 pub fn as_str(&self) -> &str {
@@ -408,7 +408,7 @@ mod tests {
408408 /// A teacher saving several questions back to back gets them back in that
409409 /// order: `list_for_exam` sorts `id ASC`, so the ids minted inside one
410410 /// millisecond have to sort in mint order. Revert `generate` to
411- /// `Ulid::new()` and this fails — the low 80 bits are redrawn per id, so a
411+ /// `Ulid::generate()` and this fails — the low 80 bits are redrawn per id, so a
412412 /// same-tick burst comes out shuffled.
413413 #[tokio::test]
414414 async fn ids_sort_in_creation_order() {
src/domain/homework.rsmodified+1 -1
@@ -27,7 +27,7 @@ use crate::validate::{validate_optional, validate_required};
2727 pub struct HomeworkId(RecordId);
2828
2929 impl HomeworkId {
30- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
30+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
3131 /// homework lists `id DESC` (newest first, [`Homework::list_all`]),
3232 /// and a random low half scrambles rows minted in the same millisecond.
3333 pub fn generate() -> Self {
src/domain/homework_file.rsmodified+2 -2
@@ -23,7 +23,7 @@ use crate::domain::timestamp::Timestamp;
2323 pub struct HomeworkFileId(RecordId);
2424
2525 impl HomeworkFileId {
26- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
26+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2727 /// a submission's files list `id DESC` (newest first, [`HomeworkFile::list_for_submission`]),
2828 /// and a random low half scrambles rows minted in the same millisecond.
2929 pub fn generate() -> Self {
@@ -75,7 +75,7 @@ impl HomeworkFile {
7575 name,
7676 content_type,
7777 size,
78- file: Ulid::new().to_string(),
78+ file: Ulid::generate().to_string(),
7979 created_at: Timestamp::now(),
8080 }
8181 }
src/domain/meal_ledger.rsmodified+1 -1
@@ -70,7 +70,7 @@ use crate::domain::user::UserId;
7070 use crate::error::ValidationError;
7171 use crate::validate::validate_optional;
7272
73-/// Mints ledger ids in write order — `Ulid::new()`'s random low bits sort
73+/// Mints ledger ids in write order — `Ulid::generate()`'s random low bits sort
7474 /// arbitrarily within one millisecond, which would scramble the `id` tie-break
7575 /// of the newest-first statement below.
7676 static IDS: LazyLock<std::sync::Mutex<Generator>> =
src/domain/message.rsmodified+1 -1
@@ -100,7 +100,7 @@ impl Folder {
100100 pub struct MessageId(RecordId);
101101
102102 impl MessageId {
103- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
103+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
104104 /// the folder listings sort `id DESC` (newest first,
105105 /// [`crate::db::message::list_folder`]),
106106 /// and a random low half scrambles rows minted in the same millisecond.
src/domain/monotonic_id.rsmodified+1 -1
@@ -1,7 +1,7 @@
11 //! Ids that sort in write order, for tables whose listings lean on `id` to
22 //! break ties (or to mean "newest first" outright).
33 //!
4-//! `Ulid::new()` fills the low 80 bits at random, so two ids minted in the
4+//! `Ulid::generate()` fills the low 80 bits at random, so two ids minted in the
55 //! *same millisecond* sort arbitrarily against each other — millisecond-
66 //! accurate ordering only. That is not enough when a burst of writes lands
77 //! inside one tick (a recurring appointment publish expanding a series, a
src/domain/note.rsmodified+1 -1
@@ -10,7 +10,7 @@ use crate::validate::{validate_optional, validate_required};
1010 pub struct NoteId(RecordId);
1111
1212 impl NoteId {
13- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
13+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
1414 /// notes list `id DESC` (newest first, [`crate::db::note::list_for`]),
1515 /// and a random low half scrambles rows minted in the same millisecond.
1616 pub fn generate() -> Self {
src/domain/note_file.rsmodified+1 -1
@@ -16,7 +16,7 @@ use crate::error::ValidationError;
1616 pub struct NoteFileId(RecordId);
1717
1818 impl NoteFileId {
19- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
19+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2020 /// a note's files list `id DESC` (newest first,
2121 /// [`crate::db::note_file::list_for`]), and a random low half scrambles
2222 /// rows minted in the same millisecond.
src/domain/payment_ledger.rsmodified+1 -1
@@ -59,7 +59,7 @@ use crate::error::ValidationError;
5959 pub struct PaymentLedgerId(RecordId);
6060
6161 impl PaymentLedgerId {
62- /// A fresh id in write order — `Ulid::new()`'s random low bits sort
62+ /// A fresh id in write order — `Ulid::generate()`'s random low bits sort
6363 /// arbitrarily within one millisecond, which would scramble the `id`
6464 /// tie-break of the newest-first statement below.
6565 pub fn generate() -> Self {
src/domain/pomodoro.rsmodified+1 -1
@@ -9,7 +9,7 @@ use crate::domain::user::UserId;
99 pub struct PomodoroSessionId(RecordId);
1010
1111 impl PomodoroSessionId {
12- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
12+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
1313 /// the log sorts `started_at DESC, id DESC` and the id breaks the tie between
1414 /// two sessions started at the same instant. The `open_` key below never ties
1515 /// with itself (one running session per user), so it needs no ordering.
src/domain/pool_question.rsmodified+1 -1
@@ -28,7 +28,7 @@ use crate::validate::validate_required;
2828 pub struct PoolQuestionId(RecordId);
2929
3030 impl PoolQuestionId {
31- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
31+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
3232 /// the pool sorts `asked_at DESC, id DESC` and the id *is* the tie-break
3333 /// ([`crate::db::pool_question::list_all`]),
3434 /// and a random low half scrambles rows minted in the same millisecond.
src/domain/question_image.rsmodified+1 -1
@@ -75,7 +75,7 @@ impl QuestionImage {
7575 exam: exam.clone(),
7676 question: question.clone(),
7777 slot: slot.cloned(),
78- file: Ulid::new().to_string(),
78+ file: Ulid::generate().to_string(),
7979 content_type,
8080 size,
8181 }
src/domain/rag_output.rsmodified+1 -1
@@ -27,7 +27,7 @@ use crate::domain::timestamp::Timestamp;
2727 pub struct RagOutputId(RecordId);
2828
2929 impl RagOutputId {
30- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
30+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
3131 /// a note's outputs list `id DESC` (newest first,
3232 /// [`list_for`](crate::db::rag_output::list_for)).
3333 pub fn generate() -> Self {
src/domain/session.rsmodified+1 -1
@@ -11,7 +11,7 @@ pub struct SessionId(RecordId);
1111
1212 impl SessionId {
1313 pub fn generate() -> Self {
14- Self(RecordId::new(SESSION_TABLE, Ulid::new().to_string()))
14+ Self(RecordId::new(SESSION_TABLE, Ulid::generate().to_string()))
1515 }
1616
1717 pub fn record(&self) -> RecordId {
src/domain/solution.rsmodified+1 -1
@@ -23,7 +23,7 @@ use crate::validate::validate_required;
2323 pub struct SolutionId(RecordId);
2424
2525 impl SolutionId {
26- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
26+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2727 /// solutions sort `offered_at ASC, id ASC` and the id *is* the tie-break
2828 /// ([`crate::db::solution::list_for`]),
2929 /// and a random low half scrambles rows minted in the same millisecond.
src/domain/subject.rsmodified+2 -2
@@ -10,7 +10,7 @@ use crate::validate::{validate_optional, validate_required};
1010 pub struct SubjectId(RecordId);
1111
1212 impl SubjectId {
13- /// Minted from the process-wide monotonic generator, not `Ulid::new()`: the
13+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`: the
1414 /// id *is* the curriculum's order ([`crate::db::subject::list_for_course`]
1515 /// sorts `id ASC`), and a random low half scrambles a burst of saves that
1616 /// lands inside one millisecond.
@@ -99,7 +99,7 @@ mod tests {
9999 /// A teacher entering a curriculum gets it back in the order they typed it:
100100 /// `list_for_course` sorts `id ASC`, so the ids minted inside one
101101 /// millisecond have to sort in mint order. Revert `generate` to
102- /// `Ulid::new()` and this fails — the low 80 bits are redrawn per id, so a
102+ /// `Ulid::generate()` and this fails — the low 80 bits are redrawn per id, so a
103103 /// same-tick burst comes out shuffled.
104104 #[tokio::test]
105105 async fn ids_sort_in_creation_order() {
src/domain/term.rsmodified+1 -1
@@ -18,7 +18,7 @@ use crate::validate::validate_required;
1818 pub struct TermId(RecordId);
1919
2020 impl TermId {
21- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
21+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2222 /// terms sort `starts_at DESC, id DESC` and the id breaks the tie between
2323 /// two terms starting at the same instant,
2424 /// and a random low half sorts arbitrarily inside one millisecond.
src/domain/user.rsmodified+6 -10
@@ -5,7 +5,7 @@
55
66 use std::sync::OnceLock;
77
8-use argon2::password_hash::SaltString;
8+use argon2::password_hash::phc::PasswordHash as PhcHash;
99 use argon2::{Argon2, PasswordHasher, PasswordVerifier};
1010 use surrealdb::types::{RecordId, RecordIdKey, SurrealValue};
1111
@@ -23,7 +23,7 @@ use crate::validate::{validate_password, validate_username};
2323 pub struct UserId(RecordId);
2424
2525 impl UserId {
26- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
26+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2727 /// users list `id DESC` (newest first, [`crate::db::user::list_all`]) and page by
2828 /// offset over that order, and a random low half scrambles rows minted in
2929 /// the same millisecond. Not a secret: the session token is separate
@@ -93,13 +93,9 @@ impl Password {
9393 /// Private on purpose: argon2 must never run on an async worker. Callers
9494 /// outside this module go through [`Password::hash_async`].
9595 fn hash(&self) -> Result<PasswordHash, AppError> {
96- let mut salt_bytes = [0u8; 16];
97- getrandom::fill(&mut salt_bytes).map_err(|e| AppError::Internal(format!("rng: {e}")))?;
98- let salt = SaltString::encode_b64(&salt_bytes)
99- .map_err(|e| AppError::Internal(format!("salt: {e}")))?;
100- let hash = Argon2::default()
101- .hash_password(self.0.as_bytes(), &salt)?
102- .to_string();
96+ // password-hash 0.6 generates the salt internally (its own CSPRNG);
97+ // the explicit SaltString step is gone.
98+ let hash = Argon2::default().hash_password(self.0.as_bytes())?.to_string();
10399 Ok(PasswordHash(hash))
104100 }
105101
@@ -142,7 +138,7 @@ impl PasswordHash {
142138
143139 /// Private on purpose — see [`Password::hash`]. Use [`PasswordHash::verify_async`].
144140 fn verify(&self, password: &Password) -> bool {
145- match argon2::password_hash::PasswordHash::new(&self.0) {
141+ match PhcHash::new(&self.0) {
146142 Ok(parsed) => Argon2::default()
147143 .verify_password(password.0.as_bytes(), &parsed)
148144 .is_ok(),
src/domain/work_entry.rsmodified+1 -1
@@ -20,7 +20,7 @@ pub(crate) fn out_before_in_error() -> AppError {
2020 pub struct WorkEntryId(RecordId);
2121
2222 impl WorkEntryId {
23- /// Minted from the process-wide monotonic generator, not `Ulid::new()`:
23+ /// Minted from the process-wide monotonic generator, not `Ulid::generate()`:
2424 /// the log sorts `check_in DESC, id DESC` and the id breaks the tie between
2525 /// two stints checked in at the same instant. The `open_` key below never
2626 /// ties with itself (one open stint per user), so it needs no ordering.
src/web/questions.rsmodified+2 -2
@@ -482,7 +482,7 @@ async fn upload_image(
482482 let upload = read_image_upload(&st, &mut multipart).await?;
483483 let size = upload.size();
484484
485- let file = ulid::Ulid::new().to_string();
485+ let file = ulid::Ulid::generate().to_string();
486486 store_blob(&st, &file, &upload.data, || async {
487487 match pool_question::set_image(&st.db, question.get_id(), &file, &upload.content_type, size)
488488 .await?
@@ -808,7 +808,7 @@ async fn upload_solution_image(
808808 let upload = read_image_upload(&st, &mut multipart).await?;
809809 let size = upload.size();
810810
811- let file = ulid::Ulid::new().to_string();
811+ let file = ulid::Ulid::generate().to_string();
812812 store_blob(&st, &file, &upload.data, || async {
813813 match solution::set_image(&st.db, solution.get_id(), &file, &upload.content_type, size)
814814 .await?
src/web/users.rsmodified+1 -1
@@ -1151,7 +1151,7 @@ async fn upload_my_avatar(
11511151 let upload = read_image_upload(&st, &mut multipart).await?;
11521152 let size = upload.size();
11531153
1154- let file = ulid::Ulid::new().to_string();
1154+ let file = ulid::Ulid::generate().to_string();
11551155 store_blob(&st, &file, &upload.data, || async {
11561156 match crate::service::user::set_avatar(
11571157 &st.db,