Merge branch 'registration-tokens' into 'main'

Draft: introduce temporary registration tokens

Closes #108

See merge request matrix/grapevine!181
This commit is contained in:
mikoto 2025-06-03 04:50:45 +00:00
commit a7a9b244f3
13 changed files with 312 additions and 23 deletions

41
Cargo.lock generated
View file

@ -56,6 +56,12 @@ dependencies = [
"password-hash",
]
[[package]]
name = "arrayvec"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
[[package]]
name = "as_variant"
version = "1.3.0"
@ -407,6 +413,15 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chrono"
version = "0.4.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
dependencies = [
"num-traits",
]
[[package]]
name = "clang-sys"
version = "1.8.1"
@ -623,6 +638,20 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]]
name = "duration-str"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9add086174f60bcbcfde7175e71dcfd99da24dfd12f611d0faf74f4f26e15a06"
dependencies = [
"chrono",
"rust_decimal",
"serde",
"thiserror 2.0.12",
"time",
"winnow",
]
[[package]]
name = "ed25519"
version = "2.2.3"
@ -922,6 +951,7 @@ dependencies = [
"base64 0.22.1",
"bytes",
"clap",
"duration-str",
"futures-util",
"hmac",
"html-escape",
@ -964,6 +994,7 @@ dependencies = [
"thiserror 2.0.12",
"thread_local",
"tikv-jemallocator",
"time",
"tokio",
"toml",
"tower 0.5.2",
@ -2723,6 +2754,16 @@ dependencies = [
"rust-librocksdb-sys",
]
[[package]]
name = "rust_decimal"
version = "1.37.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faa7de2ba56ac291bd90c6b9bece784a52ae1411f9506544b3eae36dd2356d50"
dependencies = [
"arrayvec",
"num-traits",
]
[[package]]
name = "rustc-demangle"
version = "0.1.24"