diff --git a/.forgejo/actions/create-docker-manifest/action.yml b/.forgejo/actions/create-docker-manifest/action.yml
index a04df94d7..a5151f9fa 100644
--- a/.forgejo/actions/create-docker-manifest/action.yml
+++ b/.forgejo/actions/create-docker-manifest/action.yml
@@ -44,7 +44,7 @@ runs:
- name: Login to builtin registry
if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }}
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4
with:
registry: ${{ env.BUILTIN_REGISTRY }}
username: ${{ inputs.registry_user }}
diff --git a/.forgejo/actions/prepare-docker-build/action.yml b/.forgejo/actions/prepare-docker-build/action.yml
index 81d168e3f..baef6eb9f 100644
--- a/.forgejo/actions/prepare-docker-build/action.yml
+++ b/.forgejo/actions/prepare-docker-build/action.yml
@@ -79,7 +79,7 @@ runs:
- name: Login to builtin registry
if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }}
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4
with:
registry: ${{ env.BUILTIN_REGISTRY }}
username: ${{ inputs.registry_user }}
diff --git a/.forgejo/actions/sccache/action.yml b/.forgejo/actions/sccache/action.yml
index f84b4410e..3e0fbd540 100644
--- a/.forgejo/actions/sccache/action.yml
+++ b/.forgejo/actions/sccache/action.yml
@@ -7,7 +7,7 @@ runs:
using: composite
steps:
- name: Install sccache
- uses: https://git.tomfos.tr/tom/sccache-action@v1
+ uses: https://forgejo.ellis.link/continuwuation/sccache-action@b5ae5b4541ed5fb0f616e3cb616bf213fefa1c40 # v1
- name: Configure sccache
uses: https://github.com/actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
diff --git a/.forgejo/actions/setup-llvm-with-apt/action.yml b/.forgejo/actions/setup-llvm-with-apt/action.yml
index a24c9a8b3..4deec4493 100644
--- a/.forgejo/actions/setup-llvm-with-apt/action.yml
+++ b/.forgejo/actions/setup-llvm-with-apt/action.yml
@@ -29,7 +29,7 @@ runs:
steps:
- name: Detect runner OS
id: runner-os
- uses: https://git.tomfos.tr/actions/detect-versions@v1
+ uses: https://forgejo.ellis.link/continuwuation/detect-versions@d39555789fed25b8eb8e086d9f199c514dfa311e # v1
- name: Configure cross-compilation architecture
if: inputs.dpkg-arch != ''
diff --git a/.forgejo/actions/setup-rust/action.yml b/.forgejo/actions/setup-rust/action.yml
index 70b9f2892..a6d3988a5 100644
--- a/.forgejo/actions/setup-rust/action.yml
+++ b/.forgejo/actions/setup-rust/action.yml
@@ -39,7 +39,7 @@ runs:
steps:
- name: Detect runner OS
id: runner-os
- uses: https://git.tomfos.tr/actions/detect-versions@v1
+ uses: https://forgejo.ellis.link/continuwuation/detect-versions@d39555789fed25b8eb8e086d9f199c514dfa311e # v1
- name: Configure Cargo environment
shell: bash
@@ -147,7 +147,7 @@ runs:
run: echo "::group::📦 Restoring build cache"
- name: Setup sccache
- uses: https://git.tomfos.tr/tom/sccache-action@v1
+ uses: https://forgejo.ellis.link/continuwuation/sccache-action@b5ae5b4541ed5fb0f616e3cb616bf213fefa1c40 # v1
- name: End build cache restore group
shell: bash
diff --git a/.forgejo/actions/timelord/action.yml b/.forgejo/actions/timelord/action.yml
index b03254be0..ab1746a57 100644
--- a/.forgejo/actions/timelord/action.yml
+++ b/.forgejo/actions/timelord/action.yml
@@ -71,7 +71,7 @@ runs:
- name: Install timelord-cli and git-warp-time
if: steps.check-binaries.outputs.need-install == 'true'
- uses: https://github.com/taiki-e/install-action@1168f6810a3cb30a3514bf5756a3b7f0422c6df8 # v2
+ uses: https://github.com/taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 # v2
with:
tool: git-warp-time,timelord-cli@3.0.1
diff --git a/.forgejo/workflows/auto-labeler.yml b/.forgejo/workflows/auto-labeler.yml
index 71b59eb19..af345b215 100644
--- a/.forgejo/workflows/auto-labeler.yml
+++ b/.forgejo/workflows/auto-labeler.yml
@@ -4,11 +4,6 @@ on:
pull_request_target:
types: [opened, reopened]
-permissions:
- contents: read
- pull-requests: write
- issues: write
-
jobs:
auto-label:
name: Apply labels based on changed files
diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml
index 8e3094cff..15440b653 100644
--- a/.forgejo/workflows/build-debian.yml
+++ b/.forgejo/workflows/build-debian.yml
@@ -60,7 +60,7 @@ jobs:
cargo-debian-${{ steps.debian-version.outputs.distribution }}-${{ matrix.arch }}-
- name: Setup sccache
- uses: https://git.tomfos.tr/tom/sccache-action@v1
+ uses: https://forgejo.ellis.link/continuwuation/sccache-action@b5ae5b4541ed5fb0f616e3cb616bf213fefa1c40 # v1
- name: Configure sccache environment
run: |
diff --git a/.forgejo/workflows/build-nix.yml b/.forgejo/workflows/build-nix.yml
index ee16f0d25..6370e8ec7 100644
--- a/.forgejo/workflows/build-nix.yml
+++ b/.forgejo/workflows/build-nix.yml
@@ -54,8 +54,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
- permissions:
- contents: write
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binary artifacts
@@ -65,7 +63,7 @@ jobs:
path: binaries
merge-multiple: true
- name: Create Release and Upload
- uses: https://github.com/softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
+ uses: https://github.com/softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3
with:
draft: true
files: binaries/*
diff --git a/.forgejo/workflows/check-changelog.yml b/.forgejo/workflows/check-changelog.yml
index eb4ecb66a..c67fc9de2 100644
--- a/.forgejo/workflows/check-changelog.yml
+++ b/.forgejo/workflows/check-changelog.yml
@@ -4,11 +4,6 @@ on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
-permissions:
- contents: read
- pull-requests: write
- issues: write
-
jobs:
check-changelog:
name: Check changelog is added
diff --git a/.forgejo/workflows/documentation.yml b/.forgejo/workflows/documentation.yml
index d6113a210..57cfb3de7 100644
--- a/.forgejo/workflows/documentation.yml
+++ b/.forgejo/workflows/documentation.yml
@@ -28,13 +28,13 @@ jobs:
- name: Detect runner environment
id: runner-env
- uses: https://git.tomfos.tr/actions/detect-versions@v1
+ uses: https://forgejo.ellis.link/continuwuation/detect-versions@d39555789fed25b8eb8e086d9f199c514dfa311e # v1
- name: Setup Node.js
if: steps.runner-env.outputs.node_major == '' || steps.runner-env.outputs.node_major < '20'
uses: https://github.com/actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
- node-version: 24
+ node-version: 26
- name: Cache npm dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
@@ -49,6 +49,8 @@ jobs:
run: npm ci
- name: Build Rspress documentation
+ env:
+ SITE_PATH: ${{ github.ref != 'refs/heads/main' && format('/pr/{0}/', '${{ forgejo.event.number }}') || '/' }}
run: npm run docs:build
- name: Install Wrangler
@@ -62,10 +64,16 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy ./doc_build --branch="main" --commit-dirty=true --project-name="${{ vars.CLOUDFLARE_PROJECT_NAME }}"
- - name: Deploy to Cloudflare Pages (Preview)
- if: github.ref != 'refs/heads/main' && vars.CLOUDFLARE_PROJECT_NAME != ''
- uses: https://github.com/cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4
+ - name: Deploy to Grebedoc (Preview)
+ if: github.ref != 'refs/heads/main'
+ uses: actions/git-pages@v2
with:
- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- command: pages deploy ./doc_build --branch="${{ github.head_ref || github.ref_name }}" --commit-dirty=true --project-name="${{ vars.CLOUDFLARE_PROJECT_NAME }}"
+ site: https://preview.continuwuity.org
+ path: "pr/${{ forgejo.event.number }}"
+ server: grebedoc.dev
+ token: ${{ forgejo.token }}
+ source: doc_build/
+ strict: true
+ pretty-urls: true
+ expires: 14
+ comment: ${{ forgejo.sha }}
diff --git a/.forgejo/workflows/prek-checks.yml b/.forgejo/workflows/prek-checks.yml
index 6c00a7e35..64f3f623e 100644
--- a/.forgejo/workflows/prek-checks.yml
+++ b/.forgejo/workflows/prek-checks.yml
@@ -7,10 +7,6 @@ on:
- main
workflow_dispatch:
-permissions:
- contents: read
- pull-requests: read
-
jobs:
fast-checks:
name: Pre-commit & Formatting
diff --git a/.forgejo/workflows/release-image.yml b/.forgejo/workflows/release-image.yml
index 6673755d2..2c669ab8b 100644
--- a/.forgejo/workflows/release-image.yml
+++ b/.forgejo/workflows/release-image.yml
@@ -31,11 +31,6 @@ jobs:
build-release:
name: "Build ${{ matrix.slug }} (release)"
runs-on: dind
- permissions:
- contents: read
- packages: write
- attestations: write
- id-token: write
strategy:
matrix:
include:
@@ -84,6 +79,7 @@ jobs:
outputs: |
${{ env.BUILTIN_REGISTRY_ENABLED == 'true' && format('type=image,"name={0}",push-by-digest=true,name-canonical=true,push=true', env.IMAGE_PATH) || format('type=image,"name={0}",push=false', env.IMAGE_PATH) }}
type=local,dest=/tmp/binaries
+ pull: true # Base images were becoming out of date
env:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
- name: Upload Docker artifacts
@@ -117,11 +113,6 @@ jobs:
name: "Build ${{ matrix.slug }} (max-perf)"
runs-on: dind
needs: build-release
- permissions:
- contents: read
- packages: write
- attestations: write
- id-token: write
strategy:
matrix:
include:
@@ -172,6 +163,7 @@ jobs:
outputs: |
${{ env.BUILTIN_REGISTRY_ENABLED == 'true' && format('type=image,"name={0}",push-by-digest=true,name-canonical=true,push=true', env.IMAGE_PATH) || format('type=image,"name={0}",push=false', env.IMAGE_PATH) }}
type=local,dest=/tmp/binaries
+ pull: true # Base images were becoming out of date
env:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
- name: Upload max-perf Docker artifacts
@@ -207,8 +199,6 @@ jobs:
needs:
- build-release
- build-maxperf
- permissions:
- contents: write
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binary artifacts
@@ -218,7 +208,7 @@ jobs:
path: binaries
merge-multiple: true
- name: Create Release and Upload
- uses: https://github.com/softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
+ uses: https://github.com/softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3
with:
draft: true
files: binaries/*
diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml
index d9e688b05..b2ba0212b 100644
--- a/.forgejo/workflows/renovate.yml
+++ b/.forgejo/workflows/renovate.yml
@@ -43,7 +43,7 @@ jobs:
name: Renovate
runs-on: ubuntu-latest
container:
- image: ghcr.io/renovatebot/renovate:44.151.2@sha256:29b3bf193f855c6f4b7027395a9c66c3417ad8bb6f30458090e1c2363d04eef7
+ image: ghcr.io/renovatebot/renovate:44.257.9@sha256:578179439fceea89646662dd583b27efdad8d1429e0cbd90681c40dde068589e
options: --tmpfs /tmp:exec
steps:
- name: Checkout
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index 74805ccd4..8c42d4f7b 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -7,6 +7,7 @@ f419c64aca300a338096b4e0db4c73ace54f23d0
5998a0d883d31b866f7c8c46433a8857eae51a89
# trailing whitespace and newlines
46c193e74b2ce86c48ce802333a0aabce37fd6e9
-# rustfmt update that rewrapped tons of comments
+# rustfmt updates that rewrapped tons of comments
9fbabe221051e6956a05d8824142092ede68971e
b0c0905472b882ff0cc79232e73d307fd0b5035b
+9c27441acf2e65f85c106ccff5c6b6c37030ddca
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index f4fdf4d4f..d28e9584d 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,3 +1,4 @@
+open_collective: continuwuity
github: [JadedBlueEyes, timedoutuk, gingershaped]
custom:
- https://timedout.uk/donate.html
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1e74825c4..76c5ef022 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
- id: check-added-large-files
- repo: https://github.com/crate-ci/typos
- rev: v1.51.1
+ rev: v1.52.2
hooks:
- id: typos
- id: typos
@@ -32,7 +32,7 @@ repos:
stages: [ commit-msg ]
- repo: https://github.com/crate-ci/committed
- rev: v1.1.11
+ rev: v1.1.12
hooks:
- id: committed
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 53645d5df..05fe334da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,154 @@
+# Continuwuity v26.11.0-alpha.2 (2026-11-14)
+
+## Features
+
+- Added opt-in OpenTelemetry metrics, exported over OTLP or scraped by Prometheus from `/_continuwuity/metrics`, and a Grafana dashboard. Contributed by @eleboucher. (prometheus-metrics)
+- Add support for using custom DNS servers instead of using /etc/resolv.conf. Contributed by @s1lv3r. ([#2056](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2056))
+- Continuwuity now supports configuring additional trusted audience values for deployments using OIDC with an IDP that sends them. Contributed by @ginger ([#2226](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2226))
+- "!admin users list" now hides deactivated users by default, but can display them with the optional "--show-deactivated" flag. "--hide-suspended" and "--hide-locked" have been added as well, which stop suspended and locked users from being displayed respectively. Contributed by @Clubs. ([#2292](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2292))
+- Added support for [MSC4494: Membership-based invite blocking](https://github.com/matrix-org/matrix-spec-proposals/pull/4494) ([#2297](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2297))
+- Appservices now receive typing indicators and read receipts. Contributed by @Jade ([#2327](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2327))
+- Added support for servers returning 410 gone to indicate they are no longer serving a Matrix server ([MSC4188](https://github.com/matrix-org/matrix-spec-proposals/pull/4188)). Contributed by @nex and @silversys ([#2355](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2355))
+- Changed the policy on unstable features, disabling most by default and making them configurable in a tidy little `experiments` configuration. See also: #1884. ([#2517](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2517))
+- Added support for [MSC4363](https://github.com/matrix-org/matrix-spec-proposals/pull/4363) (OAuth step-up authentication). Contributed by @ginger.
+- Added support for [MSC2815](https://github.com/matrix-org/matrix-spec-proposals/pull/2815), allowing room moderators to fetch the original content of redacted events, behind the `allow_moderators_to_view_redacted_content` config option. Contributed by @eleboucher.
+- Added support for [MSC4484](https://github.com/matrix-org/matrix-spec-proposals/pull/4484). Clients which use the built-in Matrix server administration APIs will need to ask for the appropriate scope when signing in with OAuth. Contributed by @ginger.
+- Check content-type header on federation responses, ignoring any that don't match (spec compliance)
+- Implemented unstable support for [MSC4560] (Stripped state requests over federation). Contributed by @ginger.
+
+ [MSC4560]: https://github.com/matrix-org/matrix-spec-proposals/pull/4560
+- Profile banners are now treated as images when imported from OIDC claims, like avatars already were.
+- Remove support for legacy, unauthenticated media, including the `allow_legacy_media` and `freeze_legacy_media` options.
+- The first-run version of the web UI now includes a link to the registration page. Contributed by @ginger
+
+## Bugfixes
+
+- Fixed `/get_missing_events` rejecting requests with more `earliest_events` than the `limit`. Contributed by @eleboucher. (get-missing-events-earliest-limit)
+- Invitees are now added as room creators when creating a v12+ trusted private chat. Contributed by @ginger. ([#2162](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2162))
+- Fixed push gateway URLs containing the configured notification path outside of their suffix. Contributed by @eleboucher. ([#2261](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2261))
+- "!admin users change-email" now verifies a user exists before attempting to change their email. Contributed by @Clubs. ([#2298](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2298))
+- Fixed URL preview image MIME types and rejected failed downloads. Contributed by @eleboucher. ([#2308](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2308))
+- Correctly set RocksDB column options, including enabling block caches. Contributed by @Jade ([#2345](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2345))
+- Fix some possible deadlocks/freezes and reduce lock contention (improving performance). Contributed by @Jade ([#2351](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2351))
+- Once again fixed how room extremities are handled, fixing a problem that made continuwuity gradually make rooms needlessly complex, which also caused more frequent state resets. ([#2356](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2356))
+- The OAuth identity reset page is no longer linked from the account management UI to reduce confusion. Contributed by @ginger. ([#2383](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2383))
+- Fixed a worker panic when knocking on a room over federation. Contributed by @eleboucher. ([#2387](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2387))
+- Perform more validation on events received during atomic gapfill from remote servers, fixing a panic if bad data was persisted by another server and later lazily fetched by us. ([#2400](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2400))
+- Redirect URIs in OAuth clients' metadata are now properly validated to be on a subdomain of the OAuth issuer URL domain. Contributed by @ginger. ([#2421](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2421))
+- Fix v12 rooms created by the same user in the same millisecond ending up as the same room. Contributed by @eleboucher. ([#2424](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2424))
+- Client-server API endpoints are now properly ratelimited for unauthenticated requests. Contributed by @ginger. ([#2444](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2444))
+- Setting a profile key longer than 255 bytes now returns 400 `M_KEY_TOO_LARGE` as required by the spec, instead of 413 `M_TOO_LARGE`. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Setting `m.fully_read` via the account data endpoints now returns 405 `M_BAD_JSON` as required by the spec, instead of 400. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Appservices masquerading as a device that does not exist now receive 400 `M_UNKNOWN_DEVICE` as required by the spec, instead of 403 `M_FORBIDDEN`. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Setting profile data that would make the profile exceed 64 KiB now returns 400 `M_PROFILE_TOO_LARGE` as required by the spec, instead of a 500 error. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- The `m.forget_forced_upon_leave` capability now reflects the `forget_forced_upon_leave` config option instead of always being advertised as enabled. ([#2452](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2452))
+- Fixed push notifications for membership events setting `user_is_target` based on the sender rather than the user being notified. ([#2454](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2454))
+- Ensure HTTP clients actually follow the `dns_servers` config option. Contributed by @silversys ([#2460](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2460))
+- Reworked event relations to follow the spec more closely. Pagination of `/relations` now returns the correct pages and `next_batch` tokens, recursive relations are returned in the right order without duplicates, and bundled `m.reference` aggregations now include every reference. Contributed by @Henry-Hiles (QuadRadical). ([#2465](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2465))
+- Read receipts are now more spec compliant, will work better in threads and are less likely to end up causing loops with other software. Contributed by @Jade ([#2481](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2481))
+- Fix the DNS resolver failing to start without `/etc/resolv.conf` when `dns_servers` is configured. Contributed by @eleboucher. ([#2495](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2495))
+- Fixed OIDC logins failing after the identity provider rotates its signing keys. Contributed by @eleboucher. ([#2497](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2497))
+- Creating a room with valid but non-canonical JSON now returns `400 M_BAD_JSON` instead of panicking the worker and returning `500 M_UNKNOWN`.
+- Fix account data updates sent at the same time leaving old copies behind, which every initial sync then returned. Existing copies are removed on startup. Contributed by @eleboucher.
+- Fix gap filling skipping outlier events that are missing their previous events. Contributed by @eleboucher.
+- Fix incoming federation events losing state changes when predecessors share the same state-before snapshot. Contributed by @eleboucher.
+- Fix new devices sometimes never reaching other users' device lists. Contributed by @eleboucher.
+- Fix state resolution applying events out of order, which could undo room joins. Contributed by @eleboucher.
+- Fix to-device messages, including room keys, sometimes being lost before delivery. Contributed by @eleboucher.
+- For deployments using OIDC with `profile_key_import_mode` set to `on_login`, users' avatars will no longer be clobbered if they didn't change their avatar since their last login.
+- Joining a local room the user is not allowed to join now returns `403 M_FORBIDDEN` instead of `500 M_UNKNOWN` when there are no other servers to try.
+- Room summary visibility checks are no longer incorrectly applied for remote rooms. Contributed by @ginger.
+- The userinfo endpoint is now accessible even if federation is disabled, allowing LiveKit to be used on servers with federation disabled without using the server name whitelist.
+- `!admin token issue` can no longer issue registration tokens when `allow_registration` is false. Contributed by @Clubs.
+
+## Improved Documentation
+
+- Add the Authentication section to document available auth methods for Continuwuity. The "delegated authentication" guide has also been migrated to here. Contributed by @stratself. ([#2234](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2234))
+- Add a guide for push notifications, detailing how it works, push gateway specifics, troubleshooting common issues, and pointing to external guides for UnifiedPush backends. Contributed by @stratself ([#2244](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2244))
+- The deploying page now includes vital general information about installing Continuwuity: release tracks, update steps, and post-installation recommendations. Contributed by @stratself ([#2252](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2252))
+- Add some missing instructions on configuring Continuwuity on the RPM page. Users are encouraged to use the [generic deploying docs](https://continuwuity.org/deploying/generic) for the bulk of guidance anyhow. Contributed by @stratself ([#2275](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2275))
+- Better, more succinct [introduction page](https://continuwuity.org/introduction.html). Contributed by @stratself ([#2279](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2279))
+- Add a section on [troubleshooting Docker issues](https://continuwuity.org/troubleshooting#docker-issues). Contributed by @stratself. ([#2324](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2324))
+- Instructions for Authelia added to the [OIDC guide](https://continuwuity.org/authentication/oidc.html). Contributed by @fhoekstra ([#2341](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2341))
+- Docker compose examples now use bind mounts by default, instead of Docker volumes, as they are easier to work with esp. for backup/restore. Contributed by @stratself. ([#2353](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2353))
+- The documentation now refers to the Continuwuity Docker service as `continuwuity` instead of `homeserver`.
+
+## Misc
+
+- Updated internal Sentry integration setup to the new pattern required by the SDK. #2423
+- Upgraded rocksdb from 11.1.1 to 11.12.0 and jemalloc to 5.4.0.
+
+
+# Continuwuity v26.11.0-alpha.1 (2026-11-10)
+
+## Features
+
+- Added opt-in OpenTelemetry metrics, exported over OTLP or scraped by Prometheus from `/_continuwuity/metrics`, and a Grafana dashboard. Contributed by @eleboucher. (prometheus-metrics)
+- Add support for using custom DNS servers instead of using /etc/resolv.conf. Contributed by @s1lv3r. ([#2056](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2056))
+- Continuwuity now supports configuring additional trusted audience values for deployments using OIDC with an IDP that sends them. Contributed by @ginger ([#2226](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2226))
+- "!admin users list" now hides deactivated users by default, but can display them with the optional "--show-deactivated" flag. "--hide-suspended" and "--hide-locked" have been added as well, which stop suspended and locked users from being displayed respectively. Contributed by @Clubs. ([#2292](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2292))
+- Added support for [MSC4494: Membership-based invite blocking](https://github.com/matrix-org/matrix-spec-proposals/pull/4494) ([#2297](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2297))
+- Appservices now receive typing indicators and read receipts. Contributed by @Jade ([#2327](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2327))
+- Added support for [MSC4363](https://github.com/matrix-org/matrix-spec-proposals/pull/4363) (OAuth step-up authentication). Contributed by @ginger.
+- Added support for [MSC4484](https://github.com/matrix-org/matrix-spec-proposals/pull/4484). Clients which use the built-in Matrix server administration APIs will need to ask for the appropriate scope when signing in with OAuth. Contributed by @ginger.
+- Implemented unstable support for [MSC4560] (Stripped state requests over federation). Contributed by @ginger.
+
+ [MSC4560]: https://github.com/matrix-org/matrix-spec-proposals/pull/4560
+- Profile banners are now treated as images when imported from OIDC claims, like avatars already were.
+- The first-run version of the web UI now includes a link to the registration page. Contributed by @ginger
+
+## Bugfixes
+
+- Invitees are now added as room creators when creating a v12+ trusted private chat. Contributed by @ginger. ([#2162](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2162))
+- Fixed push gateway URLs containing the configured notification path outside of their suffix. Contributed by @eleboucher. ([#2261](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2261))
+- "!admin users change-email" now verifies a user exists before attempting to change their email. Contributed by @Clubs. ([#2298](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2298))
+- Fixed URL preview image MIME types and rejected failed downloads. Contributed by @eleboucher. ([#2308](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2308))
+- Correctly set RocksDB column options, including enabling block caches. Contributed by @Jade ([#2345](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2345))
+- Fix some possible deadlocks/freezes and reduce lock contention (improving performance). Contributed by @Jade ([#2351](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2351))
+- Once again fixed how room extremities are handled, fixing a problem that made continuwuity gradually make rooms needlessly complex, which also caused more frequent state resets. ([#2356](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2356))
+- The OAuth identity reset page is no longer linked from the account management UI to reduce confusion. Contributed by @ginger. ([#2383](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2383))
+- Fixed a worker panic when knocking on a room over federation. Contributed by @eleboucher. ([#2387](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2387))
+- Perform more validation on events received during atomic gapfill from remote servers, fixing a panic if bad data was persisted by another server and later lazily fetched by us. ([#2400](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2400))
+- Redirect URIs in OAuth clients' metadata are now properly validated to be on a subdomain of the OAuth issuer URL domain. Contributed by @ginger. ([#2421](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2421))
+- Fix v12 rooms created by the same user in the same millisecond ending up as the same room. Contributed by @eleboucher. ([#2424](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2424))
+- Client-server API endpoints are now properly ratelimited for unauthenticated requests. Contributed by @ginger. ([#2444](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2444))
+- Setting a profile key longer than 255 bytes now returns 400 `M_KEY_TOO_LARGE` as required by the spec, instead of 413 `M_TOO_LARGE`. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Setting `m.fully_read` via the account data endpoints now returns 405 `M_BAD_JSON` as required by the spec, instead of 400. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Appservices masquerading as a device that does not exist now receive 400 `M_UNKNOWN_DEVICE` as required by the spec, instead of 403 `M_FORBIDDEN`. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- Setting profile data that would make the profile exceed 64 KiB now returns 400 `M_PROFILE_TOO_LARGE` as required by the spec, instead of a 500 error. ([#2451](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2451))
+- The `m.forget_forced_upon_leave` capability now reflects the `forget_forced_upon_leave` config option instead of always being advertised as enabled. ([#2452](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2452))
+- Fixed push notifications for membership events setting `user_is_target` based on the sender rather than the user being notified. ([#2454](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2454))
+- Ensure HTTP clients actually follow the `dns_servers` config option. Contributed by @silversys ([#2460](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2460))
+- Reworked event relations to follow the spec more closely. Pagination of `/relations` now returns the correct pages and `next_batch` tokens, recursive relations are returned in the right order without duplicates, and bundled `m.reference` aggregations now include every reference. Contributed by @Henry-Hiles (QuadRadical). ([#2465](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2465))
+- Read receipts are now more spec compliant, will work better in threads and are less likely to end up causing loops with other software. Contributed by @Jade ([#2481](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2481))
+- Fix gap filling skipping outlier events that are missing their previous events. Contributed by @eleboucher.
+- Fix incoming federation events losing state changes when predecessors share the same state-before snapshot. Contributed by @eleboucher.
+- Fix new devices sometimes never reaching other users' device lists. Contributed by @eleboucher.
+- Fix state resolution applying events out of order, which could undo room joins. Contributed by @eleboucher.
+- Fix to-device messages, including room keys, sometimes being lost before delivery. Contributed by @eleboucher.
+- For deployments using OIDC with `profile_key_import_mode` set to `on_login`, users' avatars will no longer be clobbered if they didn't change their avatar since their last login.
+- Room summary visibility checks are no longer incorrectly applied for remote rooms. Contributed by @ginger.
+- The userinfo endpoint is now accessible even if federation is disabled, allowing LiveKit to be used on servers with federation disabled without using the server name whitelist.
+- `!admin token issue` can no longer issue registration tokens when `allow_registration` is false. Contributed by @Clubs.
+
+## Improved Documentation
+
+- Add the Authentication section to document available auth methods for Continuwuity. The "delegated authentication" guide has also been migrated to here. Contributed by @stratself. ([#2234](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2234))
+- Add a guide for push notifications, detailing how it works, push gateway specifics, troubleshooting common issues, and pointing to external guides for UnifiedPush backends. Contributed by @stratself ([#2244](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2244))
+- The deploying page now includes vital general information about installing Continuwuity: release tracks, update steps, and post-installation recommendations. Contributed by @stratself ([#2252](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2252))
+- Add some missing instructions on configuring Continuwuity on the RPM page. Users are encouraged to use the [generic deploying docs](https://continuwuity.org/deploying/generic) for the bulk of guidance anyhow. Contributed by @stratself ([#2275](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2275))
+- Better, more succinct [introduction page](https://continuwuity.org/introduction.html). Contributed by @stratself ([#2279](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2279))
+- Add a section on [troubleshooting Docker issues](https://continuwuity.org/troubleshooting#docker-issues). Contributed by @stratself. ([#2324](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2324))
+- Instructions for Authelia added to the [OIDC guide](https://continuwuity.org/authentication/oidc.html). Contributed by @fhoekstra ([#2341](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2341))
+- Docker compose examples now use bind mounts by default, instead of Docker volumes, as they are easier to work with esp. for backup/restore. Contributed by @stratself. ([#2353](https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2353))
+- The documentation now refers to the Continuwuity Docker service as `continuwuity` instead of `homeserver`.
+
+## Misc
+
+- Updated internal Sentry integration setup to the new pattern required by the SDK. #2423
+- Upgraded rocksdb from 11.1.1 to 11.12.0 and jemalloc to 5.4.0.
+
+
# Continuwuity v26.9.1 (2026-09-28)
## Features
diff --git a/Cargo.lock b/Cargo.lock
index a718f824f..750117b4f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "addr2line"
-version = "0.25.1"
+version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b"
+checksum = "e567177890eb1617b1f774005b66b26b2377afd138a2ca37aae7d8f0c81429d4"
dependencies = [
"gimli",
]
@@ -23,7 +23,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"
dependencies = [
- "crypto-common 0.1.6",
+ "crypto-common 0.1.7",
"generic-array",
]
@@ -61,34 +61,19 @@ dependencies = [
"memchr",
]
-[[package]]
-name = "alloc-no-stdlib"
-version = "2.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
-
[[package]]
name = "alloc-no-stdlib"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
-[[package]]
-name = "alloc-stdlib"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195"
-dependencies = [
- "alloc-no-stdlib 2.0.4",
-]
-
[[package]]
name = "alloc-stdlib"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"
dependencies = [
- "alloc-no-stdlib 3.0.0",
+ "alloc-no-stdlib",
]
[[package]]
@@ -108,22 +93,22 @@ dependencies = [
[[package]]
name = "annotate-snippets"
-version = "0.12.16"
+version = "0.12.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1"
+checksum = "b2a5b0a5ab8561c603f16c3b78c24a386b1f70e7fc1b1b1e8c15738828e4a176"
dependencies = [
"anstyle",
"memchr",
- "unicode-width 0.2.2",
+ "unicode-width 0.2.3",
]
[[package]]
name = "ansi-width"
-version = "0.1.0"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219e3ce6f2611d83b51ec2098a12702112c29e57203a6b0a0929b2cddb486608"
+checksum = "90759a65f5178dbbd1b0eecc97b187996401bced0eb4a943d9ac6d7a6304d111"
dependencies = [
- "unicode-width 0.1.14",
+ "unicode-width 0.2.3",
]
[[package]]
@@ -140,9 +125,9 @@ checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
[[package]]
name = "arc-swap"
-version = "1.9.2"
+version = "1.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c049c0be4daef0b145cb3555416b3b8ef5b7888a38aea1a3a155801fe7b0810b"
+checksum = "db4c94f57a570fce5d381be3289b3f79aef6332d72948fe82ab5772e423ccf92"
dependencies = [
"rustversion",
]
@@ -208,7 +193,7 @@ dependencies = [
"rustc-hash",
"serde",
"serde_derive",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -230,7 +215,7 @@ dependencies = [
"serde",
"serde_derive",
"unicode-ident",
- "winnow 1.0.4",
+ "winnow 1.0.5",
]
[[package]]
@@ -252,9 +237,9 @@ dependencies = [
[[package]]
name = "async-compression"
-version = "0.4.46"
+version = "0.4.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f10dafd0c8d2e51ae9a748805777613ed0bbe17bf586b76c8311f45c020a32f"
+checksum = "6ad47a740fb906fffdd891e8b6d5fde2511600f7bfaebd68939fa08a14999459"
dependencies = [
"compression-codecs",
"compression-core",
@@ -270,7 +255,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -296,9 +281,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "aws-lc-rs"
-version = "1.18.1"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b281d307588d634de920874890732659e2e7672f72b5e10e81badc1a8a83621e"
+checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53"
dependencies = [
"aws-lc-sys",
"zeroize",
@@ -306,9 +291,9 @@ dependencies = [
[[package]]
name = "aws-lc-sys"
-version = "0.45.0"
+version = "0.47.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9bff6c3b54fad79a2e60b8102caf565819711497c1f5f092f49508e2f5c31b27"
+checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52"
dependencies = [
"cc",
"cmake",
@@ -446,14 +431,14 @@ dependencies = [
[[package]]
name = "backtrace"
-version = "0.3.76"
+version = "0.3.77"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6"
+checksum = "42f4220217f3288537b83684130f42fad43320b1c3b805f1910d683d52ded24f"
dependencies = [
"addr2line",
"cfg-if",
"libc",
- "miniz_oxide 0.8.9",
+ "miniz_oxide 0.9.1",
"object",
"rustc-demangle",
"windows-link",
@@ -466,10 +451,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
[[package]]
-name = "base64"
-version = "0.21.7"
+name = "base16ct"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6"
[[package]]
name = "base64"
@@ -500,28 +485,21 @@ dependencies = [
[[package]]
name = "bindgen"
-version = "0.72.1"
+version = "0.73.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
+checksum = "787ef8ef523575546b106a58213d6e6b06198a05c2f757258c68a74273670cfa"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"cexpr",
"clang-sys",
- "itertools 0.13.0",
"proc-macro2",
"quote",
"regex",
"rustc-hash",
- "shlex 1.3.0",
+ "shlex",
"syn 2.0.119",
]
-[[package]]
-name = "bitflags"
-version = "1.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
-
[[package]]
name = "bitflags"
version = "2.13.2"
@@ -566,44 +544,23 @@ dependencies = [
[[package]]
name = "brotli"
-version = "8.0.4"
+version = "9.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3"
+checksum = "627b7cfb0578f0eafce087a90fcd40add1231900b69e4d4de2d456260a4f5d81"
dependencies = [
- "alloc-no-stdlib 2.0.4",
- "alloc-stdlib 0.2.4",
- "brotli-decompressor 5.0.3",
-]
-
-[[package]]
-name = "brotli"
-version = "9.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b"
-dependencies = [
- "alloc-no-stdlib 3.0.0",
- "alloc-stdlib 0.3.0",
- "brotli-decompressor 6.0.0",
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+ "brotli-decompressor",
]
[[package]]
name = "brotli-decompressor"
-version = "5.0.3"
+version = "6.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583"
+checksum = "97d9071e5b45944c5a9c06baf13a7a65ffa2c88c204015967852c90869692c05"
dependencies = [
- "alloc-no-stdlib 2.0.4",
- "alloc-stdlib 0.2.4",
-]
-
-[[package]]
-name = "brotli-decompressor"
-version = "6.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46087801e40b785410c352bee60e9b6226312709cf52d5fff92776cdf5cf6490"
-dependencies = [
- "alloc-no-stdlib 3.0.0",
- "alloc-stdlib 0.3.0",
+ "alloc-no-stdlib",
+ "alloc-stdlib",
]
[[package]]
@@ -647,9 +604,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
[[package]]
name = "bytes"
-version = "1.12.1"
+version = "1.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c"
[[package]]
name = "bytesize"
@@ -668,10 +625,16 @@ dependencies = [
]
[[package]]
-name = "camino"
-version = "1.2.5"
+name = "cache_control"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d"
+checksum = "1bf2a5fb3207c12b5d208ebc145f967fea5cac41a021c37417ccc31ba40f39ee"
+
+[[package]]
+name = "camino"
+version = "1.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591"
dependencies = [
"serde_core",
]
@@ -708,19 +671,19 @@ checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"
dependencies = [
"semver",
"serde",
- "toml 1.1.6+spec-1.1.0",
+ "toml 1.2.2+spec-1.1.0",
]
[[package]]
name = "cc"
-version = "1.4.6"
+version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4"
+checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155"
dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
- "shlex 2.0.1",
+ "shlex",
]
[[package]]
@@ -734,9 +697,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "cfg_aliases"
@@ -784,7 +747,7 @@ version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
dependencies = [
- "crypto-common 0.1.6",
+ "crypto-common 0.1.7",
"inout",
]
@@ -796,14 +759,14 @@ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
dependencies = [
"glob",
"libc",
- "libloading 0.8.9",
+ "libloading",
]
[[package]]
name = "clap"
-version = "4.6.7"
+version = "4.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
+checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c"
dependencies = [
"clap_builder",
"clap_derive",
@@ -821,21 +784,21 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.6.7"
+version = "4.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
+checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
dependencies = [
"heck",
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
name = "clap_lex"
-version = "1.1.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
+checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
[[package]]
name = "client-ip"
@@ -869,9 +832,9 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
[[package]]
name = "combine"
-version = "4.6.8"
+version = "4.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e"
+checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92"
dependencies = [
"bytes",
"memchr",
@@ -879,11 +842,11 @@ dependencies = [
[[package]]
name = "compression-codecs"
-version = "0.4.41"
+version = "0.4.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58a6d0db8759036a783bc7c3f7a07f8cef3bf9470eb1db3bc86e8bcd1c5d0fe8"
+checksum = "84f840cff84d10085260e460023934d0af699e71212b09b2a41452e8bd9cda43"
dependencies = [
- "brotli 8.0.4",
+ "brotli",
"compression-core",
"flate2",
"memchr",
@@ -893,9 +856,9 @@ dependencies = [
[[package]]
name = "compression-core"
-version = "0.4.33"
+version = "0.4.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e8ccc4ea9f6acc32d102c0f6d471d11d913ad15f20c04de743374861fa1d414"
+checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a"
[[package]]
name = "concurrent-queue"
@@ -908,15 +871,11 @@ dependencies = [
[[package]]
name = "conduwuit"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
- "aws-lc-rs",
"clap",
- "conduwuit_admin",
- "conduwuit_api",
"conduwuit_build_metadata",
"conduwuit_core",
- "conduwuit_database",
"conduwuit_macros",
"conduwuit_router",
"conduwuit_service",
@@ -924,8 +883,6 @@ dependencies = [
"const-str",
"ctor",
"dtor",
- "hardened_malloc-rs",
- "log",
"opentelemetry",
"opentelemetry-otlp",
"opentelemetry-prometheus",
@@ -933,13 +890,10 @@ dependencies = [
"opentelemetry_sdk",
"parking_lot",
"prometheus",
- "reqwest 0.13.5",
"rustls",
"sentry",
- "sentry-tower",
"sentry-tracing",
"tokio",
- "tokio-metrics",
"tracing",
"tracing-flame",
"tracing-journald",
@@ -949,7 +903,7 @@ dependencies = [
[[package]]
name = "conduwuit_admin"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"clap",
"conduwuit_api",
@@ -962,7 +916,6 @@ dependencies = [
"dtor",
"futures",
"lettre",
- "log",
"resolvematrix",
"ruma",
"serde-saphyr",
@@ -974,7 +927,7 @@ dependencies = [
[[package]]
name = "conduwuit_api"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"axum",
"base64 0.23.1",
@@ -993,8 +946,7 @@ dependencies = [
"hyper",
"itertools 0.15.0",
"lettre",
- "log",
- "rand 0.10.3",
+ "rand 0.10.4",
"reqwest 0.13.5",
"ruma",
"ruminuwuity",
@@ -1003,11 +955,12 @@ dependencies = [
"sha1 0.11.0",
"tokio",
"tracing",
+ "wildmatch",
]
[[package]]
name = "conduwuit_build_metadata"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"built",
"cargo_metadata",
@@ -1015,7 +968,7 @@ dependencies = [
[[package]]
name = "conduwuit_core"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"argon2",
"arrayvec",
@@ -1037,17 +990,17 @@ dependencies = [
"either",
"figment",
"futures",
- "hardened_malloc-rs",
+ "governor",
"http",
"http-body-util",
"hyper-util",
"ipaddress",
"lettre",
"libc",
- "libloading 0.9.0",
- "lock_api",
- "log",
+ "libmimalloc-sys",
+ "lock_api 0.5.0",
"maplit",
+ "mimalloc",
"nix",
"num-traits",
"openidconnect",
@@ -1057,7 +1010,7 @@ dependencies = [
"opentelemetry_sdk",
"parking_lot",
"prometheus",
- "rand 0.10.3",
+ "rand 0.10.4",
"regex",
"reqwest 0.13.5",
"resolvematrix",
@@ -1067,7 +1020,7 @@ dependencies = [
"serde-saphyr",
"serde_json",
"serde_regex",
- "sha2 0.11.0",
+ "sha2 0.11.1",
"smallstr",
"smallvec",
"thiserror 2.0.21",
@@ -1076,7 +1029,7 @@ dependencies = [
"tikv-jemallocator",
"tokio",
"tokio-metrics",
- "toml 1.1.6+spec-1.1.0",
+ "toml 1.2.2+spec-1.1.0",
"tracing",
"tracing-core",
"tracing-subscriber",
@@ -1085,7 +1038,7 @@ dependencies = [
[[package]]
name = "conduwuit_database"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"async-channel",
"conduwuit_core",
@@ -1094,7 +1047,6 @@ dependencies = [
"ctor",
"dtor",
"futures",
- "log",
"minicbor",
"minicbor-serde",
"rust-rocksdb",
@@ -1106,17 +1058,17 @@ dependencies = [
[[package]]
name = "conduwuit_macros"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"itertools 0.15.0",
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
name = "conduwuit_router"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"axum",
"axum-server",
@@ -1136,14 +1088,10 @@ dependencies = [
"http-body-util",
"hyper",
"hyper-util",
- "log",
"opentelemetry-instrumentation-tower",
"ruma",
- "rustls",
"sd-notify",
- "sentry",
"sentry-tower",
- "sentry-tracing",
"serde_json",
"tokio",
"tower",
@@ -1153,7 +1101,7 @@ dependencies = [
[[package]]
name = "conduwuit_service"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"askama",
"assign",
@@ -1179,22 +1127,26 @@ dependencies = [
"log",
"loole",
"lru-cache",
+ "mime",
"nonzero_ext",
"openidconnect",
- "p256",
- "rand 0.10.3",
+ "opentelemetry",
+ "p256 0.14.0",
+ "rand 0.10.4",
"regex",
+ "reqwest 0.12.28",
"reqwest 0.13.5",
"resolvematrix",
"ruma",
"ruminuwuity",
+ "rustls",
"rustyline-async",
"sd-notify",
"serde",
"serde-saphyr",
"serde_json",
"serde_urlencoded",
- "sha2 0.11.0",
+ "sha2 0.11.1",
"termimad",
"tokio",
"tracing",
@@ -1206,7 +1158,7 @@ dependencies = [
[[package]]
name = "conduwuit_web"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"askama",
"async-trait",
@@ -1373,6 +1325,12 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
+[[package]]
+name = "cpubits"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae"
+
[[package]]
name = "cpufeatures"
version = "0.2.17"
@@ -1393,9 +1351,9 @@ dependencies = [
[[package]]
name = "crc32fast"
-version = "1.5.2"
+version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
+checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04"
dependencies = [
"cfg-if",
]
@@ -1408,9 +1366,9 @@ checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
[[package]]
name = "crokey"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "074bc31bff1084f74e5a145ad5f6ac74469fa312159faa5144f0b1c4506b8d80"
+checksum = "c41f5f8d5dba70b6f48daa17fee79ac7c3a13cc1b164f41d0de50c803e0266f2"
dependencies = [
"crokey-proc_macros",
"crossterm",
@@ -1421,15 +1379,15 @@ dependencies = [
[[package]]
name = "crokey-proc_macros"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b88c4ff2d5717616c3bb4a31d06b0b241ed811c7c0c41d077d77631bee7caad0"
+checksum = "2ca5122126412913548025b1d5574181121bcf7a06f8b530f4be713ebd81d418"
dependencies = [
"crossterm",
"proc-macro2",
"quote",
"strict",
- "syn 2.0.119",
+ "syn 3.0.10",
]
[[package]]
@@ -1494,7 +1452,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"crossterm_winapi",
"derive_more",
"document-features",
@@ -1529,10 +1487,26 @@ dependencies = [
]
[[package]]
-name = "crypto-common"
-version = "0.1.6"
+name = "crypto-bigint"
+version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
+checksum = "9c035cb64cba03dad2fb921f3e218785e8cf9a41790da5eb3a1400f62fa2be11"
+dependencies = [
+ "cpubits",
+ "ctutils",
+ "getrandom 0.4.3",
+ "hybrid-array",
+ "num-traits",
+ "rand_core 0.10.1",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
dependencies = [
"generic-array",
"rand_core 0.6.4",
@@ -1545,14 +1519,16 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
dependencies = [
+ "getrandom 0.4.3",
"hybrid-array",
+ "rand_core 0.10.1",
]
[[package]]
name = "ctor"
-version = "1.0.13"
+version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+checksum = "ea691ed9f36489d087419b8b2ba3ef27d89621380b4178c73e2445a379e4e0f4"
dependencies = [
"link-section",
"linktime-proc-macro",
@@ -1569,28 +1545,19 @@ dependencies = [
[[package]]
name = "ctutils"
-version = "0.4.2"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
+checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f"
dependencies = [
"cmov",
+ "subtle",
]
[[package]]
-name = "curve25519-dalek"
-version = "4.1.3"
+name = "cty"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
-dependencies = [
- "cfg-if",
- "cpufeatures 0.2.17",
- "curve25519-dalek-derive",
- "digest 0.10.7",
- "fiat-crypto 0.2.9",
- "rustc_version",
- "subtle",
- "zeroize",
-]
+checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35"
[[package]]
name = "curve25519-dalek"
@@ -1602,7 +1569,7 @@ dependencies = [
"cpufeatures 0.3.1",
"curve25519-dalek-derive",
"digest 0.11.3",
- "fiat-crypto 0.3.0",
+ "fiat-crypto",
"rustc_version",
"subtle",
"zeroize",
@@ -1668,7 +1635,7 @@ dependencies = [
"proc-macro2",
"quote",
"strsim",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -1690,7 +1657,7 @@ checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
dependencies = [
"darling_core 0.24.1",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -1715,37 +1682,6 @@ dependencies = [
"uuid",
]
-[[package]]
-name = "defmt"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1"
-dependencies = [
- "bitflags 1.3.2",
- "defmt-macros",
-]
-
-[[package]]
-name = "defmt-macros"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8"
-dependencies = [
- "defmt-parser",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
-]
-
-[[package]]
-name = "defmt-parser"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e"
-dependencies = [
- "thiserror 2.0.21",
-]
-
[[package]]
name = "der"
version = "0.7.10"
@@ -1753,25 +1689,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
dependencies = [
"const-oid 0.9.6",
- "pem-rfc7468",
+ "pem-rfc7468 0.7.0",
"zeroize",
]
[[package]]
name = "der"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a878c850e9e421b20262e9b41f9c860e4785fa07541c266b62ff9d1ef998a80a"
+checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004"
dependencies = [
"const-oid 0.10.2",
+ "pem-rfc7468 1.0.0",
"zeroize",
]
[[package]]
name = "deranged"
-version = "0.5.8"
+version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
+checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
dependencies = [
"serde_core",
]
@@ -1806,7 +1743,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer 0.10.4",
"const-oid 0.9.6",
- "crypto-common 0.1.6",
+ "crypto-common 0.1.7",
"subtle",
]
@@ -1828,7 +1765,7 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"objc2",
]
@@ -1840,7 +1777,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -1854,10 +1791,11 @@ dependencies = [
[[package]]
name = "dtor"
-version = "1.0.6"
+version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd3f6c362b2bbd7063090886afd78978f5dbf1f11da7efcc40f81d32c943fac1"
+checksum = "915e80ae7aca23bef767ded8e4a763d0c912c2faaa8bfec1e66d505ebaceb254"
dependencies = [
+ "link-section",
"linktime-proc-macro",
]
@@ -1881,12 +1819,27 @@ checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
dependencies = [
"der 0.7.10",
"digest 0.10.7",
- "elliptic-curve",
- "rfc6979",
+ "elliptic-curve 0.13.8",
+ "rfc6979 0.4.0",
"signature 2.2.0",
"spki 0.7.3",
]
+[[package]]
+name = "ecdsa"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0"
+dependencies = [
+ "der 0.8.3",
+ "digest 0.11.3",
+ "elliptic-curve 0.14.3",
+ "rfc6979 0.6.0",
+ "signature 3.0.0",
+ "spki 0.8.1",
+ "zeroize",
+]
+
[[package]]
name = "ece-native"
version = "0.5.0"
@@ -1898,16 +1851,6 @@ dependencies = [
"sha2 0.10.9",
]
-[[package]]
-name = "ed25519"
-version = "2.2.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
-dependencies = [
- "pkcs8 0.10.2",
- "signature 2.2.0",
-]
-
[[package]]
name = "ed25519"
version = "3.0.0"
@@ -1918,30 +1861,16 @@ dependencies = [
"signature 3.0.0",
]
-[[package]]
-name = "ed25519-dalek"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
-dependencies = [
- "curve25519-dalek 4.1.3",
- "ed25519 2.2.3",
- "serde",
- "sha2 0.10.9",
- "subtle",
- "zeroize",
-]
-
[[package]]
name = "ed25519-dalek"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de"
dependencies = [
- "curve25519-dalek 5.0.0",
- "ed25519 3.0.0",
+ "curve25519-dalek",
+ "ed25519",
"serde",
- "sha2 0.11.0",
+ "sha2 0.11.1",
"signature 3.0.0",
"subtle",
"zeroize",
@@ -1949,9 +1878,9 @@ dependencies = [
[[package]]
name = "either"
-version = "1.18.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
dependencies = [
"serde",
]
@@ -1962,26 +1891,47 @@ version = "0.13.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
dependencies = [
- "base16ct",
- "crypto-bigint",
+ "base16ct 0.2.0",
+ "crypto-bigint 0.5.5",
"digest 0.10.7",
- "ff",
+ "ff 0.13.1",
"generic-array",
- "group",
+ "group 0.13.0",
"hkdf 0.12.4",
- "pem-rfc7468",
+ "pem-rfc7468 0.7.0",
"pkcs8 0.10.2",
"rand_core 0.6.4",
- "sec1",
+ "sec1 0.7.3",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "elliptic-curve"
+version = "0.14.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "900f37e7e18d74a2347389af6cd69e3a30d5cc9e697f40004865679aa75e9c7c"
+dependencies = [
+ "base16ct 1.0.0",
+ "crypto-bigint 0.7.10",
+ "crypto-common 0.2.2",
+ "digest 0.11.3",
+ "ff 0.14.0",
+ "group 0.14.0",
+ "hybrid-array",
+ "pem-rfc7468 1.0.0",
+ "pkcs8 0.11.0",
+ "rand_core 0.10.1",
+ "sec1 0.8.1",
"subtle",
"zeroize",
]
[[package]]
name = "email-encoding"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "420b9da095f052ea597503e39073b5b3c522f7db933fbac202d91d24492693fd"
+checksum = "9f690ae2169f2ceb3f45b28b6fcd8fa16839f2f5c8818546774b9425f5f71004"
dependencies = [
"base64 0.23.1",
"memchr",
@@ -1995,13 +1945,12 @@ checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449"
[[package]]
name = "encoding_rs"
-version = "0.8.41"
+version = "0.8.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b5ef0006ac9ab233c38522f5ae99cae3625151de8f706cacee1cba4b8e2832a"
+checksum = "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5"
dependencies = [
"cfg-if",
"core_detect",
- "multiversion",
"multiversion_no_op",
"rustversion",
"scopeguard",
@@ -2019,9 +1968,9 @@ dependencies = [
[[package]]
name = "equivalent"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
[[package]]
name = "errno"
@@ -2078,10 +2027,14 @@ dependencies = [
]
[[package]]
-name = "fiat-crypto"
-version = "0.2.9"
+name = "ff"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
+checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f"
+dependencies = [
+ "rand_core 0.10.1",
+ "subtle",
+]
[[package]]
name = "fiat-crypto"
@@ -2105,9 +2058,9 @@ dependencies = [
[[package]]
name = "find-msvc-tools"
-version = "0.1.12"
+version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
+checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
[[package]]
name = "findshlibs"
@@ -2129,9 +2082,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
name = "flate2"
-version = "1.1.10"
+version = "1.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
+checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
dependencies = [
"crc32fast",
"miniz_oxide 0.9.1",
@@ -2152,18 +2105,18 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
[[package]]
name = "form_urlencoded"
-version = "1.2.2"
+version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
dependencies = [
"percent-encoding",
]
[[package]]
name = "fs-err"
-version = "3.3.1"
+version = "3.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b91aa448ca50d7e79433bdf3ee8d99215430d2ec02ade5aefab2a073a1822e8a"
+checksum = "b5c95b673b8f6f7235229ae11c5642d81b04c2e64c1e2fb417bc0cf73ca45f29"
dependencies = [
"autocfg",
"tokio",
@@ -2175,16 +2128,6 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
-[[package]]
-name = "futf"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
-dependencies = [
- "mac",
- "new_debug_unreachable",
-]
-
[[package]]
name = "futures"
version = "0.3.34"
@@ -2241,7 +2184,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -2281,9 +2224,9 @@ dependencies = [
[[package]]
name = "generic-array"
-version = "0.14.9"
+version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"typenum",
"version_check",
@@ -2351,9 +2294,9 @@ dependencies = [
[[package]]
name = "gimli"
-version = "0.32.3"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
+checksum = "1033caf0b349c518623b5396bfb2cf0bddf44f0306d543a250e5743297aafd10"
[[package]]
name = "glob"
@@ -2382,9 +2325,9 @@ dependencies = [
[[package]]
name = "granit-parser"
-version = "1.3.0"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e20f99e46474f56bd905c56e817ebddcf377a611f94c53ac4649e4d3fa3c0cd0"
+checksum = "9bd04d0d9c7079b416b458d2317aea4aa964c81938cb7c20f559758c4f422dc8"
dependencies = [
"arraydeque",
"smallvec",
@@ -2396,16 +2339,27 @@ version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
dependencies = [
- "ff",
+ "ff 0.13.1",
"rand_core 0.6.4",
"subtle",
]
[[package]]
-name = "h2"
-version = "0.4.19"
+name = "group"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"
+checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4"
+dependencies = [
+ "ff 0.14.0",
+ "rand_core 0.10.1",
+ "subtle",
+]
+
+[[package]]
+name = "h2"
+version = "0.4.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118"
dependencies = [
"atomic-waker",
"bytes",
@@ -2448,12 +2402,6 @@ dependencies = [
"tokio-util",
]
-[[package]]
-name = "hardened_malloc-rs"
-version = "0.1.2+12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "647deb1583b14d160f85f3ff626f20b6edd366e3852c9843b06077388f794cb6"
-
[[package]]
name = "hashbrown"
version = "0.12.3"
@@ -2492,9 +2440,9 @@ dependencies = [
[[package]]
name = "headers"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb"
+checksum = "fc2700e3fe555c3310aa7286cac6167449f2c87e0eb58769c9208a1c58a1d106"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -2548,7 +2496,7 @@ dependencies = [
"idna",
"ipnet",
"jni",
- "rand 0.10.3",
+ "rand 0.10.4",
"thiserror 2.0.21",
"tinyvec",
"tokio",
@@ -2568,7 +2516,7 @@ dependencies = [
"jni",
"once_cell",
"prefix-trie",
- "rand 0.10.3",
+ "rand 0.10.4",
"ring",
"serde",
"thiserror 2.0.21",
@@ -2594,7 +2542,7 @@ dependencies = [
"ndk-context",
"once_cell",
"parking_lot",
- "rand 0.10.3",
+ "rand 0.10.4",
"resolv-conf",
"serde",
"smallvec",
@@ -2653,16 +2601,12 @@ dependencies = [
[[package]]
name = "html5ever"
-version = "0.27.0"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4"
+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
dependencies = [
"log",
- "mac",
"markup5ever",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
]
[[package]]
@@ -2731,14 +2675,16 @@ version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
dependencies = [
+ "subtle",
"typenum",
+ "zeroize",
]
[[package]]
name = "hyper"
-version = "1.11.1"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
+checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
dependencies = [
"atomic-waker",
"bytes",
@@ -2758,18 +2704,18 @@ dependencies = [
[[package]]
name = "hyper-rustls"
-version = "0.27.9"
+version = "0.27.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
+checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53"
dependencies = [
"http",
"hyper",
"hyper-util",
"rustls",
+ "rustls-native-certs",
"tokio",
"tokio-rustls",
"tower-service",
- "webpki-roots",
]
[[package]]
@@ -2833,9 +2779,9 @@ dependencies = [
[[package]]
name = "icu_collections"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
+checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
dependencies = [
"displaydoc",
"potential_utf",
@@ -2847,9 +2793,9 @@ dependencies = [
[[package]]
name = "icu_locale_core"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
dependencies = [
"displaydoc",
"litemap",
@@ -2860,9 +2806,9 @@ dependencies = [
[[package]]
name = "icu_normalizer"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
+checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
dependencies = [
"icu_collections",
"icu_normalizer_data",
@@ -2874,15 +2820,15 @@ dependencies = [
[[package]]
name = "icu_normalizer_data"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
+checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
[[package]]
name = "icu_properties"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
+checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
dependencies = [
"displaydoc",
"icu_collections",
@@ -2895,15 +2841,15 @@ dependencies = [
[[package]]
name = "icu_properties_data"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
+checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
[[package]]
name = "icu_provider"
-version = "2.3.1"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
dependencies = [
"displaydoc",
"icu_locale_core",
@@ -3009,9 +2955,9 @@ dependencies = [
[[package]]
name = "ipaddress"
-version = "0.2.11"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67a97d7409c3ade4304acbff6b33b915af4564c42bf6e383651ced09bd6a2bce"
+checksum = "e0ae5a9c049476ef23026df39fe92a8d83c1d8b670b975f095cb4d5a3b13d43e"
dependencies = [
"lazy_static",
"libc",
@@ -3043,24 +2989,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "itertools"
-version = "0.10.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
-dependencies = [
- "either",
-]
-
-[[package]]
-name = "itertools"
-version = "0.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
-dependencies = [
- "either",
-]
-
[[package]]
name = "itertools"
version = "0.14.0"
@@ -3087,11 +3015,10 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "jiff"
-version = "0.2.37"
+version = "0.2.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ab1baf72f08796de0260609515130699b890ac25f30e610ad894bc5856cafdb"
+checksum = "fcefdcefac59ac8f8401852e3427d55610481fc41e6625c39bac62d2d771623a"
dependencies = [
- "defmt",
"jiff-core",
"jiff-static",
"jiff-tzdb-platform",
@@ -3104,19 +3031,18 @@ dependencies = [
[[package]]
name = "jiff-core"
-version = "0.1.1"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e52fe76043ccecc9005d2305ebaadf7d7fc0cc89ca6baa10a94d6bc68c7128c"
+checksum = "77a24020db0ee88d1c681d677681bd31f9f4ea189a455425223d52ce4f1508aa"
dependencies = [
- "defmt",
"log",
]
[[package]]
name = "jiff-static"
-version = "0.2.37"
+version = "0.2.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "378268a1116ad67ae6228701118ac9f491d78fda38a40a1f1a9e1348de6f7212"
+checksum = "203edf9b0ce4083ec8fbf4adc823eac89768ea994b4953fc0dab1b90083234dd"
dependencies = [
"jiff-core",
"proc-macro2",
@@ -3126,9 +3052,9 @@ dependencies = [
[[package]]
name = "jiff-tzdb"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e"
+checksum = "fa8377070c6bae868759445e5a77f66d84f0b72f3a054bfb00e6d038b8282da7"
[[package]]
name = "jiff-tzdb-platform"
@@ -3200,9 +3126,9 @@ dependencies = [
[[package]]
name = "js-sys"
-version = "0.3.105"
+version = "0.3.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e"
+checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a"
dependencies = [
"cfg-if",
"futures-util",
@@ -3239,9 +3165,9 @@ dependencies = [
[[package]]
name = "lazy-regex"
-version = "3.6.1"
+version = "3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4994ba703f78b083e2f7946dac9251abd83fd43a0365f030e99b69be5b4b9ef9"
+checksum = "f0a2cce8a22920a29fdcc8c9170aa5d29edd9fbcf8bea856e24c2cb1c2419f67"
dependencies = [
"lazy-regex-proc_macros",
"once_cell",
@@ -3250,30 +3176,30 @@ dependencies = [
[[package]]
name = "lazy-regex-proc_macros"
-version = "3.6.1"
+version = "3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd97232314824e6dbef1918a871bb93f51070455e3715bf26e19a6d01aa977a0"
+checksum = "6f1e4b1f1d8c71edb4ff2b2150ec4606445fd2ddf67ddc097655daf59286baa6"
dependencies = [
"proc-macro2",
"quote",
"regex",
- "syn 2.0.119",
+ "syn 3.0.10",
]
[[package]]
name = "lazy_static"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
+checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
dependencies = [
"spin",
]
[[package]]
name = "lettre"
-version = "0.11.23"
+version = "0.11.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2c646bd5cc763b1087b15493e29a64be6147ba8f19342004fa52048ee596eae"
+checksum = "f294f3d7cdb313e578acef7d7727d4e8d897e0fcd0d6d58c19959cec95073f19"
dependencies = [
"async-trait",
"base64 0.23.1",
@@ -3301,9 +3227,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.191"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
[[package]]
name = "libloading"
@@ -3315,16 +3241,6 @@ dependencies = [
"windows-link",
]
-[[package]]
-name = "libloading"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"
-dependencies = [
- "cfg-if",
- "windows-link",
-]
-
[[package]]
name = "libm"
version = "0.2.16"
@@ -3332,10 +3248,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
[[package]]
-name = "libz-sys"
-version = "1.1.29"
+name = "libmimalloc-sys"
+version = "0.1.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85bc9657773828b90eeb625adff10eeac83cc21bbfd8e23a03eaa8a33c9e28d9"
+checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9"
+dependencies = [
+ "cc",
+ "cty",
+]
+
+[[package]]
+name = "libz-sys"
+version = "1.1.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69965d2409bff8c8cea3829009fff66a86f05a0570656552ef70f616e8e4bd85"
dependencies = [
"cc",
"pkg-config",
@@ -3344,9 +3270,9 @@ dependencies = [
[[package]]
name = "link-section"
-version = "0.19.3"
+version = "0.19.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39c29a617ce3df32c08497bdc1ab6e2376e0b17948ac166a2fbe5977c5954cd9"
+checksum = "4d9aae57673c1a235149777a74d152f3210ebd3e3b13346d2cdb6809e566bd3c"
[[package]]
name = "linked-hash-map"
@@ -3374,9 +3300,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
[[package]]
name = "litrs"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
+checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70"
[[package]]
name = "lock_api"
@@ -3388,16 +3314,25 @@ dependencies = [
]
[[package]]
-name = "log"
-version = "0.4.34"
+name = "lock_api"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+checksum = "65d91b22da179613dcf4d6ec8349563f52a363f6849e03b00dd0a185ec4a59af"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
[[package]]
name = "loole"
-version = "0.4.1"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a3932a13b27d6b2d37efec3e4047017d59a8c9f2283a29bde29151d22f00fe9"
+checksum = "45a6f2ee852ef619dac448846d7a80fb56a08e842674202d1ffe509fc319165c"
dependencies = [
"futures-core",
"futures-sink",
@@ -3428,12 +3363,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "mac"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
-
[[package]]
name = "maplit"
version = "1.0.2"
@@ -3442,23 +3371,20 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]]
name = "markup5ever"
-version = "0.12.1"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16ce3abbeba692c8b8441d036ef91aea6df8da2c6b6e21c7e14d3c18e526be45"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
dependencies = [
"log",
- "phf",
- "phf_codegen",
- "string_cache",
- "string_cache_codegen",
"tendril",
+ "web_atoms",
]
[[package]]
name = "markup5ever_rcdom"
-version = "0.3.0"
+version = "0.39.0+unofficial"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edaa21ab3701bfee5099ade5f7e1f84553fd19228cf332f13cd6e964bf59be18"
+checksum = "3ac010f19d6c4af81eeb4018a39d7a115de9d285af45c126a4ac02e6fc5716b7"
dependencies = [
"html5ever",
"markup5ever",
@@ -3494,7 +3420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "191dc109c485eb7ee3bcab18993237be2cb290a9475debd4205ecb5f20d1f1ea"
dependencies = [
"axum",
- "brotli 9.0.0",
+ "brotli",
"flate2",
"fs-err",
"mime_guess",
@@ -3505,10 +3431,19 @@ dependencies = [
]
[[package]]
-name = "mime"
-version = "0.3.17"
+name = "mimalloc"
+version = "0.1.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862"
+dependencies = [
+ "libmimalloc-sys",
+]
+
+[[package]]
+name = "mime"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1"
[[package]]
name = "mime_guess"
@@ -3522,15 +3457,15 @@ dependencies = [
[[package]]
name = "minicbor"
-version = "2.3.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c12b4033ffaa92fbf9df03df38d19324f52bad130dd223f811734a8006dd2d69"
+checksum = "e7244eafd1e09e7c4e33043881997aa6ab6dffff3ed2cee3395a278980481d6e"
[[package]]
name = "minicbor-serde"
-version = "0.7.1"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7abdec9761edcb452764c68564ae4b77ec62f6c1a361aa68f5de15fd788c679"
+checksum = "b05ae1ca1d2c55196b389c8308119aa0e2aa8d31115f018dcc23ba3c5d350eb3"
dependencies = [
"minicbor",
"serde",
@@ -3573,9 +3508,9 @@ dependencies = [
[[package]]
name = "mio"
-version = "1.2.3"
+version = "1.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
+checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
dependencies = [
"libc",
"log",
@@ -3610,27 +3545,6 @@ dependencies = [
"pxfm",
]
-[[package]]
-name = "multiversion"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4ca4bea16ffc3f443cf7d866912118196bfef4c6a1556ca00f9f9b00bb43f7c"
-dependencies = [
- "multiversion-macros",
-]
-
-[[package]]
-name = "multiversion-macros"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d416831a7317ef4b08bee00b69cbbb9c8763da7959a7026244d6266869f9c83"
-dependencies = [
- "proc-macro2",
- "quote",
- "rustversion",
- "syn 3.0.6",
-]
-
[[package]]
name = "multiversion_no_op"
version = "1.0.0"
@@ -3655,7 +3569,7 @@ version = "0.31.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"cfg-if",
"cfg_aliases",
"libc",
@@ -3828,9 +3742,9 @@ dependencies = [
[[package]]
name = "objc2"
-version = "0.6.4"
+version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8"
dependencies = [
"objc2-encode",
]
@@ -3841,7 +3755,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"objc2",
"objc2-foundation",
]
@@ -3862,7 +3776,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"dispatch2",
"objc2",
]
@@ -3873,7 +3787,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"dispatch2",
"objc2",
"objc2-core-foundation",
@@ -3906,7 +3820,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"objc2",
"objc2-core-foundation",
"objc2-core-graphics",
@@ -3924,7 +3838,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"block2",
"libc",
"objc2",
@@ -3937,7 +3851,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"objc2",
"objc2-core-foundation",
]
@@ -3948,7 +3862,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"objc2",
"objc2-core-foundation",
"objc2-foundation",
@@ -3960,7 +3874,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"block2",
"objc2",
"objc2-cloud-kit",
@@ -3987,9 +3901,9 @@ dependencies = [
[[package]]
name = "object"
-version = "0.37.3"
+version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
+checksum = "dd229a0361b9d0d4396176e02d65897f487eebeab7caa6d443855ee152ca0b9c"
dependencies = [
"memchr",
]
@@ -4012,20 +3926,21 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
[[package]]
name = "openidconnect"
-version = "4.0.1"
+version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d8c6709ba2ea764bbed26bce1adf3c10517113ddea6f2d4196e4851757ef2b2"
+checksum = "df0d098a59353679624d406825940139e2b2d554a52b64c9fb1b1bc42a11fe5c"
dependencies = [
- "base64 0.21.7",
+ "base64 0.22.1",
"chrono",
"dyn-clone",
- "ed25519-dalek 2.2.0",
+ "ed25519-dalek",
+ "getrandom 0.4.3",
"hmac 0.12.1",
"http",
- "itertools 0.10.5",
+ "itertools 0.14.0",
"log",
"oauth2",
- "p256",
+ "p256 0.14.0",
"p384",
"rand 0.8.8",
"rsa",
@@ -4043,15 +3958,15 @@ dependencies = [
[[package]]
name = "openssl-probe"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
+checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1"
[[package]]
name = "opentelemetry"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6cdb0b1b267eb9db3331b434ed9ddab10d50e280a9adf9d13e5233e2002b61b5"
+checksum = "8c1f1a6ac9c875a4941e4c7c085b61e8f4daa326de03b4701768c3491a6ad9ee"
dependencies = [
"futures-core",
"futures-sink",
@@ -4063,9 +3978,9 @@ dependencies = [
[[package]]
name = "opentelemetry-http"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee2c3625b8aa04209f7e01e513bc8044da9687fa38a9eacf59628ca5f3b87300"
+checksum = "302249bd8ee804789faaa7b5b2cbf79bc61cb864714079c644e3828af5b7e811"
dependencies = [
"async-trait",
"bytes",
@@ -4077,8 +3992,7 @@ dependencies = [
[[package]]
name = "opentelemetry-instrumentation-tower"
version = "0.19.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e7006f3b1853d315462a7237c81eec3d7adfa5b70975a02b19e92d045bc22d7"
+source = "git+https://github.com/open-telemetry/opentelemetry-rust-contrib?rev=6bbbc337aab0bcf10d7799c3e5b5ced75920491a#6bbbc337aab0bcf10d7799c3e5b5ced75920491a"
dependencies = [
"axum",
"http",
@@ -4093,9 +4007,9 @@ dependencies = [
[[package]]
name = "opentelemetry-otlp"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "699a67345e21962a231955b9059a157e428b219fa5df8efe11f08346fb23a344"
+checksum = "0756af24841e367128ef31c831999937b8b5c5197d47914590d8f4e2e88c2e1a"
dependencies = [
"http",
"httpdate",
@@ -4113,9 +4027,9 @@ dependencies = [
[[package]]
name = "opentelemetry-prometheus"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "274c2e3a2ad55524484500d5a78dffbfee23e4a1e4c3d3fcbd881b61b033e6df"
+checksum = "b9b52a5722eb64d198d6b6f1189e6b75a3c5ddfd224f48ede00c4330e0f11c66"
dependencies = [
"once_cell",
"opentelemetry",
@@ -4126,9 +4040,9 @@ dependencies = [
[[package]]
name = "opentelemetry-proto"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25da1ac11a0aeccf38d7f77ee0348715adaf8340f65ad46c94a02c6b20e2f65d"
+checksum = "d576f5dddc3299341bcd85a04be17b2564844c0c9563214f02d85f2524d1afae"
dependencies = [
"opentelemetry",
"opentelemetry_sdk",
@@ -4139,15 +4053,15 @@ dependencies = [
[[package]]
name = "opentelemetry-semantic-conventions"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d288b1e1bc3590052fbb8f0f635ef248dd9022cf1fbaeb6582b7ad6081a17b87"
+checksum = "7a3cf639fefd3e852869114f9925b578da6dd8e99281a2089bb0e773ead46962"
[[package]]
name = "opentelemetry_sdk"
-version = "0.33.0"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb39533d9d1c912123efd7d41d7e0c29d16917b60ce15b4c8d87cb1af7f67520"
+checksum = "372a912db2974d1990207006fd0e3aa0ef3fd4ad3be43c65cfaadf2206866061"
dependencies = [
"futures-channel",
"futures-executor",
@@ -4192,22 +4106,37 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b"
dependencies = [
- "ecdsa",
- "elliptic-curve",
- "primeorder",
+ "ecdsa 0.16.9",
+ "elliptic-curve 0.13.8",
+ "primeorder 0.13.6",
"sha2 0.10.9",
]
[[package]]
-name = "p384"
-version = "0.13.1"
+name = "p256"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe42f1670a52a47d448f14b6a5c61dd78fce51856e68edaa38f7ae3a46b8d6b6"
+checksum = "d2c9239b2dbc807adbbe147e8cf72ea7450c3a0aabe62cb8e75ff4ec22e1f72a"
dependencies = [
- "ecdsa",
- "elliptic-curve",
- "primeorder",
- "sha2 0.10.9",
+ "ecdsa 0.17.0",
+ "elliptic-curve 0.14.3",
+ "primefield",
+ "primeorder 0.14.0",
+ "sha2 0.11.1",
+]
+
+[[package]]
+name = "p384"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d17b851e6b3e378ab4ecb07fa2ed23f4d15f075735f8fec9fa1e7bdce5f8301f"
+dependencies = [
+ "ecdsa 0.17.0",
+ "elliptic-curve 0.14.3",
+ "fiat-crypto",
+ "primefield",
+ "primeorder 0.14.0",
+ "sha2 0.11.1",
]
[[package]]
@@ -4222,7 +4151,7 @@ version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
dependencies = [
- "lock_api",
+ "lock_api 0.4.14",
"parking_lot_core",
]
@@ -4251,12 +4180,6 @@ dependencies = [
"phc",
]
-[[package]]
-name = "paste"
-version = "1.0.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
-
[[package]]
name = "pear"
version = "0.2.9"
@@ -4289,6 +4212,15 @@ dependencies = [
"base64ct",
]
+[[package]]
+name = "pem-rfc7468"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9"
+dependencies = [
+ "base64ct",
+]
+
[[package]]
name = "percent-encoding"
version = "2.3.2"
@@ -4318,18 +4250,19 @@ dependencies = [
[[package]]
name = "phf"
-version = "0.11.3"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
dependencies = [
"phf_shared",
+ "serde",
]
[[package]]
name = "phf_codegen"
-version = "0.11.3"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
dependencies = [
"phf_generator",
"phf_shared",
@@ -4337,19 +4270,19 @@ dependencies = [
[[package]]
name = "phf_generator"
-version = "0.11.3"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
dependencies = [
+ "fastrand",
"phf_shared",
- "rand 0.8.8",
]
[[package]]
name = "phf_shared"
-version = "0.11.3"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
dependencies = [
"siphasher",
]
@@ -4407,8 +4340,8 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
dependencies = [
- "der 0.8.2",
- "spki 0.8.0",
+ "der 0.8.3",
+ "spki 0.8.1",
]
[[package]]
@@ -4423,7 +4356,7 @@ version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"crc32fast",
"fdeflate",
"flate2",
@@ -4468,9 +4401,9 @@ dependencies = [
[[package]]
name = "powerfmt"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
[[package]]
name = "ppv-lite86"
@@ -4498,13 +4431,40 @@ dependencies = [
"num-traits",
]
+[[package]]
+name = "primefield"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c555a6e4eb7d4e158fcb028c835c3b8642206ddc279b5c6b202ef9a8bdb592f4"
+dependencies = [
+ "crypto-bigint 0.7.10",
+ "crypto-common 0.2.2",
+ "ff 0.14.0",
+ "rand_core 0.10.1",
+ "subtle",
+ "zeroize",
+]
+
[[package]]
name = "primeorder"
version = "0.13.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
dependencies = [
- "elliptic-curve",
+ "elliptic-curve 0.13.8",
+]
+
+[[package]]
+name = "primeorder"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c9f42978c78a00e3d68f69fc03e57a234debae69da4020a4fb588fcdcd07b06"
+dependencies = [
+ "elliptic-curve 0.14.3",
+ "once_cell",
+ "primefield",
+ "serdect",
+ "wnaf",
]
[[package]]
@@ -4513,7 +4473,7 @@ version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
dependencies = [
- "toml_edit 0.25.15+spec-1.1.0",
+ "toml_edit 0.25.19+spec-1.1.0",
]
[[package]]
@@ -4535,7 +4495,7 @@ dependencies = [
"proc-macro-error-attr3",
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -4608,11 +4568,11 @@ dependencies = [
[[package]]
name = "pulldown-cmark"
-version = "0.13.4"
+version = "0.13.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e"
+checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"memchr",
"pulldown-cmark-escape",
"unicase",
@@ -4638,9 +4598,9 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quinn"
-version = "0.11.11"
+version = "0.11.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
+checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"
dependencies = [
"bytes",
"cfg_aliases",
@@ -4659,15 +4619,15 @@ dependencies = [
[[package]]
name = "quinn-proto"
-version = "0.11.17"
+version = "0.11.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83"
+checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"
dependencies = [
"aws-lc-rs",
"bytes",
"getrandom 0.4.3",
"lru-slab",
- "rand 0.10.3",
+ "rand 0.10.4",
"rand_pcg",
"ring",
"rustc-hash",
@@ -4682,9 +4642,9 @@ dependencies = [
[[package]]
name = "quinn-udp"
-version = "0.5.15"
+version = "0.5.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
+checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016"
dependencies = [
"cfg_aliases",
"libc",
@@ -4744,9 +4704,9 @@ dependencies = [
[[package]]
name = "rand"
-version = "0.10.3"
+version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
+checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11"
dependencies = [
"chacha20",
"getrandom 0.4.3",
@@ -4812,7 +4772,7 @@ version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
]
[[package]]
@@ -4832,14 +4792,14 @@ checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
name = "regex"
-version = "1.13.1"
+version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
dependencies = [
"aho-corasick",
"memchr",
@@ -4849,9 +4809,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.18"
+version = "0.4.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
dependencies = [
"aho-corasick",
"memchr",
@@ -4860,9 +4820,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.11"
+version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
[[package]]
name = "reqwest"
@@ -4883,8 +4843,8 @@ dependencies = [
"log",
"percent-encoding",
"pin-project-lite",
- "quinn",
"rustls",
+ "rustls-native-certs",
"rustls-pki-types",
"serde",
"serde_json",
@@ -4899,7 +4859,6 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
- "webpki-roots",
]
[[package]]
@@ -4916,7 +4875,6 @@ dependencies = [
"h2",
"h3",
"h3-quinn",
- "hickory-resolver",
"http",
"http-body",
"http-body-util",
@@ -4925,7 +4883,6 @@ dependencies = [
"hyper-util",
"js-sys",
"log",
- "once_cell",
"percent-encoding",
"pin-project-lite",
"quinn",
@@ -4957,11 +4914,11 @@ checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7"
[[package]]
name = "resolvematrix"
-version = "1.3.0"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f072176a8b0cbe7c3df2281991ef00a09889d8ec789f2878e7fee43a3b978a6f"
+checksum = "39a1efc3c55274528f8b1a916eb0edf5c40a8364b4899fbc1283a57c8d0024db"
dependencies = [
- "futures",
+ "cache_control",
"hickory-resolver",
"num-traits",
"parking_lot",
@@ -4969,6 +4926,7 @@ dependencies = [
"serde",
"serde_json",
"thiserror 2.0.21",
+ "tokio-stream",
"tracing",
]
@@ -4982,6 +4940,16 @@ dependencies = [
"subtle",
]
+[[package]]
+name = "rfc6979"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b"
+dependencies = [
+ "crypto-bigint 0.7.10",
+ "hmac 0.13.0",
+]
+
[[package]]
name = "ring"
version = "0.17.14"
@@ -5018,8 +4986,8 @@ dependencies = [
[[package]]
name = "ruma"
-version = "0.17.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.17.2"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"assign",
"js_int",
@@ -5037,8 +5005,8 @@ dependencies = [
[[package]]
name = "ruma-appservice-api"
-version = "0.17.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.17.1"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"http",
"js_int",
@@ -5050,8 +5018,8 @@ dependencies = [
[[package]]
name = "ruma-client-api"
-version = "0.25.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.25.2"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"as_variant",
"assign",
@@ -5072,8 +5040,8 @@ dependencies = [
[[package]]
name = "ruma-common"
-version = "0.20.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.20.2"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"as_variant",
"base64 0.23.1",
@@ -5086,7 +5054,7 @@ dependencies = [
"js_int",
"konst",
"percent-encoding",
- "rand 0.10.3",
+ "rand 0.10.4",
"regex",
"ruma-identifiers-validation",
"ruma-macros",
@@ -5105,8 +5073,8 @@ dependencies = [
[[package]]
name = "ruma-events"
-version = "0.35.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.35.2"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"as_variant",
"indexmap 2.14.2",
@@ -5126,8 +5094,8 @@ dependencies = [
[[package]]
name = "ruma-federation-api"
-version = "0.16.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.16.1"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"bytes",
"http",
@@ -5136,7 +5104,7 @@ dependencies = [
"js_int",
"memchr",
"mime",
- "rand 0.10.3",
+ "rand 0.10.4",
"ruma-common",
"ruma-events",
"ruma-signatures",
@@ -5148,8 +5116,8 @@ dependencies = [
[[package]]
name = "ruma-identifiers-validation"
-version = "0.12.1"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.14.0"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"js_int",
"thiserror 2.0.21",
@@ -5157,8 +5125,8 @@ dependencies = [
[[package]]
name = "ruma-macros"
-version = "0.20.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.20.2"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"as_variant",
"cfg-if",
@@ -5167,14 +5135,14 @@ dependencies = [
"quote",
"ruma-identifiers-validation",
"serde",
- "syn 3.0.6",
- "toml 1.1.6+spec-1.1.0",
+ "syn 3.0.10",
+ "toml 1.2.2+spec-1.1.0",
]
[[package]]
name = "ruma-push-gateway-api"
version = "0.16.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"js_int",
"ruma-common",
@@ -5185,25 +5153,25 @@ dependencies = [
[[package]]
name = "ruma-signatures"
-version = "0.22.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+version = "0.22.1"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"base64 0.23.1",
- "ed25519-dalek 3.0.0",
+ "ed25519-dalek",
"memchr",
"pkcs8 0.11.0",
- "rand 0.10.3",
+ "rand 0.10.4",
"ruma-common",
"ruma-events",
"serde_json",
- "sha2 0.11.0",
+ "sha2 0.11.1",
"thiserror 2.0.21",
]
[[package]]
name = "ruma-state-res"
version = "0.18.0"
-source = "git+https://github.com/ruma/ruma.git?rev=f5e5e1c885f598036fd4326c566e9d1928027d5d#f5e5e1c885f598036fd4326c566e9d1928027d5d"
+source = "git+https://github.com/ruma/ruma.git?rev=472a23ef86bc0bb40a22d856fc0af539eb9d71b7#472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
dependencies = [
"js_int",
"ruma-common",
@@ -5217,7 +5185,7 @@ dependencies = [
[[package]]
name = "ruminuwuity"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"assign",
"http",
@@ -5229,8 +5197,8 @@ dependencies = [
[[package]]
name = "rust-librocksdb-sys"
-version = "0.45.1+11.1.1"
-source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=0a25ff92f7c09b55eec496b9c192c7d5136ab2b8#0a25ff92f7c09b55eec496b9c192c7d5136ab2b8"
+version = "0.49.0+11.12.0"
+source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=85ded20348e3dab902c239967075795e9c6d101b#85ded20348e3dab902c239967075795e9c6d101b"
dependencies = [
"bindgen",
"bzip2-sys",
@@ -5240,14 +5208,15 @@ dependencies = [
"libz-sys",
"lz4-sys",
"pkg-config",
+ "rustflags",
"tikv-jemalloc-sys",
"zstd-sys",
]
[[package]]
name = "rust-rocksdb"
-version = "0.49.1"
-source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=0a25ff92f7c09b55eec496b9c192c7d5136ab2b8#0a25ff92f7c09b55eec496b9c192c7d5136ab2b8"
+version = "0.54.0"
+source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=85ded20348e3dab902c239967075795e9c6d101b#85ded20348e3dab902c239967075795e9c6d101b"
dependencies = [
"libc",
"parking_lot",
@@ -5276,12 +5245,18 @@ dependencies = [
]
[[package]]
-name = "rustix"
-version = "1.1.4"
+name = "rustflags"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+checksum = "a39e0e9135d7a7208ee80aa4e3e4b88f0f5ad7be92153ed70686c38a03db2e63"
+
+[[package]]
+name = "rustix"
+version = "1.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"errno",
"libc",
"linux-raw-sys",
@@ -5290,9 +5265,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.45"
+version = "0.23.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
dependencies = [
"aws-lc-rs",
"log",
@@ -5306,9 +5281,9 @@ dependencies = [
[[package]]
name = "rustls-native-certs"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
+checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4"
dependencies = [
"openssl-probe",
"rustls-pki-types",
@@ -5328,9 +5303,9 @@ dependencies = [
[[package]]
name = "rustls-platform-verifier"
-version = "0.7.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"
+checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98"
dependencies = [
"core-foundation 0.10.1",
"core-foundation-sys",
@@ -5349,15 +5324,15 @@ dependencies = [
[[package]]
name = "rustls-platform-verifier-android"
-version = "0.1.1"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
+checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f"
[[package]]
name = "rustls-webpki"
-version = "0.103.15"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"aws-lc-rs",
"ring",
@@ -5411,9 +5386,9 @@ dependencies = [
[[package]]
name = "schannel"
-version = "0.1.29"
+version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
+checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5"
dependencies = [
"windows-sys 0.61.2",
]
@@ -5432,9 +5407,9 @@ dependencies = [
[[package]]
name = "schemars"
-version = "1.2.2"
+version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
+checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e"
dependencies = [
"dyn-clone",
"ref-cast",
@@ -5463,7 +5438,7 @@ version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
dependencies = [
- "base16ct",
+ "base16ct 0.2.0",
"der 0.7.10",
"generic-array",
"pkcs8 0.10.2",
@@ -5471,13 +5446,27 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "sec1"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d"
+dependencies = [
+ "base16ct 1.0.0",
+ "ctutils",
+ "der 0.8.3",
+ "hybrid-array",
+ "subtle",
+ "zeroize",
+]
+
[[package]]
name = "security-framework"
version = "3.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"core-foundation 0.10.1",
"core-foundation-sys",
"libc",
@@ -5506,9 +5495,9 @@ dependencies = [
[[package]]
name = "sentry"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d631477761f57c76148456e55e80e9a479ff3fa4c65b2b4a0c3acf1167fd4638"
+checksum = "d7bc7fb14982f395d53924f4feebd48c6cc136399c49ac2160dcf2b260e74b75"
dependencies = [
"cfg_aliases",
"httpdate",
@@ -5526,9 +5515,9 @@ dependencies = [
[[package]]
name = "sentry-backtrace"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "448b0981fbde6cdc9eb087ba3dc01035a253fef9a0d9e79aaf198fc26acb2e64"
+checksum = "f68328b53eb7defc20f993ed7cd1f4ce10d06feecefdf914db062ce2523e4b77"
dependencies = [
"backtrace",
"regex",
@@ -5537,9 +5526,9 @@ dependencies = [
[[package]]
name = "sentry-contexts"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e909d02170ba6d1dc5ebd05bef7999280f5d960e3eaee5d1a18d88d41b334"
+checksum = "1d57fb52d1e5d76cc5a7415428004699d9e6d498859a7acc8e05becc57dad81f"
dependencies = [
"hostname",
"libc",
@@ -5551,22 +5540,21 @@ dependencies = [
[[package]]
name = "sentry-core"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecf0b1a4a4e9ec88395b52e6fa4868b95564c1fa96b26a0606f5f6288a0f7149"
+checksum = "8367f7f31654b35453e20c8aca06e0ecf5a4d4793e33be139c1581e475a94e6a"
dependencies = [
- "rand 0.9.5",
+ "rand 0.10.4",
"sentry-types",
- "serde",
"serde_json",
"url",
]
[[package]]
name = "sentry-debug-images"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f81d7749c57fc78ed52134889e8121da874065bc40da788d5798cce0f8c19f15"
+checksum = "386f4ce2364e58f2ca811f388a0427fa13784bbe7aee85f302e901ef4b00fab9"
dependencies = [
"findshlibs",
"sentry-core",
@@ -5574,20 +5562,20 @@ dependencies = [
[[package]]
name = "sentry-log"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11ffc7737b6d4f1cb3707284703c7364e9f5f056118abc523dd52e732f13cbe1"
+checksum = "c938358d54c65a79fea165a447ae0eabc5717f23ba482ceee279c5645f0ccad3"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"log",
"sentry-core",
]
[[package]]
name = "sentry-panic"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b7d93d6ecb55d2251c5fc084c55c03a2bc68904918d76117e602c999e92f00f"
+checksum = "2ab095af8f107e893941f857d8e204f5d25404247c34af131c7d199e3021679f"
dependencies = [
"sentry-backtrace",
"sentry-core",
@@ -5595,9 +5583,9 @@ dependencies = [
[[package]]
name = "sentry-tower"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a64a8a0a33239c65f95ff719fcb56655f398f4e4e74a01af8daca725cf7c2b5f"
+checksum = "18f29b19179ae36e6318c71f6ee18d1e0db8bbe8e7b7f213c2aba9e721b650fb"
dependencies = [
"http",
"pin-project",
@@ -5609,11 +5597,11 @@ dependencies = [
[[package]]
name = "sentry-tracing"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58d26379236c4ef97eaf081bca3c7bf0ef6f06b3aa881eca2ee8e8dbc923e5b8"
+checksum = "a7cae82b121a812e69a1cfaaacb800112f5f261f362fbf5a08e13d1c11ef349e"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"sentry-backtrace",
"sentry-core",
"tracing-core",
@@ -5622,13 +5610,13 @@ dependencies = [
[[package]]
name = "sentry-types"
-version = "0.48.5"
+version = "0.49.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2239099d47e76857b0825a182ecdb90159add7aa1097b60247c6e7ca6bf49c6a"
+checksum = "03da7c1f79d001b4f18e277f8207470efb262fb94c761baa195873d2ace8eb8a"
dependencies = [
"debugid",
"hex",
- "rand 0.9.5",
+ "rand 0.10.4",
"serde",
"serde_json",
"thiserror 2.0.21",
@@ -5649,9 +5637,9 @@ dependencies = [
[[package]]
name = "serde-saphyr"
-version = "1.3.0"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8050abb251097357e24aff63ba2c52a6309ecb7d23a5474023df960a02694d8"
+checksum = "969cde0349344dbbf58b5f9badbfb8f806db13969364eb8007c057ef687007d9"
dependencies = [
"annotate-snippets",
"base64 0.23.1",
@@ -5691,7 +5679,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -5709,9 +5697,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -5761,9 +5749,9 @@ dependencies = [
[[package]]
name = "serde_spanned"
-version = "1.1.1"
+version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
+checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"
dependencies = [
"serde_core",
]
@@ -5782,9 +5770,9 @@ dependencies = [
[[package]]
name = "serde_with"
-version = "3.23.0"
+version = "3.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "935177bb8c0cd8ca1a4e6d1a2ac8988bea69cab4f9d3a31311e012ad27868ea4"
+checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
dependencies = [
"base64 0.23.1",
"bs58",
@@ -5794,7 +5782,7 @@ dependencies = [
"indexmap 2.14.2",
"jiff",
"schemars 0.9.0",
- "schemars 1.2.2",
+ "schemars 1.2.3",
"serde_core",
"serde_json",
"serde_with_macros",
@@ -5803,14 +5791,24 @@ dependencies = [
[[package]]
name = "serde_with_macros"
-version = "3.23.0"
+version = "3.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d607aa01a3cb0ad757d6fd216136910db3c97b102fe686585689615a02dbcdc"
+checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49"
dependencies = [
"darling 0.24.1",
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serdect"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e"
+dependencies = [
+ "base16ct 1.0.0",
+ "serde",
]
[[package]]
@@ -5848,9 +5846,9 @@ dependencies = [
[[package]]
name = "sha2"
-version = "0.11.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4"
+checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19"
dependencies = [
"cfg-if",
"cpufeatures 0.3.1",
@@ -5879,12 +5877,6 @@ dependencies = [
"lazy_static",
]
-[[package]]
-name = "shlex"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
-
[[package]]
name = "shlex"
version = "2.0.1"
@@ -5937,6 +5929,10 @@ name = "signature"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
+dependencies = [
+ "digest 0.11.3",
+ "rand_core 0.10.1",
+]
[[package]]
name = "simd-adler32"
@@ -5962,9 +5958,9 @@ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
[[package]]
name = "siphasher"
-version = "1.0.3"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
+checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
[[package]]
name = "slab"
@@ -5984,9 +5980,9 @@ dependencies = [
[[package]]
name = "smallvec"
-version = "1.16.1"
+version = "1.16.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891"
+checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59"
dependencies = [
"serde",
]
@@ -6009,11 +6005,11 @@ checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"
[[package]]
name = "spinning_top"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300"
+checksum = "9cf02766a1eb909bc7653557c66b384e44edc3ad979e6257c6173c65ea51bc7d"
dependencies = [
- "lock_api",
+ "lock_api 0.4.14",
]
[[package]]
@@ -6028,12 +6024,12 @@ dependencies = [
[[package]]
name = "spki"
-version = "0.8.0"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f"
+checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9"
dependencies = [
"base64ct",
- "der 0.8.2",
+ "der 0.8.3",
]
[[package]]
@@ -6050,9 +6046,9 @@ checksum = "f42444fea5b87a39db4218d9422087e66a85d0e7a0963a439b07bcdf91804006"
[[package]]
name = "string_cache"
-version = "0.8.9"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f"
+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
dependencies = [
"new_debug_unreachable",
"parking_lot",
@@ -6063,9 +6059,9 @@ dependencies = [
[[package]]
name = "string_cache_codegen"
-version = "0.5.4"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
dependencies = [
"phf_generator",
"phf_shared",
@@ -6098,9 +6094,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.6"
+version = "3.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
+checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
dependencies = [
"proc-macro2",
"quote",
@@ -6118,13 +6114,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.10",
]
[[package]]
@@ -6133,7 +6129,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags",
"core-foundation 0.9.4",
"system-configuration-sys",
]
@@ -6156,20 +6152,18 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417"
[[package]]
name = "tendril"
-version = "0.4.3"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
dependencies = [
- "futf",
- "mac",
- "utf-8",
+ "new_debug_unreachable",
]
[[package]]
name = "termimad"
-version = "0.35.4"
+version = "0.35.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2374179aac8b77011a1aefe2f44d0c34eb680c9b4bd1c369a88991262c60c85a"
+checksum = "092b11fb38404fa873f019f8e5f300fa5787f381b7a58b923546d94b5a9065fd"
dependencies = [
"coolor",
"crokey",
@@ -6228,7 +6222,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -6242,18 +6236,17 @@ dependencies = [
[[package]]
name = "tikv-jemalloc-ctl"
-version = "0.6.1"
-source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554#df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+version = "0.7.0"
+source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=46e7821917b06636cdb5b203d312799970eaea92#46e7821917b06636cdb5b203d312799970eaea92"
dependencies = [
"libc",
- "paste",
"tikv-jemalloc-sys",
]
[[package]]
name = "tikv-jemalloc-sys"
-version = "0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
-source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554#df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+version = "0.7.0+5.4.0-0-g7a34f18502e7b222724097cdcd499b437d189acc"
+source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=46e7821917b06636cdb5b203d312799970eaea92#46e7821917b06636cdb5b203d312799970eaea92"
dependencies = [
"cc",
"libc",
@@ -6261,8 +6254,8 @@ dependencies = [
[[package]]
name = "tikv-jemallocator"
-version = "0.6.1"
-source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554#df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+version = "0.7.0"
+source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=46e7821917b06636cdb5b203d312799970eaea92#46e7821917b06636cdb5b203d312799970eaea92"
dependencies = [
"libc",
"tikv-jemalloc-sys",
@@ -6300,9 +6293,9 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
dependencies = [
"displaydoc",
"zerovec",
@@ -6316,9 +6309,9 @@ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
[[package]]
name = "tokio"
-version = "1.53.1"
+version = "1.54.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
+checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
dependencies = [
"bytes",
"libc",
@@ -6339,7 +6332,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
@@ -6356,9 +6349,9 @@ dependencies = [
[[package]]
name = "tokio-rustls"
-version = "0.26.5"
+version = "0.26.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67"
+checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
dependencies = [
"rustls",
"tokio",
@@ -6377,9 +6370,9 @@ dependencies = [
[[package]]
name = "tokio-util"
-version = "0.7.19"
+version = "0.7.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
+checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
dependencies = [
"bytes",
"futures-core",
@@ -6403,17 +6396,17 @@ dependencies = [
[[package]]
name = "toml"
-version = "1.1.6+spec-1.1.0"
+version = "1.2.2+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a"
+checksum = "5426cb1b964690d913f6c5c1a1ae0b42f428ec506bb4d452876d7a209c9bca3b"
dependencies = [
"indexmap 2.14.2",
"serde_core",
- "serde_spanned 1.1.1",
- "toml_datetime 1.1.1+spec-1.1.0",
+ "serde_spanned 1.1.3",
+ "toml_datetime 1.1.3+spec-1.1.0",
"toml_parser",
"toml_writer",
- "winnow 1.0.4",
+ "winnow 1.0.5",
]
[[package]]
@@ -6427,9 +6420,9 @@ dependencies = [
[[package]]
name = "toml_datetime"
-version = "1.1.1+spec-1.1.0"
+version = "1.1.3+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
+checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"
dependencies = [
"serde_core",
]
@@ -6450,23 +6443,23 @@ dependencies = [
[[package]]
name = "toml_edit"
-version = "0.25.15+spec-1.1.0"
+version = "0.25.19+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1340ea94a5856333492c9064b02c778b191dd2c853778d9609debdcdfea3a614"
+checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218"
dependencies = [
"indexmap 2.14.2",
- "toml_datetime 1.1.1+spec-1.1.0",
+ "toml_datetime 1.1.3+spec-1.1.0",
"toml_parser",
- "winnow 1.0.4",
+ "winnow 1.0.5",
]
[[package]]
name = "toml_parser"
-version = "1.1.3+spec-1.1.0"
+version = "1.1.6+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
+checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31"
dependencies = [
- "winnow 1.0.4",
+ "winnow 1.0.5",
]
[[package]]
@@ -6477,15 +6470,15 @@ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
[[package]]
name = "toml_writer"
-version = "1.1.2+spec-1.1.0"
+version = "1.2.0+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
[[package]]
name = "tonic"
-version = "0.14.6"
+version = "0.14.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef"
+checksum = "e2cdfc673aabd30fe8fee92e65837b644c37c5d47f0f97ae6d5e0f1237d15e1b"
dependencies = [
"async-trait",
"axum",
@@ -6504,6 +6497,7 @@ dependencies = [
"sync_wrapper",
"tokio",
"tokio-stream",
+ "tokio-util",
"tower",
"tower-layer",
"tower-service",
@@ -6512,9 +6506,9 @@ dependencies = [
[[package]]
name = "tonic-prost"
-version = "0.14.6"
+version = "0.14.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0"
+checksum = "eba464054e2226f182a34489b8b079bf4c6e3e7ab5fd7fc30e024f24aa92a484"
dependencies = [
"bytes",
"prost",
@@ -6523,9 +6517,9 @@ dependencies = [
[[package]]
name = "tonic-types"
-version = "0.14.6"
+version = "0.14.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73ab1b02061f83d519bba3caa167f88f261ef05720ab8ebc954ade70de3348e8"
+checksum = "ccbb6c31deb8e99dcdf87df19c5289b7838a600da74a8224baa671e52fe7c5ad"
dependencies = [
"prost",
"prost-types",
@@ -6574,7 +6568,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
dependencies = [
"async-compression",
- "bitflags 2.13.2",
+ "bitflags",
"bytes",
"futures-core",
"futures-util",
@@ -6597,7 +6591,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08a05a66a4fdd61cbbe0a1d755ffe0ca6aba159dd4820936a0ff8a8278245b9c"
dependencies = [
"async-compression",
- "bitflags 2.13.2",
+ "bitflags",
"bytes",
"futures-core",
"futures-util",
@@ -6622,9 +6616,9 @@ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
[[package]]
name = "tower-sec-fetch"
-version = "0.1.2"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff1e78d241de2527d3ef67e49d65d8cb08468c644c3aafac7a988c4accd76547"
+checksum = "88a13d0fc16129bf9e98fb869f369e867090afab7730d91ab4f68084bd037093"
dependencies = [
"futures",
"http",
@@ -6814,15 +6808,15 @@ dependencies = [
[[package]]
name = "unicase"
-version = "2.9.0"
+version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
+checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "unicode-segmentation"
@@ -6838,9 +6832,9 @@ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
[[package]]
name = "unicode-width"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
[[package]]
name = "universal-hash"
@@ -6848,7 +6842,7 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"
dependencies = [
- "crypto-common 0.1.6",
+ "crypto-common 0.1.7",
"subtle",
]
@@ -6860,9 +6854,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
-version = "2.5.8"
+version = "2.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
dependencies = [
"form_urlencoded",
"idna",
@@ -6878,22 +6872,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
-name = "utf-8"
-version = "0.7.6"
+name = "utf8_iter"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
+checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
+dependencies = [
+ "utf_types",
+]
[[package]]
-name = "utf8_iter"
-version = "1.0.4"
+name = "utf_types"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
[[package]]
name = "uuid"
-version = "1.26.1"
+version = "1.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce"
+checksum = "4a06f08a856b009bc7bbaf7d3e79808595d032dd19074c0c2ef26e49e03e6bdc"
dependencies = [
"getrandom 0.4.3",
"js-sys",
@@ -6959,9 +6956,9 @@ dependencies = [
[[package]]
name = "want"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
+checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
dependencies = [
"try-lock",
]
@@ -6983,12 +6980,11 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
-version = "0.2.128"
+version = "0.2.130"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf"
+checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
dependencies = [
"cfg-if",
- "once_cell",
"rustversion",
"wasm-bindgen-macro",
"wasm-bindgen-shared",
@@ -6996,19 +6992,20 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.78"
+version = "0.4.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ef4c5d3d2cdf5c54f4231181768f5510842e350db025faf1f7163b1030ed928"
+checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501"
dependencies = [
"js-sys",
+ "tokio",
"wasm-bindgen",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.128"
+version = "0.2.130"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed"
+checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -7016,22 +7013,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.128"
+version = "0.2.130"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a"
+checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.128"
+version = "0.2.130"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e"
+checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
dependencies = [
"unicode-ident",
]
@@ -7059,15 +7056,15 @@ dependencies = [
"ece-native",
"hkdf 0.13.0",
"http",
- "p256",
- "sha2 0.11.0",
+ "p256 0.13.2",
+ "sha2 0.11.1",
]
[[package]]
name = "web-sys"
-version = "0.3.105"
+version = "0.3.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8"
+checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -7084,10 +7081,22 @@ dependencies = [
]
[[package]]
-name = "webpage"
-version = "2.0.1"
+name = "web_atoms"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70862efc041d46e6bbaa82bb9c34ae0596d090e86cbd14bd9e93b36ee6802eac"
+checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
+dependencies = [
+ "phf",
+ "phf_codegen",
+ "string_cache",
+ "string_cache_codegen",
+]
+
+[[package]]
+name = "webpage"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5547a459b8cab203b5bf7d1f97855b3d6ae706da7c93773328614309432c9e4c"
dependencies = [
"html5ever",
"markup5ever_rcdom",
@@ -7097,18 +7106,9 @@ dependencies = [
[[package]]
name = "webpki-root-certs"
-version = "1.0.9"
+version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b"
-dependencies = [
- "rustls-pki-types",
-]
-
-[[package]]
-name = "webpki-roots"
-version = "1.0.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
+checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a"
dependencies = [
"rustls-pki-types",
]
@@ -7127,9 +7127,9 @@ checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
[[package]]
name = "wildmatch"
-version = "2.6.1"
+version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29333c3ea1ba8b17211763463ff24ee84e41c78224c16b001cd907e663a38c68"
+checksum = "f18219fbd41a807dec044965d4106bb4fdb1d3a4b70aac4e5510aacc80a9f140"
[[package]]
name = "winapi"
@@ -7325,9 +7325,9 @@ dependencies = [
[[package]]
name = "winnow"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
+checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
dependencies = [
"memchr",
]
@@ -7338,6 +7338,18 @@ version = "0.57.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+[[package]]
+name = "wnaf"
+version = "0.14.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa"
+dependencies = [
+ "ff 0.14.0",
+ "group 0.14.0",
+ "hybrid-array",
+ "primefield",
+]
+
[[package]]
name = "writeable"
version = "0.6.4"
@@ -7346,18 +7358,17 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
[[package]]
name = "xml5ever"
-version = "0.18.1"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69"
+checksum = "5ab627f34ff61b80d756180d556f9c68801d836d271b3b8c094504ceca69d221"
dependencies = [
"log",
- "mac",
"markup5ever",
]
[[package]]
name = "xtask"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
dependencies = [
"askama",
"cargo_metadata",
@@ -7373,9 +7384,9 @@ checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
[[package]]
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -7384,30 +7395,30 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.10",
"synstructure",
]
[[package]]
name = "zerocopy"
-version = "0.8.57"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.57"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
dependencies = [
"proc-macro2",
"quote",
@@ -7425,21 +7436,21 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.10",
"synstructure",
]
[[package]]
name = "zeroize"
-version = "1.9.0"
+version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
+checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
[[package]]
name = "zerotrie"
@@ -7454,9 +7465,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.8"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"yoke",
"zerofrom",
@@ -7465,20 +7476,20 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.6"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.6",
+ "syn 3.0.10",
]
[[package]]
name = "zlib-rs"
-version = "0.6.7"
+version = "0.6.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
[[package]]
name = "zmij"
@@ -7488,27 +7499,27 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
[[package]]
name = "zstd"
-version = "0.14.0"
+version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf06bd8162af0734b344780deb55b42a2429ae430870d13fcc12f238e880fe6e"
+checksum = "db3ae9bf90af6e40197bef767eeefc46ad6397420fe873830bd85e5fbbfb3c70"
dependencies = [
"zstd-safe",
]
[[package]]
name = "zstd-safe"
-version = "8.0.0"
+version = "8.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae42c0555055784c70058d19ba8e275528e8a99a706684868ace5da4e716a4ab"
+checksum = "ded520f16b29e1a9b771c722221b2b0a0398c2316d9bb3c42b458a5414d7434b"
dependencies = [
"zstd-sys",
]
[[package]]
name = "zstd-sys"
-version = "2.1.0+zstd.1.5.7"
+version = "2.1.2+zstd.1.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ef0a8027ec3ee71300ab3bcbcd0393f434aa72b91ca6d635a39941deae8eea0"
+checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3"
dependencies = [
"cc",
"pkg-config",
diff --git a/Cargo.toml b/Cargo.toml
index fc1b2ef88..4732335cf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,17 +12,17 @@ license = "Apache-2.0"
# See also `rust-toolchain.toml`
readme = "README.md"
repository = "https://forgejo.ellis.link/continuwuation/continuwuity"
-version = "26.9.1"
+version = "26.11.0-alpha.2"
[workspace.metadata.crane]
name = "conduwuit"
[workspace.dependencies.arrayvec]
-version = "0.7.6"
+version = "0.7.8"
features = ["serde"]
[workspace.dependencies.smallvec]
-version = "1.14.0"
+version = "1.16.5"
features = [
"const_generics",
"const_new",
@@ -39,10 +39,10 @@ features = ["ffi", "std", "union"]
version = "1.1.0"
[workspace.dependencies.ctor]
-version = "1.0.6"
+version = "1.0.13"
[workspace.dependencies.dtor]
-version = "1.0.0"
+version = "1.0.6"
[workspace.dependencies.cargo_toml]
version = "1.0"
@@ -50,7 +50,7 @@ default-features = false
features = ["features"]
[workspace.dependencies.toml]
-version = "1.1.2"
+version = "1.2.1"
default-features = false
features = ["parse", "serde"]
@@ -58,7 +58,7 @@ features = ["parse", "serde"]
version = "0.6.0"
[workspace.dependencies.base64]
-version = "0.23.0"
+version = "0.23.1"
default-features = false
# used for TURN server authentication
@@ -71,39 +71,40 @@ version = "0.5.0"
default-features = false
[workspace.dependencies.p256]
-version = "0.13.2"
+version = "0.14.0"
default-features = false
features = ["ecdsa", "std"]
# used for checking if an IP is in specific subnets / CIDR ranges easier
[workspace.dependencies.ipaddress]
-version = "0.2.0"
+version = "0.2.11"
[workspace.dependencies.rand]
-version = "0.10.1"
+version = "0.10.3"
# Used for the http request / response body type for Ruma endpoints used with reqwest
[workspace.dependencies.bytes]
-version = "1.10.1"
+version = "1.12.1"
[workspace.dependencies.http-body-util]
-version = "0.1.3"
+version = "0.1.5"
[workspace.dependencies.http]
-version = "1.3.1"
+version = "1.5.0"
# parses the HTTP-date form of Retry-After
[workspace.dependencies.httpdate]
version = "1.0.3"
[workspace.dependencies.regex]
-version = "1.11.1"
+version = "1.13.1"
[workspace.dependencies.axum]
-version = "0.8.8"
+version = "0.8.9"
default-features = false
features = [
"form",
+ "query",
"http1",
"http2",
"json",
@@ -113,7 +114,7 @@ features = [
]
[workspace.dependencies.axum-extra]
-version = "0.12.0"
+version = "0.12.6"
default-features = false
features = ["typed-header", "tracing", "cookie"]
@@ -132,12 +133,12 @@ default-features = false
version = "0.2"
[workspace.dependencies.tower]
-version = "0.5.2"
+version = "0.5.3"
default-features = false
features = ["util"]
[workspace.dependencies.tower-http]
-version = "0.7.0"
+version = "0.7.1"
default-features = false
features = [
"add-extension",
@@ -151,38 +152,46 @@ features = [
]
[workspace.dependencies.rustls]
-version = "0.23.25"
+version = "0.23.46"
default-features = false
[workspace.dependencies.reqwest]
-version = "0.13.2"
+version = "0.13.5"
default-features = false
features = [
"rustls-no-provider",
"socks",
- "hickory-dns",
"http2",
"stream",
"form",
]
+# Needed for as long as openidconnect is on an outdated reqwest
+[workspace.dependencies.reqwest_0_12]
+package = "reqwest"
+version = "0.12"
+default-features = false
+features = [
+ "rustls-tls-native-roots-no-provider",
+]
+
[workspace.dependencies.serde]
-version = "1.0.219"
+version = "1.0.229"
default-features = false
features = ["rc"]
[workspace.dependencies.serde_json]
-version = "1.0.140"
+version = "1.0.154"
default-features = false
features = ["raw_value"]
# Used for appservice registration files
[workspace.dependencies.serde-saphyr]
-version = "1.0.0"
+version = "2.1.1"
# Used to load forbidden room/user regex from config
[workspace.dependencies.serde_regex]
-version = "1.1.0"
+version = "1.2.0"
# Used for password hashing
[workspace.dependencies.argon2]
@@ -192,7 +201,7 @@ default-features = false
# Used to generate thumbnails for images
[workspace.dependencies.image]
-version = "0.25.5"
+version = "0.25.10"
default-features = false
features = [
"jpeg",
@@ -203,29 +212,29 @@ features = [
# logging
[workspace.dependencies.log]
-version = "0.4.27"
+version = "0.4.35"
default-features = false
[workspace.dependencies.tracing]
-version = "0.1.41"
+version = "0.1.44"
default-features = false
[workspace.dependencies.tracing-subscriber]
-version = "0.3.20"
+version = "0.3.23"
default-features = false
features = ["env-filter", "std", "tracing", "tracing-log", "ansi", "fmt"]
[workspace.dependencies.tracing-journald]
-version = "0.3.1"
+version = "0.3.2"
[workspace.dependencies.tracing-core]
-version = "0.1.34"
+version = "0.1.36"
default-features = false
# for URL previews
[workspace.dependencies.webpage]
-version = "2.0.1"
+version = "2.1.0"
default-features = false
# used for conduwuit's CLI and admin room command parsing
[workspace.dependencies.clap]
-version = "4.5.35"
+version = "4.6.7"
default-features = false
features = [
"derive",
@@ -238,12 +247,12 @@ features = [
]
[workspace.dependencies.futures]
-version = "0.3.31"
+version = "0.3.34"
default-features = false
features = ["std", "async-await"]
[workspace.dependencies.tokio]
-version = "1.44.2"
+version = "1.54.1"
default-features = false
features = [
"fs",
@@ -258,25 +267,25 @@ features = [
]
[workspace.dependencies.tokio-metrics]
-version = "0.5.0"
+version = "0.5.2"
-[workspace.dependencies.libloading]
-version = "0.9.0"
+[workspace.dependencies.wildmatch]
+version = "2.7.0"
# Validating urls in config, was already a transitive dependency
[workspace.dependencies.url]
-version = "2.5.4"
+version = "2.5.8"
default-features = false
features = ["serde"]
# standard date and time tools
[workspace.dependencies.chrono]
-version = "0.4.38"
+version = "0.4.45"
features = ["alloc", "std"]
default-features = false
[workspace.dependencies.hyper]
-version = "1.6.0"
+version = "1.12.0"
default-features = false
features = [
"server",
@@ -295,7 +304,7 @@ features = [
# to support multiple variations of setting a config option
[workspace.dependencies.either]
-version = "1.15.0"
+version = "1.19.0"
default-features = false
features = ["serde"]
@@ -306,7 +315,7 @@ default-features = false
features = ["env", "toml"]
[workspace.dependencies.hickory-resolver]
-version = "0.26.0"
+version = "0.26.3"
default-features = false
features = [
"serde",
@@ -316,7 +325,7 @@ features = [
# Used for conduwuit::Error type
[workspace.dependencies.thiserror]
-version = "2.0.12"
+version = "2.0.21"
default-features = false
# Used to make working with iterators easier, was already a transitive depdendency
@@ -330,14 +339,14 @@ version = "2.1.1"
# used for MPSC channels
[workspace.dependencies.loole]
-version = "0.4.0"
+version = "0.6.0"
# used for MPMC channels
[workspace.dependencies.async-channel]
version = "2.5.0"
[workspace.dependencies.async-trait]
-version = "0.1.88"
+version = "0.1.92"
[workspace.dependencies.lru-cache]
version = "0.1.2"
@@ -348,7 +357,7 @@ version = "1.1.1"
# Used for matrix spec type definitions and helpers
[workspace.dependencies.ruma]
git = "https://github.com/ruma/ruma.git"
-rev = "f5e5e1c885f598036fd4326c566e9d1928027d5d"
+rev = "472a23ef86bc0bb40a22d856fc0af539eb9d71b7"
features = [
"appservice-api-c",
"client-api",
@@ -383,17 +392,19 @@ features = [
"unstable-msc4406",
"unstable-msc4439",
"unstable-msc4354",
+ "unstable-msc4388",
"unstable-msc4480",
"unstable-msc4466",
"unstable-msc4494",
"unstable-msc4484",
"unstable-msc4540",
+ "unstable-msc4560",
"unstable-extensible-events",
]
[workspace.dependencies.rust-rocksdb]
git = "https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1"
-rev = "0a25ff92f7c09b55eec496b9c192c7d5136ab2b8"
+rev = "85ded20348e3dab902c239967075795e9c6d101b"
default-features = false
features = [
"multi-threaded-cf",
@@ -404,7 +415,7 @@ features = [
]
[workspace.dependencies.sha2]
-version = "0.11.0"
+version = "0.11.1"
default-features = false
[workspace.dependencies.sha1]
@@ -412,19 +423,22 @@ version = "0.11.0"
default-features = false
[workspace.dependencies.openidconnect]
-version = "4.0.1"
+version = "4.1.0"
+default-features = false
+features = ["reqwest"]
# optional opentelemetry, performance measurements, flamegraphs, etc for performance measurements and monitoring
[workspace.dependencies.opentelemetry]
-version = "0.33.0"
+version = "0.33.1"
[workspace.dependencies.opentelemetry-instrumentation-tower]
-version = "0.19.0"
+git = "https://github.com/open-telemetry/opentelemetry-rust-contrib"
+rev = "6bbbc337aab0bcf10d7799c3e5b5ced75920491a"
default-features = false
features = ["axum"]
[workspace.dependencies.opentelemetry-semantic-conventions]
-version = "0.33.0"
+version = "0.33.1"
features = ["semconv_experimental"]
[workspace.dependencies.tracing-flame]
@@ -434,25 +448,25 @@ version = "0.2.0"
version = "0.34.0"
[workspace.dependencies.opentelemetry_sdk]
-version = "0.33.0"
+version = "0.33.1"
features = ["rt-tokio"]
[workspace.dependencies.opentelemetry-prometheus]
-version = "0.33.0"
+version = "0.33.1"
[workspace.dependencies.prometheus]
version = "0.14.0"
default-features = false
[workspace.dependencies.opentelemetry-otlp]
-version = "0.33.0"
+version = "0.33.1"
features = ["http", "grpc-tonic", "trace", "logs", "metrics"]
# optional sentry metrics for crash/panic reporting
[workspace.dependencies.sentry]
-version = "0.48.0"
+version = "0.49.5"
default-features = false
features = [
"backtrace",
@@ -467,14 +481,14 @@ features = [
]
[workspace.dependencies.sentry-tracing]
-version = "0.48.0"
+version = "0.49.5"
[workspace.dependencies.sentry-tower]
-version = "0.48.0"
+version = "0.49.5"
# jemalloc usage
[workspace.dependencies.tikv-jemalloc-sys]
git = "https://forgejo.ellis.link/continuwuation/jemallocator"
-rev = "df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+rev = "46e7821917b06636cdb5b203d312799970eaea92"
default-features = false
features = [
"background_threads_runtime_support",
@@ -482,7 +496,7 @@ features = [
]
[workspace.dependencies.tikv-jemallocator]
git = "https://forgejo.ellis.link/continuwuation/jemallocator"
-rev = "df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+rev = "46e7821917b06636cdb5b203d312799970eaea92"
default-features = false
features = [
"background_threads_runtime_support",
@@ -490,7 +504,7 @@ features = [
]
[workspace.dependencies.tikv-jemalloc-ctl]
git = "https://forgejo.ellis.link/continuwuation/jemallocator"
-rev = "df86ff89d4b1e223b9f7d2dd2fbb7f202da7f554"
+rev = "46e7821917b06636cdb5b203d312799970eaea92"
default-features = false
features = ["use_std"]
@@ -498,7 +512,7 @@ features = ["use_std"]
version = "0.5"
[workspace.dependencies.nix]
-version = "0.31.0"
+version = "0.31.3"
default-features = false
features = ["resource"]
@@ -506,21 +520,12 @@ features = ["resource"]
version = "0.5.0"
default-features = false
-[workspace.dependencies.hardened_malloc-rs]
-version = "0.1.2"
-default-features = false
-features = [
- "static",
- "gcc",
- "light",
-]
-
[workspace.dependencies.rustyline-async]
version = "0.4.9"
default-features = false
[workspace.dependencies.termimad]
-version = "0.35.0"
+version = "0.35.5"
default-features = false
[workspace.dependencies.checked_ops]
@@ -543,10 +548,10 @@ features = ["hardware-lock-elision", "deadlock_detection"] # TODO: Check if dead
# Use this when extending with_lock::WithLock to parking_lot
[workspace.dependencies.lock_api]
-version = "0.4.13"
+version = "0.5.0"
[workspace.dependencies.bytesize]
-version = "2.0"
+version = "2.7"
[workspace.dependencies.core_affinity]
version = "0.8.3"
@@ -558,11 +563,11 @@ version = "0.2"
version = "0.2"
[workspace.dependencies.minicbor]
-version = "2.1.1"
+version = "2.3.1"
features = ["std"]
[workspace.dependencies.minicbor-serde]
-version = "0.7.0"
+version = "0.7.2"
features = ["std"]
[workspace.dependencies.maplit]
@@ -572,10 +577,10 @@ version = "1.0.2"
version = "1.0.1"
[workspace.dependencies.askama]
-version = "0.16.0"
+version = "0.16.1"
[workspace.dependencies.lettre]
-version = "0.11.19"
+version = "0.11.23"
default-features = false
features = ["smtp-transport", "pool", "hostname", "builder", "rustls", "rustls-native-certs", "tokio1", "rustls-no-provider", "tokio1-rustls", "tracing", "serde"]
@@ -584,15 +589,27 @@ version = "0.10.4"
default-features = false
features = ["std"]
+[workspace.dependencies.mime]
+version = "0.3.18"
+
[workspace.dependencies.nonzero_ext]
version = "0.3.0"
[workspace.dependencies.resolvematrix]
-version = "1.3.0"
+version = "1.5.0"
+features = ["unstable-msc4188"]
[workspace.dependencies.serde_urlencoded]
version = "0.7.1"
+[workspace.dependencies.mimalloc]
+version = "0.1.52"
+features = ["extended"]
+
+[workspace.dependencies.libmimalloc-sys]
+version = "0.1.49"
+features = ["extended"]
+
#
# Patches
#
@@ -736,74 +753,23 @@ inherits = "release"
# Developer profile
#
-# To enable hot-reloading:
-# 1. Uncomment all of the rustflags here.
-# 2. Uncomment crate-type=dylib in src/*/Cargo.toml
-#
-# opt-level, mir-opt-level, validate-mir are not known to interfere with reloading
-# and can be raised if build times are tolerable.
-
[profile.dev]
debug = "full"
opt-level = 0
panic = "unwind"
debug-assertions = true
incremental = true
-#rustflags = [
-# '--cfg', 'conduwuit_mods',
-# '-Ztime-passes',
-# '-Zmir-opt-level=0',
-# '-Zvalidate-mir=false',
-# '-Ztls-model=global-dynamic',
-# '-Cprefer-dynamic=true',
-# '-Zstaticlib-prefer-dynamic=true',
-# '-Zstaticlib-allow-rdylib-deps=true',
-# '-Zpacked-bundled-libs=false',
-# '-Zplt=true',
-# '-Crpath=true',
-# '-Clink-arg=-Wl,--as-needed',
-# '-Clink-arg=-Wl,--allow-shlib-undefined',
-# '-Clink-arg=-Wl,-z,keep-text-section-prefix',
-# '-Clink-arg=-Wl,-z,lazy',
-#]
[profile.dev.package.conduwuit_core]
inherits = "dev"
[profile.dev.package.conduwuit]
inherits = "dev"
-#rustflags = [
-# '--cfg', 'conduwuit_mods',
-# '-Ztime-passes',
-# '-Zmir-opt-level=0',
-# '-Zvalidate-mir=false',
-# '-Ztls-model=global-dynamic',
-# '-Cprefer-dynamic=true',
-# '-Zexport-executable-symbols=true',
-# '-Zplt=true',
-# '-Crpath=true',
-# '-Clink-arg=-Wl,--as-needed',
-# '-Clink-arg=-Wl,--allow-shlib-undefined',
-# '-Clink-arg=-Wl,--export-dynamic',
-# '-Clink-arg=-Wl,-z,lazy',
-#]
[profile.dev.package.'*']
inherits = "dev"
debug = 'limited'
codegen-units = 1
opt-level = 'z'
-#rustflags = [
-# '--cfg', 'conduwuit_mods',
-# '-Ztls-model=global-dynamic',
-# '-Cprefer-dynamic=true',
-# '-Zstaticlib-prefer-dynamic=true',
-# '-Zstaticlib-allow-rdylib-deps=true',
-# '-Zpacked-bundled-libs=true',
-# '-Zplt=true',
-# '-Clink-arg=-Wl,--as-needed',
-# '-Clink-arg=-Wl,-z,lazy',
-# '-Clink-arg=-Wl,-z,nodelete',
-#]
# primarily used for CI
[profile.test]
@@ -1008,4 +974,7 @@ collapsible_if = "allow"
cognitive_complexity = "allow"
[workspace.metadata.cargo-shear]
-ignored = ["const-str", "ctor", "dtor"]
+# All of these crates provide macros that are used across the codebase
+# and that every crate depends on. cargo-shear can't tell this because
+# it doesn't expand macros.
+ignored = ["const-str", "ctor", "dtor", "tracing"]
diff --git a/SECURITY.md b/SECURITY.md
index b386a571f..913992235 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -23,12 +23,15 @@ to encourage users to stay up-to-date with the latest release, and we have no co
We appreciate the efforts of security researchers and the community in identifying and reporting vulnerabilities. To
ensure that potential vulnerabilities are addressed properly, please follow these guidelines:
-1. **Contact members of the team directly** over E2EE private message.
+1. **Contact _all_ members of the team** over E2EE private message on Matrix.
+ Add each contact to the same encrypted room. **Do not message maintainers individually**.
+ If you cannot reach us from matrix.org, please try [another server][sl] (e.g. continuwuity.rocks).
- [@jade:ellis.link](https://matrix.to/#/@jade:ellis.link)
- [@nex:nexy7574.co.uk](https://matrix.to/#/@nex:nexy7574.co.uk)
- [@ginger:gingershaped.computer](https://matrix.to/#/@ginger:gingershaped.computer)
2. **Email the security team** at [security@continuwuity.org](mailto:security@continuwuity.org). This is not E2EE, so
- don't include sensitive details.
+ don't include sensitive details. Do not ask where to send sensitive details either; that
+ information is included in this security policy. We may not respond to emails that do this.
3. **Do not disclose the vulnerability publicly** until a fix has been pushed to the main branch.
4. **Provide detailed information** about the vulnerability, including:
- A clear description of the issue
@@ -42,6 +45,8 @@ ensure that potential vulnerabilities are addressed properly, please follow thes
If you have any doubts about a potential security vulnerability, contact us via private channels first! We'd prefer that
you bother us, instead of having a vulnerability disclosed without a fix.
+[sl]: https://servers.joinmatrix.org
+
### Terms for credit
Before reporting a vulnerability, please remember that we are a small team maintaining a large codebase depended upon by
@@ -105,4 +110,4 @@ When security vulnerabilities are identified:
---
-This security policy was last updated on May 25, 2025.
+This security policy was last updated on November 17th, 2026.
diff --git a/bin/complement b/bin/complement
index f1ac017d1..0d5a56e98 100755
--- a/bin/complement
+++ b/bin/complement
@@ -52,8 +52,10 @@ else
fi
# The base docker image to use for complement tests
-# You can build the default with `docker build -t continuwuity:complement -f ./docker/complement.Dockerfile .`
-# after running `cargo build`. Only the debug binary is used.
+# On Linux, you can build the default with `docker build -t continuwuity:complement -f ./docker/complement.Dockerfile .`
+# after running `cargo build -p conduwuit --features openreg`.
+# On non-Linux platforms (or to use a container build), build `docker/Dockerfile` with debuginfo and openreg `--build-arg RUST_PROFILE=dev --build-arg CARGO_FEATURES=default,openreg`
+# and then run `docker build -t continuwuity:complement --target container -f ./docker/complement.Dockerfile .`.
COMPLEMENT_BASE_IMAGE="${COMPLEMENT_BASE_IMAGE:-continuwuity:complement}"
# Complement tests that are skipped due to flakiness/reliability issues or we don't implement such features and won't for a long time
@@ -83,6 +85,13 @@ for command in docker go jq; do
fi
done
+if [ -z "${DOCKER_HOST:-}" ]; then
+ DOCKER_HOST="$(docker context inspect --format '{{.Endpoints.docker.Host}}' 2>/dev/null || true)"
+ if [ -n "$DOCKER_HOST" ]; then
+ export DOCKER_HOST
+ fi
+fi
+
if [ -n "$IMAGE_ARCHIVE" ]; then
if [ ! -f "$IMAGE_ARCHIVE" ]; then
echo "Docker image archive not found: $IMAGE_ARCHIVE"
@@ -99,7 +108,12 @@ fi
if ! docker image inspect "$COMPLEMENT_BASE_IMAGE" > /dev/null 2>&1; then
echo "Complement base image not found: $COMPLEMENT_BASE_IMAGE"
- echo "Build it with: cargo build -p conduwuit && docker build -t $COMPLEMENT_BASE_IMAGE -f docker/complement.Dockerfile ."
+ if [ "$(uname -s)" != "Linux" ]; then
+ echo "Build it with: docker buildx build --load -t continuwuity:latest-openreg --build-arg RUST_PROFILE=dev --build-arg CARGO_FEATURES=default,openreg -f docker/Dockerfile . && docker build -t $COMPLEMENT_BASE_IMAGE --target container -f docker/complement.Dockerfile ."
+ else
+ echo "Build it with: cargo build -p conduwuit --features openreg && docker build -t $COMPLEMENT_BASE_IMAGE -f docker/complement.Dockerfile ."
+ echo "Or from a container build: docker buildx build --load -t continuwuity:latest-openreg --build-arg RUST_PROFILE=dev --build-arg CARGO_FEATURES=default,openreg -f docker/Dockerfile . && docker build -t $COMPLEMENT_BASE_IMAGE --target container -f docker/complement.Dockerfile ."
+ fi
exit 1
fi
diff --git a/changelog.d/+01d550e6.feature.md b/changelog.d/+01d550e6.feature.md
new file mode 100644
index 000000000..bb9a865ac
--- /dev/null
+++ b/changelog.d/+01d550e6.feature.md
@@ -0,0 +1,3 @@
+Implemented unstable support for [MSC4560] (Stripped state requests over federation). Contributed by @ginger.
+
+[MSC4560]: https://github.com/matrix-org/matrix-spec-proposals/pull/4560
diff --git a/changelog.d/+4a4ebd67.misc.md b/changelog.d/+4a4ebd67.misc.md
new file mode 100644
index 000000000..f36da4938
--- /dev/null
+++ b/changelog.d/+4a4ebd67.misc.md
@@ -0,0 +1 @@
+Upgraded rocksdb from 11.1.1 to 11.12.0 and jemalloc to 5.4.0.
diff --git a/changelog.d/+74cd7995.feature.md b/changelog.d/+74cd7995.feature.md
new file mode 100644
index 000000000..da20c50ae
--- /dev/null
+++ b/changelog.d/+74cd7995.feature.md
@@ -0,0 +1 @@
+Check content-type header on federation responses, ignoring any that don't match (spec compliance)
diff --git a/changelog.d/+8da3c370.feature.md b/changelog.d/+8da3c370.feature.md
new file mode 100644
index 000000000..b561f4e97
--- /dev/null
+++ b/changelog.d/+8da3c370.feature.md
@@ -0,0 +1 @@
+The first-run version of the web UI now includes a link to the registration page. Contributed by @ginger
diff --git a/changelog.d/+account-data-replaced-entries.bugfix.md b/changelog.d/+account-data-replaced-entries.bugfix.md
new file mode 100644
index 000000000..c3751d5a9
--- /dev/null
+++ b/changelog.d/+account-data-replaced-entries.bugfix.md
@@ -0,0 +1 @@
+Fix account data updates sent at the same time leaving old copies behind, which every initial sync then returned. Existing copies are removed on startup. Contributed by @eleboucher.
diff --git a/changelog.d/+b5e913f8.bugfix.md b/changelog.d/+b5e913f8.bugfix.md
new file mode 100644
index 000000000..cea4cfece
--- /dev/null
+++ b/changelog.d/+b5e913f8.bugfix.md
@@ -0,0 +1 @@
+Room summary visibility checks are no longer incorrectly applied for remote rooms. Contributed by @ginger.
diff --git a/changelog.d/+create-room-bad-json.bugfix.md b/changelog.d/+create-room-bad-json.bugfix.md
new file mode 100644
index 000000000..7bba2bd13
--- /dev/null
+++ b/changelog.d/+create-room-bad-json.bugfix.md
@@ -0,0 +1 @@
+Creating a room with valid but non-canonical JSON now returns `400 M_BAD_JSON` instead of panicking the worker and returning `500 M_UNKNOWN`.
diff --git a/changelog.d/+device-list-count-race.bugfix.md b/changelog.d/+device-list-count-race.bugfix.md
new file mode 100644
index 000000000..ef40e7e07
--- /dev/null
+++ b/changelog.d/+device-list-count-race.bugfix.md
@@ -0,0 +1 @@
+Fix new devices sometimes never reaching other users' device lists. Contributed by @eleboucher.
diff --git a/changelog.d/+f05dfc14.doc.md b/changelog.d/+f05dfc14.doc.md
new file mode 100644
index 000000000..542314fb9
--- /dev/null
+++ b/changelog.d/+f05dfc14.doc.md
@@ -0,0 +1 @@
+The documentation now refers to the Continuwuity Docker service as `continuwuity` instead of `homeserver`.
diff --git a/changelog.d/+gap-fill-outlier-missing-prevs.bugfix.md b/changelog.d/+gap-fill-outlier-missing-prevs.bugfix.md
new file mode 100644
index 000000000..76c5a059f
--- /dev/null
+++ b/changelog.d/+gap-fill-outlier-missing-prevs.bugfix.md
@@ -0,0 +1 @@
+Fix gap filling skipping outlier events that are missing their previous events. Contributed by @eleboucher.
diff --git a/changelog.d/+local-join-forbidden.bugfix.md b/changelog.d/+local-join-forbidden.bugfix.md
new file mode 100644
index 000000000..3e5b62d94
--- /dev/null
+++ b/changelog.d/+local-join-forbidden.bugfix.md
@@ -0,0 +1 @@
+Joining a local room the user is not allowed to join now returns `403 M_FORBIDDEN` instead of `500 M_UNKNOWN` when there are no other servers to try.
diff --git a/changelog.d/+msc2815-unredacted-content.feature.md b/changelog.d/+msc2815-unredacted-content.feature.md
new file mode 100644
index 000000000..f38ba7d91
--- /dev/null
+++ b/changelog.d/+msc2815-unredacted-content.feature.md
@@ -0,0 +1 @@
+Added support for [MSC2815](https://github.com/matrix-org/matrix-spec-proposals/pull/2815), allowing room moderators to fetch the original content of redacted events, behind the `allow_moderators_to_view_redacted_content` config option. Contributed by @eleboucher.
diff --git a/changelog.d/+remove-legacy-media.feature.md b/changelog.d/+remove-legacy-media.feature.md
new file mode 100644
index 000000000..59ed76bc0
--- /dev/null
+++ b/changelog.d/+remove-legacy-media.feature.md
@@ -0,0 +1 @@
+Remove support for legacy, unauthenticated media, including the `allow_legacy_media` and `freeze_legacy_media` options.
diff --git a/changelog.d/+state-before-forks.bugfix.md b/changelog.d/+state-before-forks.bugfix.md
new file mode 100644
index 000000000..70e3eadd7
--- /dev/null
+++ b/changelog.d/+state-before-forks.bugfix.md
@@ -0,0 +1 @@
+Fix incoming federation events losing state changes when predecessors share the same state-before snapshot. Contributed by @eleboucher.
diff --git a/changelog.d/+state-res-auth-order.bugfix.md b/changelog.d/+state-res-auth-order.bugfix.md
new file mode 100644
index 000000000..cbb961545
--- /dev/null
+++ b/changelog.d/+state-res-auth-order.bugfix.md
@@ -0,0 +1 @@
+Fix state resolution applying events out of order, which could undo room joins. Contributed by @eleboucher.
diff --git a/changelog.d/+sync-v3-filter.bugfix.md b/changelog.d/+sync-v3-filter.bugfix.md
new file mode 100644
index 000000000..14d6d1d2a
--- /dev/null
+++ b/changelog.d/+sync-v3-filter.bugfix.md
@@ -0,0 +1 @@
+Legacy `/sync` now honours the `room.rooms`, `room.not_rooms`, `account_data.types` and `account_data.not_types` filter fields instead of returning every room and all account data. Contributed by @eleboucher.
diff --git a/changelog.d/+timestamp-to-event.feature.md b/changelog.d/+timestamp-to-event.feature.md
new file mode 100644
index 000000000..c1f903968
--- /dev/null
+++ b/changelog.d/+timestamp-to-event.feature.md
@@ -0,0 +1 @@
+Added the `GET /_matrix/client/v1/rooms/{roomId}/timestamp_to_event` endpoint as per MSC3030, letting clients find the event closest to a given timestamp. Contributed by @eleboucher.
diff --git a/changelog.d/+to-device-count-race.bugfix.md b/changelog.d/+to-device-count-race.bugfix.md
new file mode 100644
index 000000000..57b847f00
--- /dev/null
+++ b/changelog.d/+to-device-count-race.bugfix.md
@@ -0,0 +1 @@
+Fix to-device messages, including room keys, sometimes being lost before delivery. Contributed by @eleboucher.
diff --git a/changelog.d/2324.doc..md b/changelog.d/2324.doc..md
new file mode 100644
index 000000000..3d767b04b
--- /dev/null
+++ b/changelog.d/2324.doc..md
@@ -0,0 +1 @@
+Add a section on [troubleshooting Docker issues](https://continuwuity.org/troubleshooting#docker-issues). Contributed by @stratself.
diff --git a/changelog.d/2341.doc.md b/changelog.d/2341.doc.md
new file mode 100644
index 000000000..16438a402
--- /dev/null
+++ b/changelog.d/2341.doc.md
@@ -0,0 +1 @@
+Instructions for Authelia added to the [OIDC guide](https://continuwuity.org/authentication/oidc.html). Contributed by @fhoekstra
diff --git a/changelog.d/2351.bugfix.md b/changelog.d/2351.bugfix.md
new file mode 100644
index 000000000..873310447
--- /dev/null
+++ b/changelog.d/2351.bugfix.md
@@ -0,0 +1 @@
+Fix some possible deadlocks/freezes and reduce lock contention (improving performance). Contributed by @Jade
diff --git a/changelog.d/2353.doc.md b/changelog.d/2353.doc.md
new file mode 100644
index 000000000..38722d0bc
--- /dev/null
+++ b/changelog.d/2353.doc.md
@@ -0,0 +1 @@
+Docker compose examples now use bind mounts by default, instead of Docker volumes, as they are easier to work with esp. for backup/restore. Contributed by @stratself.
diff --git a/changelog.d/2354.bugfix.md b/changelog.d/2354.bugfix.md
new file mode 100644
index 000000000..45670f1bb
--- /dev/null
+++ b/changelog.d/2354.bugfix.md
@@ -0,0 +1 @@
+Fixed Prometheus accounting for in-flight requests, federation PDU lag, latency buckets, and thumbnail sizes. Contributed by @eleboucher.
diff --git a/changelog.d/2355.feature.md b/changelog.d/2355.feature.md
new file mode 100644
index 000000000..f76ef7211
--- /dev/null
+++ b/changelog.d/2355.feature.md
@@ -0,0 +1 @@
+Added support for servers returning 410 gone to indicate they are no longer serving a Matrix server (MSC4188). Contributed by @nex and @silversys
diff --git a/changelog.d/2356.bugfix.md b/changelog.d/2356.bugfix.md
new file mode 100644
index 000000000..2836d94f2
--- /dev/null
+++ b/changelog.d/2356.bugfix.md
@@ -0,0 +1 @@
+Once again fixed how room extremities are handled, fixing a problem that made continuwuity gradually make rooms needlessly complex, which also caused more frequent state resets.
diff --git a/changelog.d/2361.bugfix.md b/changelog.d/2361.bugfix.md
new file mode 100644
index 000000000..a0bc00bfc
--- /dev/null
+++ b/changelog.d/2361.bugfix.md
@@ -0,0 +1 @@
+Requests waiting on `/_matrix/client/v3/sync` can now be interrupted by the server shutdown, unblocking the 30-second shutdown delay imposed on a quiet server.
diff --git a/changelog.d/2383.bugfix.md b/changelog.d/2383.bugfix.md
new file mode 100644
index 000000000..5a551ede9
--- /dev/null
+++ b/changelog.d/2383.bugfix.md
@@ -0,0 +1 @@
+The OAuth identity reset page is no longer linked from the account management UI to reduce confusion. Contributed by @ginger.
diff --git a/changelog.d/2387.bugfix.md b/changelog.d/2387.bugfix.md
new file mode 100644
index 000000000..7c82bdffd
--- /dev/null
+++ b/changelog.d/2387.bugfix.md
@@ -0,0 +1 @@
+Fixed a worker panic when knocking on a room over federation. Contributed by @eleboucher.
diff --git a/changelog.d/2400.bugfix.md b/changelog.d/2400.bugfix.md
new file mode 100644
index 000000000..406586732
--- /dev/null
+++ b/changelog.d/2400.bugfix.md
@@ -0,0 +1 @@
+Perform more validation on events received during atomic gapfill from remote servers, fixing a panic if bad data was persisted by another server and later lazily fetched by us.
diff --git a/changelog.d/2415.bugfix b/changelog.d/2415.bugfix
new file mode 100644
index 000000000..75fbffad8
--- /dev/null
+++ b/changelog.d/2415.bugfix
@@ -0,0 +1 @@
+Fix remote server key signature verification when extra fields exist. Contributed by @hexchen
diff --git a/changelog.d/2421.bugfix.md b/changelog.d/2421.bugfix.md
new file mode 100644
index 000000000..f5c1e842d
--- /dev/null
+++ b/changelog.d/2421.bugfix.md
@@ -0,0 +1 @@
+Redirect URIs in OAuth clients' metadata are now properly validated to be on a subdomain of the OAuth issuer URL domain. Contributed by @ginger.
diff --git a/changelog.d/2423.misc.md b/changelog.d/2423.misc.md
new file mode 100644
index 000000000..bb1cb186c
--- /dev/null
+++ b/changelog.d/2423.misc.md
@@ -0,0 +1 @@
+Updated internal Sentry integration setup to the new pattern required by the SDK.
diff --git a/changelog.d/2424.bugfix.md b/changelog.d/2424.bugfix.md
new file mode 100644
index 000000000..be4e5be70
--- /dev/null
+++ b/changelog.d/2424.bugfix.md
@@ -0,0 +1 @@
+Fix v12 rooms created by the same user in the same millisecond ending up as the same room. Contributed by @eleboucher.
diff --git a/changelog.d/2429.feature.md b/changelog.d/2429.feature.md
new file mode 100644
index 000000000..a2b595fb5
--- /dev/null
+++ b/changelog.d/2429.feature.md
@@ -0,0 +1 @@
+Added support for MSC4388, allowing compatible Matrix clients to log in to Continuwuity by scanning a QR code on an already logged-in client. Contributed by @ginger.
diff --git a/changelog.d/2444.bugfix.md b/changelog.d/2444.bugfix.md
new file mode 100644
index 000000000..27d87e4d0
--- /dev/null
+++ b/changelog.d/2444.bugfix.md
@@ -0,0 +1 @@
+Client-server API endpoints are now properly ratelimited for unauthenticated requests. Contributed by @ginger.
diff --git a/changelog.d/2448.bugfix.md b/changelog.d/2448.bugfix.md
new file mode 100644
index 000000000..557e68c4a
--- /dev/null
+++ b/changelog.d/2448.bugfix.md
@@ -0,0 +1 @@
+URL previews no longer completely fail if downloading auxiliary content (images/videos/audio) fails. Contributed by @nex.
diff --git a/changelog.d/2451.bugfix.1.md b/changelog.d/2451.bugfix.1.md
new file mode 100644
index 000000000..c102c6bd5
--- /dev/null
+++ b/changelog.d/2451.bugfix.1.md
@@ -0,0 +1 @@
+Setting a profile key longer than 255 bytes now returns 400 `M_KEY_TOO_LARGE` as required by the spec, instead of 413 `M_TOO_LARGE`.
diff --git a/changelog.d/2451.bugfix.2.md b/changelog.d/2451.bugfix.2.md
new file mode 100644
index 000000000..49cf46a52
--- /dev/null
+++ b/changelog.d/2451.bugfix.2.md
@@ -0,0 +1 @@
+Setting profile data that would make the profile exceed 64 KiB now returns 400 `M_PROFILE_TOO_LARGE` as required by the spec, instead of a 500 error.
diff --git a/changelog.d/2451.bugfix.3.md b/changelog.d/2451.bugfix.3.md
new file mode 100644
index 000000000..f75d21824
--- /dev/null
+++ b/changelog.d/2451.bugfix.3.md
@@ -0,0 +1 @@
+Appservices masquerading as a device that does not exist now receive 400 `M_UNKNOWN_DEVICE` as required by the spec, instead of 403 `M_FORBIDDEN`.
diff --git a/changelog.d/2451.bugfix.4.md b/changelog.d/2451.bugfix.4.md
new file mode 100644
index 000000000..10f6a4da1
--- /dev/null
+++ b/changelog.d/2451.bugfix.4.md
@@ -0,0 +1 @@
+Setting `m.fully_read` via the account data endpoints now returns 405 `M_BAD_JSON` as required by the spec, instead of 400.
diff --git a/changelog.d/2452.bugfix.md b/changelog.d/2452.bugfix.md
new file mode 100644
index 000000000..451d8a020
--- /dev/null
+++ b/changelog.d/2452.bugfix.md
@@ -0,0 +1 @@
+The `m.forget_forced_upon_leave` capability now reflects the `forget_forced_upon_leave` config option instead of always being advertised as enabled.
diff --git a/changelog.d/2454.bugfix.md b/changelog.d/2454.bugfix.md
new file mode 100644
index 000000000..6dfd7b5df
--- /dev/null
+++ b/changelog.d/2454.bugfix.md
@@ -0,0 +1 @@
+Fixed push notifications for membership events setting `user_is_target` based on the sender rather than the user being notified.
diff --git a/changelog.d/2460.bugfix.md b/changelog.d/2460.bugfix.md
new file mode 100644
index 000000000..fc8955510
--- /dev/null
+++ b/changelog.d/2460.bugfix.md
@@ -0,0 +1 @@
+Ensure HTTP clients actually follow the `dns_servers` config option. Contributed by @silversys
diff --git a/changelog.d/2462.bugfix.md b/changelog.d/2462.bugfix.md
new file mode 100644
index 000000000..8ae8ab125
--- /dev/null
+++ b/changelog.d/2462.bugfix.md
@@ -0,0 +1 @@
+`/_matrix/client/v3/sync` no longer waits 30 seconds if the `timeout` parameter is omitted or set to zero, correctly reflecting the specification's rule that such requests should return immediately, even if they are empty.
diff --git a/changelog.d/2465.bugfix.md b/changelog.d/2465.bugfix.md
new file mode 100644
index 000000000..685f054ab
--- /dev/null
+++ b/changelog.d/2465.bugfix.md
@@ -0,0 +1 @@
+Reworked event relations to follow the spec more closely. Pagination of `/relations` now returns the correct pages and `next_batch` tokens, recursive relations are returned in the right order without duplicates, and bundled `m.reference` aggregations now include every reference. Contributed by @Henry-Hiles (QuadRadical).
diff --git a/changelog.d/2481.bugfix.md b/changelog.d/2481.bugfix.md
new file mode 100644
index 000000000..f0da8f388
--- /dev/null
+++ b/changelog.d/2481.bugfix.md
@@ -0,0 +1 @@
+Read receipts are now more spec compliant, will work better in threads and are less likely to end up causing loops with other software. Contributed by @Jade
diff --git a/changelog.d/2495.bugfix.md b/changelog.d/2495.bugfix.md
new file mode 100644
index 000000000..178437bc9
--- /dev/null
+++ b/changelog.d/2495.bugfix.md
@@ -0,0 +1 @@
+Fix the DNS resolver failing to start without `/etc/resolv.conf` when `dns_servers` is configured. Contributed by @eleboucher.
diff --git a/changelog.d/2497.bugfix.md b/changelog.d/2497.bugfix.md
new file mode 100644
index 000000000..11412dbfc
--- /dev/null
+++ b/changelog.d/2497.bugfix.md
@@ -0,0 +1 @@
+Fixed OIDC logins failing after the identity provider rotates its signing keys. Contributed by @eleboucher.
diff --git a/changelog.d/2517.feature.md b/changelog.d/2517.feature.md
new file mode 100644
index 000000000..ab8a89b1c
--- /dev/null
+++ b/changelog.d/2517.feature.md
@@ -0,0 +1 @@
+Changed the policy on unstable features, disabling most by default and making them configurable in a tidy little `experiments` configuration. See also: #1884.
diff --git a/changelog.d/2533.bugfix.md b/changelog.d/2533.bugfix.md
new file mode 100644
index 000000000..39b0092fb
--- /dev/null
+++ b/changelog.d/2533.bugfix.md
@@ -0,0 +1 @@
+Fixed the experiments implementation in #2517 not properly disabling some functionality when associated experiments weren't enabled.
diff --git a/changelog.d/2542.bugfix.md b/changelog.d/2542.bugfix.md
new file mode 100644
index 000000000..fa6324d5e
--- /dev/null
+++ b/changelog.d/2542.bugfix.md
@@ -0,0 +1 @@
+The sticky events feature flag is correctly advertised in `/_matrix/client/versions` again after it was accidentally removed in #2517.
diff --git a/changelog.d/2556.misc.md b/changelog.d/2556.misc.md
new file mode 100644
index 000000000..8840924f8
--- /dev/null
+++ b/changelog.d/2556.misc.md
@@ -0,0 +1 @@
+The former configuration alias `allow_check_for_updates` is now explicitly deprecated in favor of `allow_announcements_check`. Additionally, `request_ip_source` is now deprecated in favor of `accepted_ip_sources`.
diff --git a/changelog.d/2561.bugfix.md b/changelog.d/2561.bugfix.md
new file mode 100644
index 000000000..783bb173a
--- /dev/null
+++ b/changelog.d/2561.bugfix.md
@@ -0,0 +1 @@
+A message is now sent to the admin room when a user logs in for the first time through an OIDC provider, if admin room notices are enabled. Contributed by @ginger.
diff --git a/changelog.d/2564.feature.md b/changelog.d/2564.feature.md
new file mode 100644
index 000000000..ad2f99eb2
--- /dev/null
+++ b/changelog.d/2564.feature.md
@@ -0,0 +1 @@
+Dropped support for `hardened_malloc` and add support for `mimalloc` instead. Contributed by @nex and @jade.
diff --git a/changelog.d/2565.bugfix.md b/changelog.d/2565.bugfix.md
new file mode 100644
index 000000000..e47a8dc25
--- /dev/null
+++ b/changelog.d/2565.bugfix.md
@@ -0,0 +1 @@
+Fix soundness and correctness issues in the jemalloc interface, improving performance. Contributed by @Jade
diff --git a/changelog.d/get-missing-events-earliest-limit.bugfix.md b/changelog.d/get-missing-events-earliest-limit.bugfix.md
new file mode 100644
index 000000000..2e5d51f8c
--- /dev/null
+++ b/changelog.d/get-missing-events-earliest-limit.bugfix.md
@@ -0,0 +1 @@
+Fixed `/get_missing_events` rejecting requests with more `earliest_events` than the `limit`. Contributed by @eleboucher.
diff --git a/changelog.d/sender-supervision.bugfix.md b/changelog.d/sender-supervision.bugfix.md
new file mode 100644
index 000000000..bbd9bce83
--- /dev/null
+++ b/changelog.d/sender-supervision.bugfix.md
@@ -0,0 +1 @@
+Fix outgoing federation stalling after a sender worker panics. Contributed by @eleboucher.
diff --git a/complement/complement.config.toml b/complement/complement.config.toml
index dc7e66d6c..2f2172f05 100644
--- a/complement/complement.config.toml
+++ b/complement/complement.config.toml
@@ -31,7 +31,6 @@ rocksdb_log_level = "info"
rocksdb_max_log_files = 1
rocksdb_recovery_mode = 0
rocksdb_paranoid_file_checks = true
-allow_legacy_media = true
startup_netburst = true
startup_netburst_keep = -1
allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure = true
diff --git a/conduwuit-example.toml b/conduwuit-example.toml
index 9f79f7f76..52217e96e 100644
--- a/conduwuit-example.toml
+++ b/conduwuit-example.toml
@@ -412,7 +412,7 @@
# env: CONTINUWUITY_IP_LOOKUP_STRATEGY
#ip_lookup_strategy = 5
-# The preferred source to use for getting the real client IP.
+# DEPRECATED: The preferred source to use for getting the real client IP.
#
# Takes any of the following options:
#
@@ -431,9 +431,10 @@
# to set this header" check; if the header selected is present, it is
# used.
#
-# Ignored if `accepted_ip_sources` is set.
+# Ignored if `accepted_ip_sources` is set. `accepted_ip_sources` is
+# the preferred alternative.
#
-# If not set set, `direct` is used. Additionally, `direct` is used
+# If not set, `direct` is used. Additionally, `direct` is used
# as a fallback if the chosen header is not found.
#
# env: CONTINUWUITY_REQUEST_IP_SOURCE
@@ -685,6 +686,13 @@
# env: CONTINUWUITY_SENDER_SHUTDOWN_TIMEOUT
#sender_shutdown_timeout = 5
+# Maximum number of requests per minute that unauthenticated clients
+# may make to ratelimited client-server API routes. This ratelimit is
+# global across all endpoints for each IP.
+#
+# env: CONTINUWUITY_UNAUTHENTICATED_REQUEST_RATELIMIT
+#unauthenticated_request_ratelimit = 30
+
# Enables registration. If set to false, no users can register on this
# server.
#
@@ -805,15 +813,32 @@
# env: CONTINUWUITY_FORGET_FORCED_UPON_LEAVE
#forget_forced_upon_leave = false
-# Set this to true to require authentication on the normally
-# unauthenticated profile retrieval endpoints (GET)
-# "/_matrix/client/v3/profile/{userId}".
+# Set this to true to require authentication when looking up user profiles
+# through this server.
#
-# This can prevent profile scraping.
+# By default this is false, allowing tools such as matrix.to to access
+# profiles of users on this server and on other servers.
+# Setting this to true will block those tools, and may block automated
+# crawlers from scraping users' profiles, although it will not block
+# other homeservers from accessing users' profiles.
#
# env: CONTINUWUITY_REQUIRE_AUTH_FOR_PROFILE_REQUESTS
#require_auth_for_profile_requests = false
+# Set this to true to require authentication to create a rendezvous
+# session. Rendezvous sessions are used for QR code login.
+#
+# For QR code login, the device that shows the QR code is the one that
+# creates the rendezvous session. Therefore, this must be false to let
+# a logged-out device show a QR code.
+#
+# By default this is false to allow logged-out desktop devices (which may
+# not have a camera) to show a QR code. Setting this to true will
+# require logged-out devices to scan the QR code instead.
+#
+# env: CONTINUWUITY_REQUIRE_AUTH_FOR_RENDEZVOUS
+#require_auth_for_rendezvous = false
+
# Set this to true to allow your server's public room directory to be
# federated. Set this to false to protect against /publicRooms spiders,
# but will forbid external users from viewing your server's public room
@@ -1647,13 +1672,6 @@
# env: CONTINUWUITY_ALLOW_INCOMING_TYPING
#allow_incoming_typing = true
-# Allow the use of unstable persistent "sticky events" ([MSC4354])
-#
-# MSC4354: https://c10y.cc/MSC4354
-#
-# env: CONTINUWUITY_ALLOW_STICKY_EVENTS
-#allow_sticky_events = false
-
# Maximum time federation user can indicate typing.
#
# env: CONTINUWUITY_TYPING_FEDERATION_TIMEOUT_S
@@ -1704,29 +1722,6 @@
# env: CONTINUWUITY_BROTLI_COMPRESSION
#brotli_compression = false
-# Enable the legacy unauthenticated Matrix media repository endpoints.
-# These endpoints consist of:
-# - /_matrix/media/*/config
-# - /_matrix/media/*/upload
-# - /_matrix/media/*/preview_url
-# - /_matrix/media/*/download/*
-# - /_matrix/media/*/thumbnail/*
-#
-# The authenticated equivalent endpoints are always enabled.
-#
-# Defaults to false, as unauthenticated media has been sunsetted.
-#
-# env: CONTINUWUITY_ALLOW_LEGACY_MEDIA
-#allow_legacy_media = false
-
-# If set to true, prevents fetching new legacy remote media.
-#
-# Legacy media may still be accessible if it was already fetched
-# previously and allow_legacy_media is true.
-#
-# env: CONTINUWUITY_FREEZE_LEGACY_MEDIA
-#freeze_legacy_media = true
-
# Check consistency of the media directory at startup:
# 1. When `media_compat_file_link` is enabled, this check will upgrade
# media when switching back and forth between Conduit and conduwuit.
@@ -2677,3 +2672,144 @@
#
# env: CONTINUWUITY_OAUTH__OIDC__PROFILE_KEY_IMPORT_MODE
#profile_key_import_mode = "on_registration"
+
+[global.experiments]
+# Continuwuity's experimental features are frequently updated.
+# If you got this configuration via a package manager, chances are it's outdated.
+# Check out the configuration reference online to see a fresh version:
+# https://continuwuity.org/reference/config.html#:~:text=global.experiments
+#
+# Please keep in mind that experiments are used to enable unstable features.
+# You probably don't need to enable any of these unless you know what they are,
+# and consequently know why you should enable them.
+
+
+# MSC3814: Dehydrated devices with SSSS
+#
+# Enables server-side support for "dehydrated devices", which are
+# server-side devices (created by supporting clients) that can collect
+# encryption keys when there are no online devices, which supporting
+# clients can then "hydrate" to download any encryption keys that were
+# sent while they were offline.
+#
+# Important: this is NOT required to receive encrypted messages while you
+# are offline. Devices can still receive encrypted messages while they are
+# offline, but to share those keys with new devices, they have to be
+# online. Dehydrated devices work around this by providing a "shared"
+# device new sessions can bootstrap from, to receive keys from before they
+# logged in that haven't been uploaded to the server-side key backup yet.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/3814
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC3814
+#msc3814 = false
+
+# MSC4155: Invite filtering
+#
+# Provides advanced invite filtering rules for users, allowing complex
+# configurations that can allow, ignore, and reject invites from users and
+# servers broadly.
+#
+# Requires a supporting client to set up on an account.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4155
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4155
+#msc4155 = false
+
+# MSC4174: Web push
+#
+# Adds server-side support for web push, allowing web clients to receive
+# push notifications directly without the need for an intermediary push
+# gateway like Sygnal.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4174
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4174
+#msc4174 = false
+
+# MSC4406: `M_SENDER_IGNORED` error code
+#
+# Introduces a new error code that explicitly informs clients the reason
+# they cannot access an event if it is sent by an ignored user. Without
+# this proposal, clients will simply get a "not found" or "forbidden"
+# error when requesting events sent by users that have been ignored, which
+# leads to replies being shown as "this message could not be found".
+# The new error code allows clients to distinguish unknown/forbidden
+# events from ignored senders, allowing them to display an error message
+# like "you have blocked this sender" instead.
+#
+# Requires a supporting client to be useful.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4406
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4406
+#msc4406 = false
+
+# MSC4484: Server Administration OAuth Scope
+#
+# Adds a new OAuth2 scope that explicitly grants a token temporary
+# homeserver administrator privileges, granting temporary token access
+# to administrator endpoints like locking & suspension.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4484
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4484
+#msc4484 = false
+
+# MSC4494: Membership-based invite blocking
+#
+# Adds a new invite blocking action that will reject all invites coming
+# from users who do not share a room with the invitee that is not `public`
+# (the join rule).
+#
+# This is not related to MSC4155, this proposal instead builds on the
+# "invite blocking" proposal that landed in the specification in v1.17,
+# which simply allows enabling or disabling invites altogether.
+#
+# MSC4494 is a good middle-ground between the allowlisting possible with
+# MSC4155, and the general desire to block invites from users you may not
+# know.
+#
+# Requires a supporting client to enable on an account.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4494
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4494
+#msc4494 = false
+
+# MSC4560: Stripped state requests over federation
+#
+# Implements a more efficient way for servers to acquire and serve
+# "stripped state" to clients, which is typically only used for displaying
+# rooms. The display of space hierarchies and room summaries is
+# significantly faster when this proposal is enabled and used.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/4560
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC4560
+#msc4560 = false
+
+#[global.experiments.msc2815]
+# MSC2815: Proposal to allow room moderators to view redacted event content
+#
+# Allows the server to retain unredacted copies of events that have been
+# redacted for a limited period of time, which allows room moderators and
+# server administrators to reveal redacted contents. Useful for moderation
+# and investigating reports.
+#
+# Requires a supporting client to use.
+#
+# https://github.com/matrix-org/matrix-spec-proposals/pull/2815
+
+
+# Whether to enable MSC2815.
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC2815__ENABLED
+#enabled = false
+
+# How long, in seconds, to retain the original content of redacted
+# events before it is permanently erased. Defaults to 90 days.
+#
+# env: CONTINUWUITY_EXPERIMENTS__MSC2815__UNREDACTED_CONTENT_MAX_AGE_SECS
+#unredacted_content_max_age_secs = 7776000
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1c32a245c..3af00fb98 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -50,7 +50,7 @@ EOF
# Developer tool versions
# renovate: datasource=github-releases depName=cargo-bins/cargo-binstall
-ENV BINSTALL_VERSION=1.25.3
+ENV BINSTALL_VERSION=1.28.0
# renovate: datasource=github-releases depName=psastras/sbom-rs
ENV CARGO_SBOM_VERSION=0.9.1
# renovate: datasource=crate depName=lddtree
@@ -192,7 +192,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
jq -r ".target_directory"))
mkdir /out/sbin
PACKAGE=conduwuit
- CARGO_LOG=debug xx-cargo build --locked --profile ${RUST_PROFILE} \
+ xx-cargo build --locked --profile ${RUST_PROFILE} \
--no-default-features --features ${CARGO_FEATURES} \
-p $PACKAGE;
BINARIES=($(cargo metadata --no-deps --format-version 1 | \
diff --git a/docker/complement.Dockerfile b/docker/complement.Dockerfile
index 1cef3527d..82dd1a970 100644
--- a/docker/complement.Dockerfile
+++ b/docker/complement.Dockerfile
@@ -1,11 +1,29 @@
-FROM ubuntu:latest
+ARG CONTINUWUITY_IMAGE=continuwuity:latest-openreg
+ARG BINARY_SOURCE=host
+
+FROM ${CONTINUWUITY_IMAGE} AS container-binary
+
+FROM scratch AS host-binary
+ARG BINARY_PATH=target/debug/conduwuit
+COPY ${BINARY_PATH} /sbin/conduwuit
+
+FROM ubuntu:latest AS base
EXPOSE 8008
EXPOSE 8448
RUN apt-get update && apt-get install -y ca-certificates liburing2 && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/continuwuity /var/lib/continuwuity /usr/local/bin/
COPY complement/complement-entrypoint.sh /usr/local/bin/complement-entrypoint.sh
COPY complement/complement.config.toml /etc/continuwuity/config.toml
-COPY target/debug/conduwuit /usr/local/bin/conduwuit
-RUN chmod +x /usr/local/bin/conduwuit /usr/local/bin/complement-entrypoint.sh
+RUN chmod +x /usr/local/bin/complement-entrypoint.sh
#HEALTHCHECK --interval=30s --timeout=5s CMD curl --fail http://localhost:8008/_continuwuity/server_version || exit 1
ENTRYPOINT ["/usr/local/bin/complement-entrypoint.sh"]
+
+FROM base AS container
+COPY --from=container-binary /sbin/conduwuit /usr/local/bin/conduwuit
+RUN chmod +x /usr/local/bin/conduwuit
+
+FROM base AS host
+COPY --from=host-binary /sbin/conduwuit /usr/local/bin/conduwuit
+RUN chmod +x /usr/local/bin/conduwuit
+
+FROM ${BINARY_SOURCE}
diff --git a/docker/musl.Dockerfile b/docker/musl.Dockerfile
index 80dacba77..8e37b6d57 100644
--- a/docker/musl.Dockerfile
+++ b/docker/musl.Dockerfile
@@ -18,7 +18,7 @@ RUN --mount=type=cache,target=/etc/apk/cache apk add \
# Developer tool versions
# renovate: datasource=github-releases depName=cargo-bins/cargo-binstall
-ENV BINSTALL_VERSION=1.25.3
+ENV BINSTALL_VERSION=1.28.0
# renovate: datasource=github-releases depName=psastras/sbom-rs
ENV CARGO_SBOM_VERSION=0.9.1
# renovate: datasource=crate depName=lddtree
diff --git a/docs/authentication/internal.mdx b/docs/authentication/internal.mdx
index 05542b573..0aa566843 100644
--- a/docs/authentication/internal.mdx
+++ b/docs/authentication/internal.mdx
@@ -4,7 +4,7 @@ Continuwuity comes with an internal database for user authentication, which it u
## Registration
-Registration is disabled by default. To enable it, set `allow_registration = true` in your config file and use at least one of the registration methods below.
+The following registration methods are available for Continuwuity:
| Method | Description | Additional configuration needed |
| ------ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
@@ -19,6 +19,8 @@ Admin-issued tokens are the recommended registration method. These tokens are we
Other registration methods are meant for **untrusted, public registration**. Care must be taken when allowing these modes of operation.
+If you wish to disable registration entirely, set `allow_registration = false` in your config file.
+
## Email configuration
Continuwuity can be configured to send emails via an SMTP relay of your choice. These are used for verifying user email addresses and sending password reset links to them.
diff --git a/docs/authentication/oidc.mdx b/docs/authentication/oidc.mdx
index 815d60af2..eafb82d73 100644
--- a/docs/authentication/oidc.mdx
+++ b/docs/authentication/oidc.mdx
@@ -1,3 +1,5 @@
+import { Tab, Tabs } from '@rspress/core/theme';
+
# Delegated authentication with OIDC
Continuwuity supports delegating user authentication to an external identity provider that implements the OpenID Connect (OIDC) specification, such as Authentik, Kanidm, or Keycloak.
@@ -12,56 +14,110 @@ An account on the homeserver can only be associated with one OIDC subject claim
A simple OIDC configuration is as easy as creating a new OIDC application in your identity provider's settings and supplying Continuwuity with the client ID and client secret.
+The instructions below make the following assumptions:
+
+- Continuwuity's base URL: `https://matrix.example.com`. Note that if you employ [well-known delegation](../guides/delegation), this must match the client well-known domain rather than your server name.
+- OIDC provider's base URL: `https://idm.example.com`
+
### Configuring the OIDC provider
-This guide will use [**Kanidm**][kanidm] as an example, but the described steps are broadly applicable to other identity providers. Contributions for them are welcome.
+This guide will cover [**Kanidm**][kanidm] and [**Authelia**][authelia], but the basic concepts apply to most identity providers. Contributions for them are welcome.
-First, create a new application for Continuwuity in your identity provider.
+
+
+
+Create a new application for continuwuity in kanidm. We will use `c10y` as the client ID.
```sh
-# Here, `c10y` is the client ID that Kanidm will use, and `Continuwuity` is the display name.
-# Other identity providers may generate a client ID for you.
-# Use the domain that clients can reach Continuwuity at, which may not be the same as your server name
-# if you have configured well-known delegation.
-kanidm system oauth2 create c10y Continuwuity https://matrix.yourdomain.com
+kanidm system oauth2 create c10y Continuwuity https://matrix.example.com
```
Configure the redirect URL that Continuwuity uses.
```sh
-kanidm system oauth2 add-redirect-url c10y https://matrix.yourdomain.com/_continuwuity/oidc/complete
+kanidm system oauth2 add-redirect-url c10y https://matrix.example.com/_continuwuity/oidc/complete
```
-Allow Continuwuity to request the `openid` scope. Other identity providers may not require this step.
+Allow Continuwuity to request the `openid` scope.
```sh
kanidm system oauth2 update-scope-map c10y idm_all_persons openid
```
-Find the client secret that was generated. Other identity providers may show this information in their web UI.
+Find the client secret that was generated.
```sh
kanidm system oauth2 show-basic-secret c10y
d1qgx352kkuvs1j70b6w293d65x68jve1f7b27fyk90gjhpr
```
+Now the discovery URL for KanIDM is: `https://idm.example.com/oauth2/openid/c10y`
+
+
+
+
+To create a new client in Authelia, it is [recommended][authelia-faq-client-secret] to randomly generate both the client id and client secret. The commands below should get you those:
+
+
+
+```sh
+# Generate random value for Client ID
+authelia crypto rand --length 72 --charset rfc3986
+# Generate Client Secret (labeled Random Password) and its Digest
+authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986
+```
+
+
+```sh
+# Generate random value for Client ID
+docker run --rm authelia/authelia:latest authelia crypto rand --length 72 --charset rfc3986
+# Generate Client Secret (labeled Random Password) and its Digest
+docker run --rm authelia/authelia:latest authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986
+```
+
+
+
+Authelia only needs to know the digest of the secret, whereas Continuwuity requires the secret itself.
+
+Go to your Authelia configuration file, find the `identity_provers` block, and add a block for Continuwuity to the `clients` list:
+
+```yaml
+identity_providers:
+ oidc:
+ jwks:
+ # This part has the JWKs and is what you configured previously
+ # ...
+ clients:
+ # Add this block below to the clients list
+ - client_name: continuwuity
+ client_id: "client-id-goes-here"
+ # Use the client secret's DIGEST, not the client secret itself
+ client_secret: "client-secret-DIGEST-goes-here"
+ redirect_uris: ["https://matrix.example.com/_continuwuity/oidc/complete"]
+ scopes: [openid]
+```
+Then restart Authelia to load the new configuration.
+
+The discovery URL is simply the root domain of your Authelia, where it can be reached by clients, i.e. `https://idm.example.com`.
+
+
+
+
[kanidm]: https://kanidm.com
+[authelia]: https://www.authelia.com
+[authelia-faq-client-secret]: https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#how-do-i-generate-a-client-identifier-or-client-secret
### Configuring Continuwuity
-Configure Continuwuity with the client ID, client secret, and discovery URL provided from the steps above. Kanidm has a different discovery URL for each client, but other identity providers may have a single discovery URL at the root of their domain.
+Configure Continuwuity with the client ID, client secret, and discovery URL provided from the steps above.
```toml
[global.oauth.oidc]
# `/.well-known/openid-configuration` will be appended automatically
-discovery_url = "https://idm.example.com/oauth2/openid/c10y"
+discovery_url = "https://your-discovery-url"
-# This may be randomly generated by your identity provider. Kanidm requires
-# you to set it manually when you create the application.
-client_id = "c10y"
-
-# From the previous step
-client_secret = "d1qgx352kkuvs1j70b6w293d65x68jve1f7b27fyk90gjhpr"
+client_id = "your-client-id"
+client_secret = "your-client-secret"
```
### Testing that it works
diff --git a/docs/calls.mdx b/docs/calls.mdx
index 0f1fea978..28b83f05d 100644
--- a/docs/calls.mdx
+++ b/docs/calls.mdx
@@ -2,12 +2,16 @@
Matrix supports two types of calls:
-- Element Call powered by [MatrixRTC](https://half-shot.github.io/msc-crafter/#msc/4143) and [LiveKit](https://github.com/livekit/livekit)
-- Legacy calls, supported by a STUN/TURN server.
+- [MatrixRTC][MSC4143] calls, powered by [LiveKit][livekit-server-github] and frontends such as [Element Call][element-call].
+- Legacy 1-to-1 calls, supported by a STUN/TURN server.
-Both types of calls are supported by different sets of clients, but most clients are moving towards MatrixRTC / Element Call.
+[MSC4143]: https://github.com/matrix-org/matrix-spec-proposals/pull/4143
+[element-call-github]: https://github.com/element-hq/element-call/
+[livekit-server-github]: https://github.com/livekit/livekit
+
+Both types of calls are supported by different sets of clients, but most clients are moving towards MatrixRTC.
For either one to work correctly, you have to do some additional setup:
-- For legacy calls to work, you need to set up a TURN/STUN server. [Read the TURN guide for tips on how to set up coturn](./calls/turn.mdx)
-- For MatrixRTC / Element Call to work, you have to set up the LiveKit backend. LiveKit also uses TURN/STUN to increase reliability - you can set up its built-in TURN server, or integrate with an existing one. [Read the LiveKit guide](./calls/livekit.mdx)
+- For legacy calls to work, you need to set up a TURN/STUN server. [Read the TURN guide for instructions on how to set up coturn](./calls/turn.mdx)
+- For MatrixRTC calls to work, you have to set up the LiveKit backend, and optionally configure a TURN server for increased reliability. [Read the LiveKit guide](./calls/livekit.mdx)
diff --git a/docs/calls/livekit.mdx b/docs/calls/livekit.mdx
index 7a1a0d57d..9931b2c9e 100644
--- a/docs/calls/livekit.mdx
+++ b/docs/calls/livekit.mdx
@@ -1,13 +1,15 @@
-import { Tab, Tabs} from '@rspress/core/theme';
+import { Tab, Tabs } from '@rspress/core/theme';
-# MatrixRTC/Element Call Setup
+# MatrixRTC/LiveKit Setup
-This guide assumes that you are using docker compose for deployment.
+This guide assumes that you are using `docker compose` for deployment.
:::tip
-You can find help setting up MatrixRTC in our dedicated room - [#matrixrtc:continuwuity.org](https://matrix.to/#/%23matrixrtc%3Acontinuwuity.org)
+You can find help setting up MatrixRTC in our support room - [`#continuwuity:continuwuity.org`][support-room]
:::
+[support-room]: https://matrix.to/#/%23continuwuity:continuwuity.org
+
## Instructions
### 1. Set up your domain
@@ -58,7 +60,9 @@ services:
- ./livekit.yaml:/etc/livekit.yaml:ro
network_mode: "host" # /!\ LiveKit binds to all addresses by default.
# Make sure port 7880 is blocked by your firewall to prevent access bypassing your reverse proxy
- # Alternatively, uncomment the lines below and comment `network_mode: "host"` above to specify port mappings.
+
+ # Alternatively, uncomment the lines below and comment out `network_mode: "host"`
+ # above to use bridge networking and manually specify port mappings.
# ports:
# - "127.0.0.1:7880:7880/tcp"
# - "7881:7881/tcp"
@@ -218,7 +222,9 @@ Start up the services using your usual method - for example `docker compose up -
## Testing
-To test that LiveKit is successfully integrated with Continuwuity, you will need to replicate its [Token Exchange Flow](https://github.com/element-hq/lk-jwt-service#%EF%B8%8F-how-it-works--token-exchange-flow). Follow the steps below while checking Docker logs (`docker compose logs --follow`), in order to help [troubleshooting](#troubleshooting) any issues.
+To test that LiveKit is successfully integrated with Continuwuity, you will need to replicate its [Token Exchange Flow][token-exchange-flow]. Follow the steps below while checking Docker logs (`docker compose logs --follow`), in order to help [troubleshooting](#troubleshooting) any issues.
+
+[token-exchange-flow]: https://github.com/element-hq/lk-jwt-service/tree/v0.6.0#%EF%B8%8F-how-it-works--token-exchange-flow
First, you will need an access token for your current login session. These can be found in your client's settings or obtained via [this website][starstruck-mxtoken2].
@@ -279,7 +285,7 @@ You can then send this payload to the lk-jwt-service:
curl -X POST -d @payload.json https://livekit.example.com/get_token
```
-The lk-jwt-service will, after checking against Continuwuity, answer with a `jwt` token to create a LiveKit media room:
+The lk-jwt-service will, after checking against Continuwuity, answer with a `jwt` token to [create a LiveKit media room](#livekit-cli):
```json
{"url":"wss://livekit.example.com","jwt":"a_really_really_long_string"}
@@ -293,47 +299,35 @@ Use this token to test at the [LiveKit Connection Tester][livekit-connection-tes
To debug any issues, you can place a call or redo the Testing instructions, and check the container logs for any specific errors. Use `docker compose logs --follow` to follow these logs in real-time.
+Before debugging, ensure the following prerequisites:
+
+- The user has permissions to send call events into the room. See the Appendix section on [call modes](#call-modes) for more details.
+- WebRTC is enabled, if using a browser client.
+
### Common errors in Element Call UI
-- `MISSING_MATRIX_RTC_FOCUS`/`MISSING_MATRIX_RTC_TRANSPORT`: LiveKit is missing from Continuwuity's config file
-- "Waiting for media" popup always showing for yourself: a LiveKit URL has been configured in Continuwuity, but your client cannot connect to it for some reason
-- `OPEN_ID_ERROR`: Your client can reach out to `lk-jwt-service`, but has problems authenticating with it. In this case, check `lk-jwt-service` logs for more details
+- `MISSING_MATRIX_RTC_FOCUS`/`MISSING_MATRIX_RTC_TRANSPORT`: the client cannot find a suitable SFU. This is likely due to LiveKit being missing from Continuwuity's config file, and therefore not being exposed properly.
-For browser-based clients, you can also inspect connections using DevTools' Networking tab, to see which requests are erroring out.
+- `OPEN_ID_ERROR`: Your client can reach out to `lk-jwt-service`, but `lk-jwt-service` has problems authenticating you against Continuwuity. In this case, check `lk-jwt-service` logs for more details. The section below on [Docker loopback networking issues](#docker-loopback-networking-issues) may be of help.
+
+- Calls fail to start with `ServerUnreachable` error: a LiveKit URL has been properly configured and exposed in Continuwuity, but the client cannot connect to it for some reason.
+
+For browser-based clients, you can inspect connections using DevTools' Networking tab, to see which requests are erroring out. You may also want to toggle on Element Call's Developer tab via _Settings > Preferences > Developer mode_ \- various call details and advanced settings can be further tweaked there.
### Docker loopback networking issues
-Some distros do not allow Docker containers in bridge networks to connect to their host's public IP by default. This makes `lk-jwt-service` fail connecting to `livekit` or `continuwuity` on the same host, causing refused and timed out connections to appear in the log entries of the JWT service, even when `LIVEKIT_URL` has been configured correctly.
-
-You can also test that this is the case by cURLing from a sidecar container:
+Some distros do not allow Docker containers to connect to the host's public IP, and this breaks connections from `lk-jwt-service` towards `livekit` and `continuwuity` if they're on the same host. This can be tested by the following command:
```bash
docker run --rm --net container:lk-jwt-service docker.io/curlimages/curl https://livekit.example.com
# --- some errors ---
```
-To resolve this, configure an `extra_hosts` file mapping LiveKit's and Continuwuity's domain names to Docker's custom host loopback address, represented here by `host-gateway`:
+To resolve this, follow the steps in [Docker loopback networking issues](../troubleshooting.mdx#docker-loopback-networking-issues) of the Troubleshooting page.
-```diff
-# in docker-compose.yaml
-services:
- lk-jwt-service:
- ...
-+ extra_hosts:
-+ - "livekit.example.com:host-gateway"
-+ - "matrix.example.com:host-gateway"
-```
+### Incorrect IP addresses for LiveKit
-After implementing the changes and restarting your compose, `lk-jwt-service` should now connect to your other services. The sidecar container test above should now return an `OK` from LiveKit.
-
-For more information about the `host-gateway` parameter, kindly refer to the `--add-host` documentation for [Docker][docker-add-host] and [Podman][podman-add-host]. Should you have further difficulties, feel free to enquire in the support rooms.
-
-[docker-add-host]: https://docs.docker.com/reference/cli/docker/container/run/#add-host
-[podman-add-host]: https://docs.podman.io/en/latest/markdown/podman-run.1.html#add-host-hostname-hostname-ip
-
-### Incorrect IP address for LiveKit
-
-By default, LiveKit automatically finds its public IP address(es), which can be seen in the "Establishing WebRTC connection" section of the connection test page. If these IPs are incorrect, you may want to hardcode your own IP by doing the following:
+By default, LiveKit automatically finds its public IP address(es), which are reflected in the "Establishing WebRTC connection" section of the connection test page. If these IPs are incorrect, you may want to hardcode your own IP by doing the following:
```diff
### in your livekit.yaml ###
@@ -344,20 +338,21 @@ rtc:
+ node_ip: "1.2.3.4"
```
-### Workaround for non-federating servers
+Run the LiveKit tests again, and the new updated `node_ip` should be included as one of the candidates.
-When deploying on servers with federation disabled (`allow_federation = false`), LiveKit will fail as it can't fetch the required [OpenID endpoint](https://spec.matrix.org/v1.17/server-server-api/#get_matrixfederationv1openiduserinfo) via federation paths.
+You may further restrict the advertised address to only the `node_ip` with the following configurations:
-As a workaround, you can enable federation, but forbid all remote servers via the following config parameters:
-
-```toml
-### in your continuwuity.toml file ###
-allow_federation = true
-forbidden_remote_server_names = [".*"]
+```diff
+### in your livekit.yaml ###
+rtc:
+ # ... other configs here ...
++ enable_loopback_candidate: false
++ interfaces:
++ includes: []
++ ips:
++ includes: [ "1.2.3.4/32" ]
```
-Subscribe to issue [!1440](https://forgejo.ellis.link/continuwuation/continuwuity/issues/1440) for future updates on this matter.
-
## Related Documentation
Guides:
@@ -378,9 +373,15 @@ Specifications:
- [MSC4143: MatrixRTC \- Real-time communication over Matrix][MSC4143]
- [MSC4195: MatrixRTC Transport using LiveKit Backend][MSC4195]
+- [MSC3401: Native Group VoIP Signalling][MSC3401] - state events for legacy calls
+- [MSC4075: MatrixRTC invites and notifications][MSC4075] - for ringing users
+- [MSC4354: Sticky Events][MSC4354] - for MatrixRTC 2.0 calls
[MSC4143]: https://github.com/matrix-org/matrix-spec-proposals/pull/4143
[MSC4195]: https://github.com/matrix-org/matrix-spec-proposals/pull/4195
+[MSC3401]: https://github.com/matrix-org/matrix-spec-proposals/pull/3401
+[MSC4075]: https://github.com/matrix-org/matrix-spec-proposals/pull/4075
+[MSC4354]: https://github.com/matrix-org/matrix-spec-proposals/pull/4354
Source code:
@@ -400,6 +401,47 @@ Other:
## Appendix
+### MatrixRTC calling modes and enabling sticky events {#call-modes}
+
+MatrixRTC currently supports 3 calling modes:
+
+- **Legacy mode** (deprecated): calls are established by sending state events to a room. The call initiator's SFU hosts the entire call for all remote and local participants.
+- **Compatibility mode*: same as Legacy mode, but utilizes multiple SFUs between federating servers. Clients publish media streams to their own SFUs, and fetch remote streams from remote SFUs. This is the most commonly used mode nowadays.
+- **MatrixRTC 2.0 mode**: also utilizes multiple SFUs, but establishes calls with [sticky events] instead of state events.
+
+To support Legacy and Compatibility mode, ensure that the user is allowed to send the relevant state events. Usually, this means promoting them to a power level of 50 or above. Alternatively, set the power level required to send `org.matrix.msc3401.call.member` events to 0.
+
+To support MatrixRTC 2.0 mode, sticky events has to be enabled on the Matrix server. In Continuwuity, this is as easy as setting `enable_sticky_events = true` in the config file.
+
+### Creating LiveKit tokens via `livekit-cli` {#livekit-cli}
+
+To create room tokens directly without going through `lk-jwt-service`, use the [Livekit CLI tool][livekit-cli].
+
+
+
+
+First, download the [release tarball][livekit-cli-releases] and extract it. Then:
+
+```sh
+./lk --url https://livekit.example.com \
+ --api-key APIUxUnMnSkuFWV \
+ --api-secret t93ZVjPeoEdyx7Wbet3kG4L3NGZIZVEFvqe0UuiVc22A \
+ token create --create --join
+```
+
+
+```sh
+docker run --rm docker.io/livekit/livekit-cli --url https://livekit.example.com \
+ --api-key APIUxUnMnSkuFWV \
+ --api-secret t93ZVjPeoEdyx7Wbet3kG4L3NGZIZVEFvqe0UuiVc22A \
+ token create --create --join
+```
+
+
+
+[livekit-cli]: https://github.com/livekit/livekit-cli
+[livekit-cli-releases]: https://github.com/livekit/livekit-cli
+
### Additional TURN-over-TLS on 443 configuration
Most of the time, LiveKit [**does not need TURN**][sspaeth-matrix-voip-turn] to function. However, there are situations where clients may be unable to use nonstandard ports or UDP connections, such as in highly restrictive networks. In such cases, a TURN-over-TLS server on port 443 could relay traffic for the clients.
@@ -506,6 +548,8 @@ Then configure LiveKit, making sure to replace `COTURN_SECRET` with the one you
### in your livekit.yaml ###
rtc:
# ... other configs here ...
+ stun_servers:
+ - coturn.example.com
turn_servers:
- host: coturn.example.com
port: 443
diff --git a/docs/calls/turn.mdx b/docs/calls/turn.mdx
index 82b71149c..a3be0cd97 100644
--- a/docs/calls/turn.mdx
+++ b/docs/calls/turn.mdx
@@ -1,16 +1,17 @@
# Setting up TURN/STUN
-[TURN][turn] and [STUN][stun] are used as components in many calling systems. Matrix uses them directly for legacy calls and indirectly for MatrixRTC via Livekit.
+[TURN][turn] and [STUN][stun] are used as components in many calling systems. Matrix uses them directly for legacy 1-to-1 calls and indirectly to assist MatrixRTC calls via Livekit.
-Continuwuity recommends using [coturn][coturn] as your TURN/STUN server, which is available as a Docker image or a distro package. This guide assumes that you are using docker compose for deployment.
+Continuwuity recommends using [coturn][coturn] as your TURN/STUN server, which is available as a Docker image or a distro package. This guide assumes that you are using `docker compose` for deployment.
:::tip
-You can find help setting up TURN/STUN in our MatrixRTC room - [#matrixrtc:continuwuity.org](https://matrix.to/#/%23matrixrtc%3Acontinuwuity.org)
+You can find help setting up TURN/STUN in our support room - [`#continuwuity:continuwuity.org`][support-room]
:::
[turn]: https://en.wikipedia.org/wiki/Traversal_Using_Relays_around_NAT
[stun]: https://en.wikipedia.org/wiki/STUN
[coturn]: https://github.com/coturn/coturn
+[support-room]: https://matrix.to/#/%23continuwuity:continuwuity.org
## Installing coturn
@@ -348,7 +349,7 @@ After configuration and spin-up, the destination `turns:turn.example.com:443?tra
Using static credentials
:::caution
-Static credentials are less secure than shared secrets because they don't expire and must be configured in coturn separately. It is strongly advised you use [shared secret authentication](#2-configuration).
+Static credentials are less secure than shared secrets because they don't expire and must be configured in coturn separately. It is strongly advised you use [shared secret authentication](#2-configuring-coturn).
:::
If you prefer static username/password credentials instead of shared secrets:
diff --git a/docs/deploying.mdx b/docs/deploying.mdx
index 3a33819fe..267050c04 100644
--- a/docs/deploying.mdx
+++ b/docs/deploying.mdx
@@ -101,7 +101,7 @@ After Continuwuity is up and running, consider the following:
- See the [**Authentication chapter**](./authentication.mdx) for various ways to access to your homeserver, such as logging in with an external OIDC provider.
-- Consult the [**Maintenance**](./maintenance.mdx) page for guidance on maintaining your homeserver.
+- Consult the [**Maintenance**](./maintenance.mdx) page for guidance on backups, moderation, and other topics for homeserver management.
- If you want to set up an appservice, take a look at the [**Appservice Guide**](./appservices.mdx).
diff --git a/docs/deploying/arch-linux.mdx b/docs/deploying/arch-linux.mdx
index 928d1c8e5..90adad030 100644
--- a/docs/deploying/arch-linux.mdx
+++ b/docs/deploying/arch-linux.mdx
@@ -2,10 +2,16 @@
Continuwuity is available in the [`archlinuxcn`][archlinuxcn] repository and AUR with the same package name, [`continuwuity`][aur-continuwuity].
-The development version is available on the AUR as [`continuwuity-git`][aur-continuwuity-git].
+For instructions on adding the archlinuxcn repo to your machine, see the [archlinuxcn README][archlinuxcn-readme] page. For AUR instructions, consult its [entry][aur-archwiki] on the Arch Wiki.
+
+The development version, which tracks latest commits to the main branch, is also available on the AUR as [`continuwuity-git`][aur-continuwuity-git].
[archlinuxcn]: https://www.archlinuxcn.org/
+[archlinuxcn-readme]: https://github.com/archlinuxcn/repo#usage
+[aur-archwiki]: https://wiki.archlinux.org/title/Arch_User_Repository
[aur-continuwuity]: https://aur.archlinux.org/packages/continuwuity
[aur-continuwuity-git]: https://aur.archlinux.org/packages/continuwuity-git
-Simply install the `continuwuity` package. Configure the service in `/etc/conduwuit/conduwuit.toml`, then enable and start the `continuwuity.service`.
+Once you're done configuring your repos, simply install the `continuwuity` package with `pacman -S continuwuity`. Consult the [generic deployment instructions](./generic.mdx) for detailed steps, which involves editing `/etc/conduwuit/conduwuit.toml` and setting up a reverse proxy. Finally, enable and start the `continuwuity.service`.
+
+After successfully setting up Continuwuity, navigate to [Post-installation](../deploying.mdx#post-installation) for next steps.
diff --git a/docs/deploying/docker.mdx b/docs/deploying/docker.mdx
index d7133ee68..c7b105e2e 100644
--- a/docs/deploying/docker.mdx
+++ b/docs/deploying/docker.mdx
@@ -53,7 +53,7 @@ For more setups with `.well-known` delegation and split-domain deployments, cons
Docker Compose is the recommended deployment method for Continuwuity containers. The following environment variables will be set:
- `CONTINUWUITY_SERVER_NAME` - Your Matrix server's domain name. **This CANNOT be changed later without a data wipe.**
-- `CONTINUWUITY_DATABASE_PATH` - Where to store your database. This must match the docker volume mount.
+- `CONTINUWUITY_DATABASE_PATH` - Where to store your database. This must match the docker bind mount.
- `CONTINUWUITY_ADDRESS` - Bind address (for Docker, use `0.0.0.0` to listen on all interfaces).
Alternatively, you can specify a path to mount the configuration file using the `CONTINUWUITY_CONFIG` environment variable.
@@ -69,7 +69,7 @@ Docker's default DNS resolver is known to [**cause timeout issues**](../troubles
```yaml title='docker-compose.yml'
services:
- homeserver:
+ continuwuity:
# ...
volumes:
- ./continuwuity-resolv.conf:/etc/resolv.conf
@@ -89,15 +89,17 @@ Consult the [**DNS tuning guide (recommended)**](../guides/dns.mdx) for full sol
docker-compose.with-caddy.yml ([view raw](/deploying/docker-compose.with-caddy.yml))
-Create a Caddyfile with the following content:
+Create a directory called `caddy-data`, which will store TLS certs obtained by Caddy.
+
+Then, create a Caddyfile with the following content:
```
https://example.com:443, https://example.com:8448 {
- reverse_proxy http://homeserver:8008
+ reverse_proxy http://continuwuity:8008
}
```
-Then, for the docker-compose:
+Then, for the docker compose file:
```yaml file="../public/deploying/docker-compose.with-caddy.yml"
@@ -110,6 +112,10 @@ Then, for the docker-compose:
docker-compose.with-caddy-labels.yml ([view raw](/deploying/docker-compose.with-caddy-labels.yml))
+Create a directory called `caddy-data`, which will store TLS certs obtained by Caddy.
+
+Then, for the docker compose file:
+
```yaml file="../public/deploying/docker-compose.with-caddy-labels.yml"
```
@@ -132,6 +138,10 @@ Then, for the docker-compose:
docker-compose.with-traefik.yml ([view raw](/deploying/docker-compose.with-traefik.yml))
+Create a directory called `traefik-acme-data`, which will store TLS certs obtained by Caddy.
+
+Then, for the docker compose file:
+
```yaml file="../public/deploying/docker-compose.with-traefik.yml"
```
@@ -164,10 +174,15 @@ See the [Other reverse proxies](generic.mdx#setting-up-the-reverse-proxy) sectio
### Starting Your Server
-1. Choose your compose file from the above, and rename it to `docker-compose.yml`. Replace `example.com` with your homeserver's domain name, and edit other values as you see fit.
-2. If using the override file, rename it to `docker-compose.override.yml` and
- edit your values.
-3. Start the server:
+1. Create a directory named `continuwuity-data`. This will be where your server's database lives.
+
+2. Choose your compose file from the above, and rename it to `docker-compose.yml`. Replace `example.com` with your homeserver's domain name, and edit other values as you see fit.
+
+ - Follow all extra instructions as needed.
+
+ - If using the override file, rename it to `docker-compose.override.yml` and edit your values.
+
+3. Start the server with the following command:
```bash
docker compose up -d
@@ -189,9 +204,7 @@ See the [Other reverse proxies](generic.mdx#setting-up-the-reverse-proxy) sectio
Pick your own username and password!
```
-5. Log in to your server with any Matrix client, and register for an account with the registration token from step 4. You'll automatically be invited to the admin room where you can [manage your server](../reference/admin).
-
-See the [generic deployment guide](generic.mdx) for more deployment options.
+5. Log in to your server with any Matrix client, and register for an account with the registration token from the previous step. You'll automatically be invited to the admin room where you can [manage your server](../reference/admin).
## Testing
@@ -199,7 +212,9 @@ Test that your setup works by following these [instructions](./generic.mdx#how-d
Check your container logs using `docker-compose logs --follow` to debug any issues. See the [Troubleshooting](../troubleshooting.mdx) page for common errors and how to fix them.
-## Updating
+## Maintenance
+
+### Updating
To update to a new version of Continuwuity, use the following commands:
@@ -212,6 +227,10 @@ docker compose pull
docker compose up -d
```
+### Backups
+
+The database in `./continuwuity-data` is present on the host system as a regular directory, and therefore can be backed up using normal mechanisms. See the [Backup](../maintenance.mdx#backups) section of the Maintenance page for more details.
+
## What's next?
Navigate to [Post-installation](../deploying.mdx#post-installation) for next steps.
@@ -270,12 +289,6 @@ Get a working Continuwuity server with an admin user in four steps:
Once configured, log in to your server with any Matrix client, and register for an account with the registration token from step 3. If you did not configure step 4., log in via the `http://:8008` address. You will be automatically invited to the admin room where you can [manage your server](../reference/admin).
-### (Optional) Building Custom Images
-
-For information on building your own Continuwuity Docker images, see the
-[Building Docker Images](../development/index.mdx#building-docker-images)
-section in the development documentation.
-
### Accessing the Server's Console
Before you can access the server's console and [send admin commands](../reference/admin/index.md) from the CLI, you will need to make the container interactive and allocate a pseudo-tty. Make sure you set `admin_console_automatic` to `true` in [the config](../reference/config.mdx) as well for Continuwuity to activate the CLI on startup.
@@ -284,7 +297,7 @@ For Docker Compose deployments this means adding `stdin_open: true` and `tty: tr
```yaml
services:
- homeserver:
+ continuwuity:
stdin_open: true
tty: true
# ...
@@ -297,3 +310,31 @@ From there you can access the server's console by running `docker attach `, and the omission of the
+configuration OR setting it to `false` disables the experiment. `ToggledExperiment` impls should
+copy similar behaviour.
+
+Then, add a public field to the `Experiments` struct that is named the MSC's ID in lowercase.
+Add a docstring to it, starting with the proposal title (including ID), then a brief paragraph or
+so explaining what the proposal does in simple terms, and then finally end the docstring with a link
+to the proposal.
+
+### Advertising support for unstable features
+
+If the proposal requires advertising an unstable feature flag, that flag must be added to
+`unstable_features` in `src/core/matrix/versions.rs`. For example:
+
+```diff
+pub fn unstable_features(experiments: &Experiments) -> BTreeMap {
+ BTreeMap::from_iter([
+ // Always enabled feature (https://github.com/matrix-org/matrix-spec-proposals/pull/0000)
+ // Expected for spec v1.20
+ ("org.matrix.msc0000".to_owned(), true),
++ // MSC9999: My Cool Feature (https://github.com/matrix-org/matrix-spec-proposals/pull/9999)
++ ("example.matrix.msc9999".to_owned(), experiments.msc9999.is_enabled())
+ ])
+}
+```
+
+This will allow the `/_matrix/client/versions` endpoint to dynamically advertise whether the unstable
+feature is enabled on the current server.
+
+## Removing unstable features
+
+If a proposal is abandoned, becomes obsolete, or is accepted into the specification, the unstable
+configuration should be removed (and possibly migrated) as soon as possible.
+
+After removing a field from `experiments`, the key should be added to the `DEPRECATED_KEYS` slice in
+`src/core/config/mod.rs` (really far down). This will ensure that a warning is printed on startup
+when a configuration is using a now-removed config key. For example:
+
+```diff
+pub struct Experiments {
+- pub msc9999: SimpleExperiment,
+}
+```
+```diff
+const DEPRECATED_KEYS: &[&str] = [
+ "foo",
++ "experiments.msc9999",
+];
+```
+
+## Always-on experiments
+
+Some experiments can be forcefully enabled (i.e. always-on), or enabled by default. This should only
+be the case in exceptional circumstances, and must be adequately well documented. Some examples of
+situations that may warrant an experiment being always-enabled:
+
+* A proposal was implemented AFTER it was merged, but BEFORE it had a merged spec PR.
+These proposals are typically as stable as they'll get, as major changes post-factum of an MSC
+merge requires another MSC, so only minor changes can be made in the spec PR phase.
+* The daily experience of users would be at a great detriment without the experiment being enabled.
+* A proposal is so simple that making it opt-in would be pointless. This is *incredibly* rare.
+
+The latter two require explicit maintainer approval, so discuss those with the maintainer team
+first. You can exercise your own judgement for the first.
+
+Always-on or enabled-by-default experiments must explain in detail why they're exempt from the
+standard experiments policy via comments in surrounding areas, like
+`src/core/config/experiments.rs` and `src/core/matrix/versions.rs`. Ideally, these features are not
+unstable for too long, so explaining a timescale for how long before the feature is stabilised is
+also helpful.
diff --git a/docs/guides/delegation.mdx b/docs/guides/delegation.mdx
index 7ce397e88..d3a379f03 100644
--- a/docs/guides/delegation.mdx
+++ b/docs/guides/delegation.mdx
@@ -226,10 +226,10 @@ The following Compose files are taken from [Docker deployment instructions](../d
```txt title="Caddyfile"
https://matrix.example.com:443 {
- reverse_proxy http://homeserver:8008
+ reverse_proxy http://continuwuity:8008
}
https://example.com:443 {
- reverse_proxy /.well-known/matrix* http://homeserver:8008
+ reverse_proxy /.well-known/matrix* http://continuwuity:8008
}
```
diff --git a/docs/guides/dns.mdx b/docs/guides/dns.mdx
index cfe8995fc..6e880c114 100644
--- a/docs/guides/dns.mdx
+++ b/docs/guides/dns.mdx
@@ -37,7 +37,7 @@ networks:
- subnet: "10.10.10.0/24"
services:
- homeserver:
+ continuwuity:
# ...
volume:
- ./continuwuity-resolv.conf:/etc/resolv.conf:ro
diff --git a/docs/guides/metrics.mdx b/docs/guides/metrics.mdx
index cb5df8c70..83ea51bc7 100644
--- a/docs/guides/metrics.mdx
+++ b/docs/guides/metrics.mdx
@@ -71,6 +71,9 @@ Names below are as they appear in Prometheus. OTLP uses the dotted OpenTelemetry
| `continuwuity_sender_events_total` | counter | `destination`, `kind`, `outcome` | PDUs and EDUs sent in outgoing transactions |
| `continuwuity_sender_events_queued_total` | counter | `destination`, `kind` | PDUs and EDUs queued for sending |
| `continuwuity_sender_queue_depth` | gauge | | Messages waiting for the sender workers |
+| `continuwuity_sender_requests` | gauge | `state` | Estimated outgoing requests stored as `queued` or `active` (in flight) |
+| `continuwuity_sender_workers` | gauge | | Running sender workers; below the configured count means a worker is restarting |
+| `continuwuity_sender_panics_total` | counter | `scope` | Panics caught in a single outgoing `transaction` or a whole sender `worker` |
| `continuwuity_users` | gauge | `origin` | Known `local` users, including deactivated, and `remote` users |
| `continuwuity_invites_total` | counter | `direction`, `destination`, `outcome` | Invites sent by local users or received over federation |
| `continuwuity_media_write_size_bytes` | histogram | `origin` | Media files written, from local uploads or cached remote media |
@@ -82,6 +85,7 @@ Names below are as they appear in Prometheus. OTLP uses the dotted OpenTelemetry
| `continuwuity_database_block_cache_bytes` | gauge | `column` | RocksDB block cache usage |
| `continuwuity_cache_entries` | gauge | `name` | Entries in the auth chain and state info caches |
| `continuwuity_jemalloc_memory_bytes` | gauge | `kind` | jemalloc statistics, only with the `jemalloc_stats` feature |
+| `continuwuity_mimalloc_memory_bytes` | gauge | `kind` | mimalloc statistics, only with the `mimalloc` feature |
| `process_uptime_seconds` | gauge | | Time since the server started |
| `process_cpu_time_seconds_total` | counter | `cpu_mode` | CPU time used by the process |
| `process_memory_usage_bytes` | gauge | | Resident memory (Linux) |
diff --git a/docs/guides/performance.mdx b/docs/guides/performance.mdx
index 08ecf7ac0..ff69329fb 100644
--- a/docs/guides/performance.mdx
+++ b/docs/guides/performance.mdx
@@ -82,6 +82,21 @@ Consult these documents for more information on compression tuning and levels:
## Other tweaks
+### Tuning your trusted servers
+
+:::important Important: Vet your trusted servers!
+Trusted servers are your first point of contact when obtaining public keys from the wider federated network. They could theoretically impersonate other servers and cause significant harm to your deployment. Please thoroughly verify your trusted servers' credibility before adding them to your configuration.
+
+If you need suggestions for trusted servers, ask in the Continuwuity support room.
+:::
+
+For performance and reliability, it is recommended to set up 3 to 5 trusted servers for your deployment. Currently, these must all be Synapse servers.
+
+```toml
+# Example config, using maintainers' recommended homeservers
+trusted_servers = ["codestorm.net","starstruck.systems","unredacted.org","matrix.org"]
+```
+
### Using UNIX sockets
If your homeserver and reverse proxy live on the same machine, you may wish to expose Continuwuity on a UNIX socket instead of a port. This removes TCP overhead between the two programs.
@@ -111,25 +126,6 @@ https://matrix.example.com {
-### Tuning your trusted servers
-
-:::info Vet your trusted servers!
-Trusted servers are your first point of contact when obtaining public keys from other servers, and they could theoretically impersonate other servers and cause significant harm to your deployment. Please thoroughly verify your trusted servers' credibility before adding them to your configuration.
-
-If you need suggestions for trusted servers, ask in the Continuwuity main room.
-:::
-
-Trusted servers are queried sequentially in the order they are listed. If you have multiple trusted servers configured, put the faster ones first:
-
-```toml
-# Example config, using maintainers' recommended homeservers
-trusted_servers = ["codestorm.net","starstruck.systems","unredacted.org","matrix.org"]
-```
-
-Avoid prioritising `matrix.org` as your primary trusted server, as it tends to be quite slow.
-
-Some users have also reported that increasing `trusted_server_batch_size` has helped with faster joins for huge rooms. Start with doubling the default to `2048` until you find a suitable value.
-
### Enable HTTP/3 on your reverse proxy
Consider enabling the newer **HTTP/3** protocol for inbound connections to Continuwuity. In Caddy HTTP/3 is allowed by default, but you must expose port :443/**udp** on your firewall.
diff --git a/docs/guides/push.mdx b/docs/guides/push.mdx
index 00a6c8e88..041296218 100644
--- a/docs/guides/push.mdx
+++ b/docs/guides/push.mdx
@@ -78,9 +78,9 @@ To debug and test your UnifiedPush installation, use the [UP-Example] app for An
### UnifiedPush and push gateways
-The push gateway URL is usually pre-configured by the client app. However, some clients (such as Element X) implement UnifiedPush's [Gateway Discovery] mechanism, and attempt to detect a push gateway _on the same domain as the push provider_, before falling back to a hardcoded one.
+Normally, the push gateway URL is pre-configured by the client app. However, some clients (such as Element X) implement UnifiedPush's [Gateway Discovery] mechanism, and attempt to detect a push gateway _on the same domain as the push provider_ to use before falling back to a hardcoded one. Users of these clients can therefore self-host their own push gateway.
-Per the [spec][spec-push-gateway-api], these push gateways must be available on the `/_matrix/push/v1/notify` path of said domain. To test that a push gateway is accessible to the homeserver, make a request for it from the homeserver's IP:
+Per the [spec][spec-push-gateway-api], these push gateways must be available on the `/_matrix/push/v1/notify` path of said domain. To test that a push gateway is usable, make a request to it from both the homeserver and the client. The returned response should look like the following:
```txt
curl https://push.example.com/_matrix/push/v1/notify
@@ -122,7 +122,7 @@ Community tutorials for selfhosting some of these stacks are listed below. Unles
- Push gateway: [common-proxies]
- Push server: [ejabberd's mod_unified_push]
- Push app: [Conversations] (and forks)
-- [Element X push notifications via Conversations][alfredolin-xmpp], by Alfredo Lin.
+- [Element X push notifications via Conversations][alfredolin-xmpp], by Alfredolin.
- Push gateway: [common-proxies]
- Push server: [Prosody's mod_unified_push]
- Push app: [Conversations]
@@ -156,6 +156,8 @@ WARN conduwuit_service::pusher: Pusher URL is a forbidden remote address url=htt
To fix this, remove your push gateway or push server's address from `ip_range_denylist`, and restart Continuwuity to apply the changes.
+Docker deployments with the push server/gateway on the same host as Continuwuity may run into some further network issues. In this case, consult the [Docker loopback networking issues] section and its workarounds.
+
### Push notifications not audible/not displaying
This is likely an issue with your account's _push rules_, which determines which events are shown to to the user as notifications. Check these push rules in the client's notifications settings and tweak accordingly. Continuwuity also provides an [`!admin users reset-push-rules`](../reference/admin/users#admin-users-reset-push-rules) command, which restores the rules to the default of notifying for every message.
@@ -175,7 +177,7 @@ If you find spurious log entries like this in your Continuwuity deployment:
WARN push{user_id="@user:example.com" pushkey="very-long-string-of-letters" events=1}:send_push_notice:send_notice:send_request: conduwuit_service::pusher: Could not send request to pusher https//push.example.com: error sending request for url (https://push.example.com/_matrix/push/v1/notify)
```
-Then, your server is most likely sending push requests to too many invalid targets. This could be due to one of the following reasons:
+Then, your server is sending push requests to too many invalid targets. This could be due to one of the following reasons:
#### Connection issues between the server and the push gateway
diff --git a/docs/maintenance.mdx b/docs/maintenance.mdx
index 362e92d2b..329629eb9 100644
--- a/docs/maintenance.mdx
+++ b/docs/maintenance.mdx
@@ -17,7 +17,7 @@ Continuwuity has moderation admin commands for:
- fetching `/.well-known/matrix/support` from servers (`!admin federation`)
- blocking incoming federation for certain rooms (not the same as room banning)
(`!admin federation`)
-- deleting media (see [the media section](#media))
+- deleting media
Any commands with `-list` in them will require a codeblock in the message with
each object being newline delimited. An example of doing this is:
diff --git a/docs/public/advanced/delegated.docker-compose.for-traefik.yml b/docs/public/advanced/delegated.docker-compose.for-traefik.yml
index 4b5d0fed8..b339968a9 100644
--- a/docs/public/advanced/delegated.docker-compose.for-traefik.yml
+++ b/docs/public/advanced/delegated.docker-compose.for-traefik.yml
@@ -1,12 +1,12 @@
# Continuwuity - Behind Traefik Reverse Proxy
services:
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
#- ./continuwuity.toml:/etc/continuwuity.toml
networks:
diff --git a/docs/public/advanced/delegated.docker-compose.with-caddy-labels.yml b/docs/public/advanced/delegated.docker-compose.with-caddy-labels.yml
index 3a0f9566b..9cf49aec6 100644
--- a/docs/public/advanced/delegated.docker-compose.with-caddy-labels.yml
+++ b/docs/public/advanced/delegated.docker-compose.with-caddy-labels.yml
@@ -12,18 +12,18 @@ services:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- - ./data:/data
+ - ./caddy-data:/data
restart: unless-stopped
labels:
caddy: example.com
- caddy.reverse_proxy: /.well-known/matrix/* homeserver:8008
+ caddy.reverse_proxy: /.well-known/matrix/* continuwuity:8008
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
# - ./continuwuity.toml:/etc/continuwuity.toml
environment:
@@ -46,8 +46,5 @@ services:
caddy: matrix.example.com
caddy.reverse_proxy: "{{upstreams 8008}}"
-volumes:
- db:
-
networks:
proxy:
diff --git a/docs/public/advanced/delegated.docker-compose.with-caddy.yml b/docs/public/advanced/delegated.docker-compose.with-caddy.yml
index 99c3b3435..9a1178315 100644
--- a/docs/public/advanced/delegated.docker-compose.with-caddy.yml
+++ b/docs/public/advanced/delegated.docker-compose.with-caddy.yml
@@ -9,17 +9,17 @@ services:
networks:
- caddy
volumes:
- - ./data:/data
+ - ./caddy-data:/data
# mount your created Caddyfile into the container
- ./Caddyfile:/etc/caddy/Caddyfile
restart: unless-stopped
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
# - ./continuwuity.toml:/etc/continuwuity.toml
environment:
@@ -41,6 +41,3 @@ services:
networks:
proxy:
-
-volumes:
- db:
diff --git a/docs/public/advanced/delegated.docker-compose.with-traefik.yml b/docs/public/advanced/delegated.docker-compose.with-traefik.yml
index 675f2a18e..9c9d744e0 100644
--- a/docs/public/advanced/delegated.docker-compose.with-traefik.yml
+++ b/docs/public/advanced/delegated.docker-compose.with-traefik.yml
@@ -1,12 +1,12 @@
# Continuwuity - With Traefik Reverse Proxy
services:
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
#- ./continuwuity.toml:/etc/continuwuity.toml
networks:
@@ -40,7 +40,7 @@ services:
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- - "acme:/etc/traefik/acme"
+ - "./traefik-acme-data:/etc/traefik/acme"
labels:
- "traefik.enable=true"
@@ -77,9 +77,5 @@ services:
TRAEFIK_PROVIDERS_DOCKER_ENDPOINT: "unix:///var/run/docker.sock"
TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT: false
-volumes:
- db:
- acme:
-
networks:
proxy:
diff --git a/docs/public/calls/livekit.docker-compose.with-caddy-labels.yml b/docs/public/calls/livekit.docker-compose.with-caddy-labels.yml
index 93dd6dae5..7eb68e19e 100644
--- a/docs/public/calls/livekit.docker-compose.with-caddy-labels.yml
+++ b/docs/public/calls/livekit.docker-compose.with-caddy-labels.yml
@@ -37,7 +37,7 @@ services:
# If you already configured `[global.well_known]` with Continuwuity,
# comment out the *_respond labels and uncomment the line below:
- # caddy.reverse_proxy: /.well-known/matrix/* homeserver:8008
+ # caddy.reverse_proxy: /.well-known/matrix/* continuwuity:8008
# If you are having problems with continuwuity serving headers,
# uncomment the header section below.
@@ -48,7 +48,7 @@ services:
# caddy.0_header.Access-Control-Allow-Headers: "Authorization"
# caddy.0_header.Content-Type: "application/json"
- homeserver:
+ continuwuity:
image: forgejo.ellis.link/continuwuation/continuwuity:latest
restart: unless-stopped
# add additional environment, volume, and network config here...
diff --git a/docs/public/deploying/docker-compose.for-traefik.yml b/docs/public/deploying/docker-compose.for-traefik.yml
index 61cdb1bea..7394886a9 100644
--- a/docs/public/deploying/docker-compose.for-traefik.yml
+++ b/docs/public/deploying/docker-compose.for-traefik.yml
@@ -1,12 +1,12 @@
# Continuwuity - Behind Traefik Reverse Proxy
services:
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
#- ./continuwuity.toml:/etc/continuwuity.toml
networks:
@@ -18,7 +18,7 @@ services:
- "traefik.http.routers.continuwuity.tls=true"
- "traefik.http.routers.continuwuity.service=continuwuity"
- "traefik.http.services.continuwuity.loadbalancer.server.port=8008"
- # possibly, depending on your config:
+ # enable tls with the `letsencrypt` certificate resolver (actual name dependant on your static config)
# - "traefik.http.routers.continuwuity.tls.certresolver=letsencrypt"
environment:
CONTINUWUITY_SERVER_NAME: example.com
@@ -34,9 +34,6 @@ services:
server=example.com:443
}
-volumes:
- db:
-
networks:
# This must match the network name that Traefik listens on
proxy:
diff --git a/docs/public/deploying/docker-compose.override.yml b/docs/public/deploying/docker-compose.override.yml
index 5906bb314..be1ef8522 100644
--- a/docs/public/deploying/docker-compose.override.yml
+++ b/docs/public/deploying/docker-compose.override.yml
@@ -1,7 +1,7 @@
# Continuwuity - Traefik Reverse Proxy Labels (override file)
services:
- homeserver:
+ continuwuity:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network
diff --git a/docs/public/deploying/docker-compose.with-caddy-labels.yml b/docs/public/deploying/docker-compose.with-caddy-labels.yml
index 078e7802b..3099ee176 100644
--- a/docs/public/deploying/docker-compose.with-caddy-labels.yml
+++ b/docs/public/deploying/docker-compose.with-caddy-labels.yml
@@ -12,15 +12,15 @@ services:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- - ./data:/data
+ - ./caddy-data:/data
restart: unless-stopped
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
# - ./continuwuity.toml:/etc/continuwuity.toml
environment:
diff --git a/docs/public/deploying/docker-compose.with-caddy.yml b/docs/public/deploying/docker-compose.with-caddy.yml
index 7f8d83fbf..3e7609e4a 100644
--- a/docs/public/deploying/docker-compose.with-caddy.yml
+++ b/docs/public/deploying/docker-compose.with-caddy.yml
@@ -10,17 +10,17 @@ services:
networks:
- proxy
volumes:
- - ./data:/data
+ - ./caddy-data:/data
# mount your created Caddyfile into the container
- ./Caddyfile:/etc/caddy/Caddyfile
restart: unless-stopped
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
# - ./continuwuity.toml:/etc/continuwuity.toml
environment:
@@ -43,6 +43,3 @@ services:
networks:
proxy:
-
-volumes:
- db:
diff --git a/docs/public/deploying/docker-compose.with-traefik.yml b/docs/public/deploying/docker-compose.with-traefik.yml
index 9eac48e82..afc084300 100644
--- a/docs/public/deploying/docker-compose.with-traefik.yml
+++ b/docs/public/deploying/docker-compose.with-traefik.yml
@@ -1,12 +1,12 @@
# Continuwuity - With Traefik Reverse Proxy
services:
- homeserver:
+ continuwuity:
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
restart: unless-stopped
command: /sbin/conduwuit
volumes:
- - db:/var/lib/continuwuity
+ - ./continuwuity-data:/var/lib/continuwuity
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
#- ./continuwuity.toml:/etc/continuwuity.toml
networks:
@@ -40,7 +40,7 @@ services:
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- - "acme:/etc/traefik/acme"
+ - "./traefik-acme-data:/etc/traefik/acme"
labels:
- "traefik.enable=true"
@@ -77,9 +77,5 @@ services:
TRAEFIK_PROVIDERS_DOCKER_ENDPOINT: "unix:///var/run/docker.sock"
TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT: false
-volumes:
- db:
- acme:
-
networks:
proxy:
diff --git a/docs/public/deploying/docker-compose.yml b/docs/public/deploying/docker-compose.yml
index a9d4491e0..342a94615 100644
--- a/docs/public/deploying/docker-compose.yml
+++ b/docs/public/deploying/docker-compose.yml
@@ -1,41 +1,38 @@
# Continuwuity - Bare Configuration (for other reverse proxies)
services:
- homeserver:
- image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
- restart: unless-stopped
- command: /sbin/conduwuit
- ports:
+ homeserver:
+ image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
+ restart: unless-stopped
+ command: /sbin/conduwuit
+ ports:
- # If your reverse proxy is on the host, use this
- # and configure it to connect to `127.0.0.1:8008`
- - 127.0.0.1:8008:8008
+ # If your reverse proxy is on the host, use this
+ # and configure it to connect to `127.0.0.1:8008`
+ - 127.0.0.1:8008:8008
- # If your reverse proxy is on another machine, use this
- # and configure it to connect to :8008
- # - 8008:8008
+ # If your reverse proxy is on another machine, use this
+ # and configure it to connect to :8008
+ # - 8008:8008
- # If your reverse proxy is a docker container on the same network,
- # comment out the entire `ports` section, and configure it to connect to `continuwuity:8008`
+ # If your reverse proxy is a docker container on the same network,
+ # comment out the entire `ports` section, and configure it to connect to `continuwuity:8008`
- volumes:
- - db:/var/lib/continuwuity
- - ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
- #- ./continuwuity.toml:/etc/continuwuity.toml
- environment:
- CONTINUWUITY_SERVER_NAME: example.com # EDIT THIS
- CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity
- CONTINUWUITY_ADDRESS: 0.0.0.0
- CONTINUWUITY_PORT: 8008
- #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above
+ volumes:
+ - ./continuwuity-data:/var/lib/continuwuity
+ - ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
+ #- ./continuwuity.toml:/etc/continuwuity.toml
+ environment:
+ CONTINUWUITY_SERVER_NAME: example.com # EDIT THIS
+ CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity
+ CONTINUWUITY_ADDRESS: 0.0.0.0
+ CONTINUWUITY_PORT: 8008
+ #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above
- ## (Optional) Serve .well-known files to tell others to reach Continuwuity on port :443
- ## If you do this, remove all routes to port :8448 on your reverse proxy
- # CONTINUWUITY_WELL_KNOWN: |
- # {
- # client=https://example.com,
- # server=example.com:443
- # }
-
-volumes:
- db:
+ ## (Optional) Serve .well-known files to tell others to reach Continuwuity on port :443
+ ## If you do this, remove all routes to port :8448 on your reverse proxy
+ # CONTINUWUITY_WELL_KNOWN: |
+ # {
+ # client=https://example.com,
+ # server=example.com:443
+ # }
diff --git a/docs/public/guides/grafana-dashboard.json b/docs/public/guides/grafana-dashboard.json
index e7922d37b..4f1b73520 100644
--- a/docs/public/guides/grafana-dashboard.json
+++ b/docs/public/guides/grafana-dashboard.json
@@ -302,7 +302,7 @@
"type": "prometheus",
"uid": "${datasource}"
},
- "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval])))",
+ "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\",http_route!~\".*/sync\"}[$__rate_interval])))",
"legendFormat": "",
"refId": "A",
"range": true
@@ -496,7 +496,7 @@
"type": "prometheus",
"uid": "${datasource}"
},
- "expr": "histogram_quantile(0.5, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval])))",
+ "expr": "histogram_quantile(0.5, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\",http_route!~\".*/sync\"}[$__rate_interval])))",
"legendFormat": "p50",
"refId": "A",
"range": true
@@ -506,7 +506,7 @@
"type": "prometheus",
"uid": "${datasource}"
},
- "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval])))",
+ "expr": "histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\",http_route!~\".*/sync\"}[$__rate_interval])))",
"legendFormat": "p95",
"refId": "B",
"range": true
@@ -516,7 +516,7 @@
"type": "prometheus",
"uid": "${datasource}"
},
- "expr": "histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval])))",
+ "expr": "histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket{instance=~\"$instance\",http_route!~\".*/sync\"}[$__rate_interval])))",
"legendFormat": "p99",
"refId": "C",
"range": true
@@ -1228,7 +1228,7 @@
{
"type": "timeseries",
"title": "PDU lag",
- "description": "Time between an accepted PDU's origin_server_ts and its arrival; affected by clock skew",
+ "description": "Time between an accepted PDU's origin_server_ts and its transaction arriving; affected by clock skew",
"id": 21,
"datasource": {
"type": "prometheus",
diff --git a/docs/reference/admin/server.md b/docs/reference/admin/server.md
index 95a0af91d..0a56394fe 100644
--- a/docs/reference/admin/server.md
+++ b/docs/reference/admin/server.md
@@ -36,10 +36,6 @@ List database backups
Send a message to the admin room
-## `!admin server reload`
-
-Hot-reload the server
-
## `!admin server restart`
Restart the server
diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdx
index 025e69bd7..be145114b 100644
--- a/docs/troubleshooting.mdx
+++ b/docs/troubleshooting.mdx
@@ -1,9 +1,9 @@
# Troubleshooting Continuwuity
-:::warning{title="Docker users:"}
-Docker can be difficult to use and debug. It's common for Docker
-misconfigurations to cause issues, particularly with networking and permissions.
-Please check that your issues are not due to problems with your Docker setup.
+:::warning{title="For Docker users"}
+It's common for Docker misconfigurations to cause issues, particularly with networking and
+permissions. Before continuing, please first check that your issues are notdue Docker
+problems. See the dedicated [**Docker issues**](#docker-issues) section for more details.
:::
## Continuwuity issues
@@ -13,9 +13,9 @@ Please check that your issues are not due to problems with your Docker setup.
Some slowness is to be expected if you're the first person on your homeserver to join a room (which will
always be the case for single-user homeservers). In this situation, your homeserver has to verify the signatures of
all of the state events sent by other servers before your join. To make this process as fast as possible, make sure you have
-[multiple fast, trusted servers](./guides/performance.mdx#tuning-your-trusted-servers) listed in `trusted_servers` in your configuration, and ensure
-`query_trusted_key_servers_first_on_join` is set to true (the default).
-If you need suggestions for trusted servers, ask in the Continuwuity main room.
+multiple fast, trusted servers listed in `trusted_servers` in your configuration, and ensure
+`query_trusted_key_servers_first_on_join` is set to true (the default). Read the
+[Tuning your trusted servers](./guides/performance.mdx#tuning-your-trusted-servers) section for more details on doing so.
However, _very_ slow joins, especially to rooms with only a few users in them or rooms created by another user
on your homeserver, may be caused by [issue !779](https://forgejo.ellis.link/continuwuation/continuwuity/issues/779),
@@ -119,11 +119,63 @@ much possible corruption is restored
- If all goes will, you should be able to restore back to using
`TolerateCorruptedTailRecords` and you have successfully recovered your database
+## Docker issues
+
+### Debugging Docker networking
+
+The Continuwuity image does not ship with any shell or internal debugging utilities. To debug network conditions for Continuwuity, run another sidecar container that is attached to its network namespace. For example, using the `curl` container:
+
+```bash
+docker run --rm -it \
+ --network container:continuwuity \
+ docker.io/curlimages/curl \
+ curl https://continuwuity.org/.well-known/matrix/server
+```
+
+### Docker loopback networking issues
+
+Some distros disallow Docker containers in bridge networks to reach out to their host's public IP by default. This can cause connectivity issues between Continuwuity and other services that are on the same host machine, such as LiveKit or a push server.
+
+One can test if this is the case by cURLing those services with a sidecar container:
+
+```bash
+docker run --rm -it --network container:continuwuity docker.io/curlimages/curl curl https://push.example.com
+# --- some timeout or refused connection errors ---
+```
+
+To fix this, use the `extra_hosts` parameter to map local service domains to `host-gateway` - a special Docker value that resolves to the internal IP address of the host.
+
+```diff title="docker-compose.yaml"
+services:
+ continuwuity:
+ ...
+# allow Continuwuity to reach out to the push server and livekit
+# via the host gateway loopback address
++ extra_hosts:
++ - "push.example.com:host-gateway"
++ - "livekit.example.com:host-gateway"
+
+ lk-jwt-service:
+ ...
+# allow jwt service to reach out to Continuwuity and livekit
+# via the host gateway loopback address
++ extra_hosts:
++ - "livekit.example.com:host-gateway"
++ - "matrix.example.com:host-gateway"
+```
+
+Reload the compose file, and connections between these services (as well as the sidecar container test above) should now work.
+
+For more information about the `host-gateway` parameter, kindly consult the Docker docs on [custom DNS with `extra_hosts`][docker-custom-dns] and the [`--add-host` option][docker-add-host].
+
+[docker-custom-dns]: https://docs.docker.com/compose/how-tos/networking/#custom-dns-with-extra_hosts
+[docker-add-host]: https://docs.docker.com/reference/cli/docker/container/run/#add-host
+
## Debugging
Note that users should not really need to debug things. If you find yourself
debugging and find the issue, please let us know and/or how we can fix it.
-Various debug commands can be [found in `!admin debug`](./reference/admin/debug).
+Various debug commands can be found in [`!admin debug`](./reference/admin/debug).
### Debug/Trace log level
@@ -136,23 +188,34 @@ you need to access debug/trace log levels, you will need to build without the
Continuwuity supports changing the tracing log environment filter on-the-fly using
the admin command `!admin debug change-log-level `. This accepts
-a string **without quotes** the same format as the `log` config option.
+a string **without quotes** in the same format as the `log` config option. Complex
+filters are also supported as well.
-Example: `!admin debug change-log-level debug`
+```bash
+# set log level to debug
+!admin debug change-log-level debug
-This can also accept complex filters such as:
-`!admin debug change-log-level info,conduit_service[{dest="example.com"}]=trace,ruma_state_res=trace`
-`!admin debug change-log-level info,conduit_service[{dest="example.com"}]=trace,conduit_service[send{dest="example.org"}]=trace`
+# trace logs for all outgoing federation to `example.com`
+!admin debug change-log-level info,conduwuit_service::federation[{dest="example.com"}]=trace
-And to reset the log level to the one that was set at startup / last config
-load, simply pass the `--reset` flag.
+# trace logs for client syncs
+!admin debug change-log-level info,conduwuit_api::client=trace
-`!admin debug change-log-level --reset`
+# debug logs for everything except h2 and presence
+!admin debug change-log-level trace,h2=off,conduwuit_service::presence=off
+```
+
+To reset the log level to the one that was set at last config
+load, simply do:
+
+```bash
+!admin debug change-log-level --reset
+```
### Pinging servers
Continuwuity can ping other servers using `!admin debug ping `. This takes
-a server name and goes through the server discovery process and queries
+a server name, goes through the server discovery process, and queries
`/_matrix/federation/v1/version`. Errors are outputted.
While it does measure the latency of the request, it is not indicative of
@@ -198,3 +261,10 @@ and is not easy for non-developers to understand.
[unbound-tuning]: https://unbound.docs.nlnetlabs.nl/en/latest/topics/core/performance.html
[unbound-arch]: https://wiki.archlinux.org/title/Unbound
+
+## Other troubleshooting topics
+
+- [LiveKit troubleshooting](./calls/livekit.mdx#troubleshooting)
+- [TURN server troubleshooting](./calls/turn.mdx#troubleshooting)
+- [Delegation/split-domain troubleshooting](./guides/delegation.mdx#troubleshooting)
+- [Push notifications troubleshooting](./guides/push.mdx#troubleshooting)
diff --git a/flake.lock b/flake.lock
index b7f225738..5834dcd97 100644
--- a/flake.lock
+++ b/flake.lock
@@ -3,11 +3,11 @@
"advisory-db": {
"flake": false,
"locked": {
- "lastModified": 1789329924,
- "narHash": "sha256-mykGMFabQ7yP6G373M3VHkrac9PJPKJstrhQz2D/Rdc=",
+ "lastModified": 1793979272,
+ "narHash": "sha256-oUcBtPbtS7PlEMuSrgTAN4wv49cXYbwKbQqhH2pah5w=",
"owner": "rustsec",
"repo": "advisory-db",
- "rev": "455fd4bac659b5f1fca3810661c2d8b3c25dad05",
+ "rev": "309392b18f6b17022f82c701f300433126901068",
"type": "github"
},
"original": {
@@ -18,11 +18,11 @@
},
"crane": {
"locked": {
- "lastModified": 1788465171,
- "narHash": "sha256-Y1/TTVXjYXGF068IThQH9fPSZ0SIE74PABlUxnWTUH0=",
+ "lastModified": 1793836618,
+ "narHash": "sha256-TREenflwEjxOSq292FYwbc3kEm7TDRtXCZRNWEdjBmg=",
"owner": "ipetkov",
"repo": "crane",
- "rev": "eb35abda9f232cc6610b1d1e3200d15c49b7ac54",
+ "rev": "79fd63528501446749c09f08cad486a58c7d173e",
"type": "github"
},
"original": {
@@ -39,11 +39,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
- "lastModified": 1789298866,
- "narHash": "sha256-6eaV5+MdWy1tAlN4HAFr64pTnYc9jiKGXBsu18cyVjE=",
+ "lastModified": 1794142885,
+ "narHash": "sha256-xWFSr7q8IerDAVRk4W7/CgTmi05hMy2qjZ0z3VYpOVk=",
"owner": "nix-community",
"repo": "fenix",
- "rev": "1fc6f36a23fa16e3740987957266f6e4b915c3cd",
+ "rev": "f7d416b5073152c7f2e4de1a28d1a4330dd30a26",
"type": "github"
},
"original": {
@@ -74,11 +74,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
- "lastModified": 1788450739,
- "narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=",
+ "lastModified": 1793576659,
+ "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=",
"owner": "hercules-ci",
"repo": "flake-parts",
- "rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993",
+ "rev": "ea2630b7470978622c7689a1ff75d2b389175399",
"type": "github"
},
"original": {
@@ -89,11 +89,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1789149629,
- "narHash": "sha256-H6GwaZzZf+4npqv0tph94w9tZddSjFjmQrVsW0z78uk=",
+ "lastModified": 1794042290,
+ "narHash": "sha256-ziZn2PvCJE5JEEpqTdxXwJpPB+L3YqoCpTAMCzyaP3U=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "eaad089433ca2bb662274377d33df3d0e51ef28b",
+ "rev": "f4a03c008967841f2a0b3cb7c436fc6fc31671f6",
"type": "github"
},
"original": {
@@ -105,11 +105,11 @@
},
"nixpkgs-lib": {
"locked": {
- "lastModified": 1788057806,
- "narHash": "sha256-DTQSMxzDWmT0zhguthvegnVkn7CFqGCv4IHCzk5ZUpM=",
+ "lastModified": 1793504054,
+ "narHash": "sha256-ThkfL3D/FhCiZFc9+3BtxwuMmpuK+/bGtXCSo1+yVew=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
- "rev": "596e2e3940e09b2abbeb03f75fa1828c57fcd72c",
+ "rev": "7851ba61fd862b277cb6a9cef37394bc18bb94e4",
"type": "github"
},
"original": {
@@ -132,11 +132,11 @@
"rust-analyzer-src": {
"flake": false,
"locked": {
- "lastModified": 1789128286,
- "narHash": "sha256-KRxxgHiKIBp7R2n41IJuE5K4IUiLOpg47EEi3AxuSp8=",
+ "lastModified": 1794096810,
+ "narHash": "sha256-dWC+YtMX+cwH3e9ndiFB77ijTsKtO5I2OxfcvUY4j3k=",
"owner": "rust-lang",
"repo": "rust-analyzer",
- "rev": "6aeeb8cf02741e5da07a1615a05faa506cecb21a",
+ "rev": "03ae6be57aa063bb373f69eead3b8e15168a45d2",
"type": "github"
},
"original": {
@@ -153,11 +153,11 @@
]
},
"locked": {
- "lastModified": 1786901030,
- "narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=",
+ "lastModified": 1791885023,
+ "narHash": "sha256-C3alQ2MEt0zVrUSho5NUDo3jmhbff72++bfwoqT9Omo=",
"owner": "numtide",
"repo": "treefmt-nix",
- "rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa",
+ "rev": "0d6d739a833ba9a9c93034862e4a7b061a062a1c",
"type": "github"
},
"original": {
diff --git a/nix/packages/continuwuity.nix b/nix/packages/continuwuity.nix
index 8baf26b3d..7ba27815d 100644
--- a/nix/packages/continuwuity.nix
+++ b/nix/packages/continuwuity.nix
@@ -42,7 +42,12 @@ let
env = {
CARGO_PROFILE = profile;
- RUSTFLAGS = rustflags;
+ # Rust links with its bundled rust-lld by default on linux-gnu targets.
+ # This bypasses nixpkgs' linker wrapper (and its rpaths), so we make it use the system one.
+ # `-C linker-features=-lld` is only stable on x86_64, but cc takes the last `-fuse-ld`.
+ RUSTFLAGS = lib.concatStringsSep " " (
+ lib.optional stdenv.hostPlatform.isLinux "-C link-arg=-fuse-ld=bfd" ++ [ rustflags ]
+ );
GIT_COMMIT_HASH = self.rev or self.dirtyRev or "";
GIT_COMMIT_HASH_SHORT = self.shortRev or self.dirtyShortRev or "";
}
@@ -60,18 +65,6 @@ craneLib.buildPackage (
inherit cargoExtraArgs;
cargoArtifacts = craneLib.buildDepsOnly attrs;
- # Needed to make continuwuity link to rocksdb
- postFixup = lib.optionalString (stdenv.hostPlatform.isLinux && rocksdb != null) ''
- old_rpath="$(patchelf --print-rpath $out/bin/conduwuit)"
- extra_rpath="${
- lib.makeLibraryPath [
- rocksdb
- ]
- }"
-
- patchelf --set-rpath "$old_rpath:$extra_rpath" $out/bin/conduwuit
- '';
-
meta = {
description = "A community-driven Matrix homeserver in Rust";
mainProgram = "conduwuit";
diff --git a/nix/packages/default.nix b/nix/packages/default.nix
index 7cba9b870..26171e846 100644
--- a/nix/packages/default.nix
+++ b/nix/packages/default.nix
@@ -18,6 +18,23 @@
{
packages =
let
+ # These musl deps aren't in the binary cache, so they're built locally, and their
+ # test suites run (and break) when the builder can execute musl binaries.
+ #
+ # TODO: drop tzdata override once https://github.com/NixOS/nixpkgs/pull/582577 reaches nixos-unstable
+ # - tzdata: `now.ck` checks against the current date.
+ # TODO: drop sqlite override once https://github.com/NixOS/nixpkgs/issues/580629 is resolved
+ # - sqlite: its test runner fails to build `testfixture` when cross-compiling to musl.
+ muslOverlay =
+ _final: prev:
+ lib.genAttrs [ "tzdata" "sqlite" ] (
+ name:
+ if prev.stdenv.hostPlatform.isMusl then
+ prev.${name}.overrideAttrs { doCheck = false; }
+ else
+ prev.${name}
+ );
+
mkPackages =
pkgs:
let
@@ -78,6 +95,7 @@
import inputs.nixpkgs {
localSystem = system;
crossSystem = "x86_64-unknown-linux-musl";
+ overlays = [ muslOverlay ];
}
)
))
@@ -86,6 +104,7 @@
import inputs.nixpkgs {
localSystem = system;
crossSystem = "aarch64-unknown-linux-musl";
+ overlays = [ muslOverlay ];
}
)
));
diff --git a/nix/packages/rocksdb.nix b/nix/packages/rocksdb.nix
index b4427dbc4..8b5076535 100644
--- a/nix/packages/rocksdb.nix
+++ b/nix/packages/rocksdb.nix
@@ -18,13 +18,13 @@
inherit enableJemalloc;
}).overrideAttrs
({
- version = "continuwuity-v0.5.0-unstable-2026-05-19";
+ version = "continuwuity-v0.5.0-unstable-2026-11-08";
src = fetchFromGitea {
domain = "forgejo.ellis.link";
owner = "continuwuation";
repo = "rocksdb";
- rev = "3756b2b905e13216d8b56bcc783d814e7b073aff";
- hash = "sha256-rSv4fr2bf9JJwdodgeuPCuceeh7k97KVxrAOC0wyPQY=";
+ rev = "722fa3219df4169610fda8962221a1ff74026fdb";
+ hash = "sha256-ZuXXp83Hgj0B5v499CNxa9oNQUS/ZKYOAZEhmarUifc=";
};
# We have this already at https://forgejo.ellis.link/continuwuation/rocksdb/commit/a935c0273e1ba44eacf88ce3685a9b9831486155
diff --git a/nix/rust.nix b/nix/rust.nix
index 0d4ee40a4..5af1e067d 100644
--- a/nix/rust.nix
+++ b/nix/rust.nix
@@ -12,7 +12,7 @@
target:
target.fromToolchainName {
name = (lib.importTOML "${inputs.self}/rust-toolchain.toml").toolchain.channel;
- sha256 = "sha256-zm3dyIY2T414ZRR3EhLOvptzG6gta4WZUcawzMUWtqI=";
+ sha256 = "sha256-MFHoWVcPZKjFrLnQnodCXbUsfZcofGfo9tV9fTTvklg=";
};
in
{
diff --git a/package-lock.json b/package-lock.json
index 2e62f2d1a..f8ff7b797 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,26 +11,26 @@
"devDependencies": {
"@rspress/core": "^2.0.0",
"@rspress/plugin-client-redirects": "^2.0.0",
- "@rspress/plugin-sitemap": "^2.0.0",
+ "@types/node": "^26.6.6",
"typescript": "^7.0.0"
}
},
"node_modules/@emnapi/core": {
- "version": "1.11.3",
- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",
- "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",
+ "version": "2.0.0-beta.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.3.tgz",
+ "integrity": "sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
- "@emnapi/wasi-threads": "1.2.3",
+ "@emnapi/wasi-threads": "2.2.0",
"tslib": "^2.4.0"
}
},
"node_modules/@emnapi/runtime": {
- "version": "1.11.3",
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
- "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
+ "version": "2.0.0-beta.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.3.tgz",
+ "integrity": "sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -39,9 +39,9 @@
}
},
"node_modules/@emnapi/wasi-threads": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",
- "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz",
+ "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -106,33 +106,36 @@
}
},
"node_modules/@napi-rs/wasm-runtime": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
- "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==",
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.7.tgz",
+ "integrity": "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@tybys/wasm-util": "^0.10.3"
},
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"
+ },
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"peerDependencies": {
- "@emnapi/core": "^1.7.1",
- "@emnapi/runtime": "^1.7.1"
+ "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3",
+ "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3"
}
},
"node_modules/@rsbuild/core": {
- "version": "2.2.11",
- "resolved": "https://registry.npmjs.org/@rsbuild/core/-/core-2.2.11.tgz",
- "integrity": "sha512-avPW0j6RaEbtV2mfl0AzTAJEimPX4Xj0pCcZyxNCrE9vkS91HmweM5V7XQj3kI5iTYfHRp9Y6To8RRHYLEvG7A==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rsbuild/core/-/core-2.3.3.tgz",
+ "integrity": "sha512-IdbBXZrIY16RxnQduXRrsRBQtJ/X7JkYESrk6D46WA918wrckYTBxE09vHvDxR+3JoCLE02vOm2NPBNxqaUw5A==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rspack/core": "~2.2.8",
- "@swc/helpers": "^0.5.23"
+ "@rspack/core": "~2.3.3",
+ "@swc/helpers": "^0.5.24"
},
"bin": {
"rsbuild": "bin/rsbuild.js"
@@ -150,14 +153,14 @@
}
},
"node_modules/@rsbuild/plugin-react": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@rsbuild/plugin-react/-/plugin-react-2.1.0.tgz",
- "integrity": "sha512-RQTIAWB/CwPjoWt9iAl+8HixeQVgZ7kEIBrWPCixfITyHdiD84h0YpUTpEUuz6kGHw1KXT9mHZ3Rwy6WG7aRDA==",
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@rsbuild/plugin-react/-/plugin-react-2.1.1.tgz",
+ "integrity": "sha512-tLtUedsRtTLS6M4VtwzI6aakFLOFdgl9Sh1ZNBWvxb0Te3EnHrppaE7UiYEmDUXQDJ50gfr6yyirtxY5N6moyg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@rspack/plugin-react-refresh": "^2.0.2",
- "react-refresh": "^0.18.0"
+ "react-refresh": "^0.19.0"
},
"peerDependencies": {
"@rsbuild/core": "^2.0.0"
@@ -169,32 +172,32 @@
}
},
"node_modules/@rspack/binding": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-2.2.8.tgz",
- "integrity": "sha512-c9flkSua3khHnOKBCRk8BkHGOwU9YB7niv+5JfQXiLZIvJmgKsZ7PD8QrFklMhsJT3oVAc6c9GN7/wy1YkACjA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-2.3.3.tgz",
+ "integrity": "sha512-wwF++36a3rqYi0G9zj+rUavn/GIMzbzXehelGS1jkYeKPHyPXrVYwRHqwEKNKMD9z+FdW4YJKQcfFkPlHEiwUg==",
"dev": true,
"license": "MIT",
"optionalDependencies": {
- "@rspack/binding-darwin-arm64": "2.2.8",
- "@rspack/binding-darwin-x64": "2.2.8",
- "@rspack/binding-linux-arm64-gnu": "2.2.8",
- "@rspack/binding-linux-arm64-musl": "2.2.8",
- "@rspack/binding-linux-ppc64-gnu": "2.2.8",
- "@rspack/binding-linux-riscv64-gnu": "2.2.8",
- "@rspack/binding-linux-riscv64-musl": "2.2.8",
- "@rspack/binding-linux-s390x-gnu": "2.2.8",
- "@rspack/binding-linux-x64-gnu": "2.2.8",
- "@rspack/binding-linux-x64-musl": "2.2.8",
- "@rspack/binding-wasm32-wasi": "2.2.8",
- "@rspack/binding-win32-arm64-msvc": "2.2.8",
- "@rspack/binding-win32-ia32-msvc": "2.2.8",
- "@rspack/binding-win32-x64-msvc": "2.2.8"
+ "@rspack/binding-darwin-arm64": "2.3.3",
+ "@rspack/binding-darwin-x64": "2.3.3",
+ "@rspack/binding-linux-arm64-gnu": "2.3.3",
+ "@rspack/binding-linux-arm64-musl": "2.3.3",
+ "@rspack/binding-linux-ppc64-gnu": "2.3.3",
+ "@rspack/binding-linux-riscv64-gnu": "2.3.3",
+ "@rspack/binding-linux-riscv64-musl": "2.3.3",
+ "@rspack/binding-linux-s390x-gnu": "2.3.3",
+ "@rspack/binding-linux-x64-gnu": "2.3.3",
+ "@rspack/binding-linux-x64-musl": "2.3.3",
+ "@rspack/binding-wasm32-wasi": "2.3.3",
+ "@rspack/binding-win32-arm64-msvc": "2.3.3",
+ "@rspack/binding-win32-ia32-msvc": "2.3.3",
+ "@rspack/binding-win32-x64-msvc": "2.3.3"
}
},
"node_modules/@rspack/binding-darwin-arm64": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.2.8.tgz",
- "integrity": "sha512-d6GuY/k7kJk7SOXmruIz0m+2fIXaLv2SnBHEYsbvBzE7ZO6QXq7fSABWFWNnSnNu+brYHA5Dr/skV81bXgTTCw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.3.3.tgz",
+ "integrity": "sha512-G9WcBOP/6ZWeqTM/G0/rkJRY4DWmYQvk2untzcpj92uO12tqjZ9BSMgtBFvwElwagfQBkX8PPutkAZgtnlAoWA==",
"cpu": [
"arm64"
],
@@ -206,9 +209,9 @@
]
},
"node_modules/@rspack/binding-darwin-x64": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.2.8.tgz",
- "integrity": "sha512-xCVou/jJASjEAjwy1T3hPJcJqA5QZASJfUwHqEk+nA0v44MagwH8tM8lsOvRfhzR7N2+YFac1rfZOUT8uM3awg==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.3.3.tgz",
+ "integrity": "sha512-6agI5XDoihay+84vzZgIwwpQQ3xBWbe2HTWBRc0n42LzynIj9h7Qv8CJzf1gSDV1Ts0jzDgAJCYUFJ6Ya5F6MA==",
"cpu": [
"x64"
],
@@ -220,16 +223,13 @@
]
},
"node_modules/@rspack/binding-linux-arm64-gnu": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.2.8.tgz",
- "integrity": "sha512-Zy/ss6YAQTjOWKDkcWrbKtu+pySltqT22wn68nlrWKygPWLNmMdU5anlsnwRTIuQ3MF0YJRS42ARauVtlqvRQw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.3.3.tgz",
+ "integrity": "sha512-VdjK1mDq+GBexd041lmWBFmAvcWIZy7kepTJbJgxLeHYYOnI3KmBG15kemhlK0pBySa+bePX7p2w8uYtl1HsCA==",
"cpu": [
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -237,16 +237,13 @@
]
},
"node_modules/@rspack/binding-linux-arm64-musl": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.2.8.tgz",
- "integrity": "sha512-lxgp5O8PhL3St9p82llHoNoeWzp9jltW5S9F00p00XPJZHUIuxbwfLSzn/6Wg86USEmafLoBkyD9CM8rBd3SNQ==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.3.3.tgz",
+ "integrity": "sha512-xF4Wy4XwGjC3m13tFm1q9p9Qpm31qrk6f5zEMPZC31UVabb+2jrgTI1pfZ8IRuo9x/Qw9s+Zq3hyDbtJvvD8Pg==",
"cpu": [
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -254,16 +251,13 @@
]
},
"node_modules/@rspack/binding-linux-ppc64-gnu": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.2.8.tgz",
- "integrity": "sha512-MY+YqpT02tcDCMgHy+IewQsaz7ql4mbJaAqqMlTIqvQwAUl9dXEP7BL352OgCxm9VRebTldE5lK99A3wVd3zqA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.3.3.tgz",
+ "integrity": "sha512-jVmn+LpF44D4FdZyT91rlT/tPMdHIfPfQTgVzwPB5nDICp4b57SFjVBApuAPIxnLT1pKLkv/LIcdvGSdAeX12w==",
"cpu": [
"ppc64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -271,16 +265,13 @@
]
},
"node_modules/@rspack/binding-linux-riscv64-gnu": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.2.8.tgz",
- "integrity": "sha512-wmN9OigSGNGCKY+AOYaWI8LJcIi8qvs5KjueBueCKOnTV6MPIEujA75QZH1pehTTYKvdGv7r2EtUXUmWpn7/SQ==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.3.3.tgz",
+ "integrity": "sha512-JcQJm8M634jkbG6zJ3TfziKYsCINEAh3FwKuxLljvBgGDEupBxPuB0n2bXBIUeI8P9C33B45IYX6BwWYXll/zw==",
"cpu": [
"riscv64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -288,16 +279,13 @@
]
},
"node_modules/@rspack/binding-linux-riscv64-musl": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.2.8.tgz",
- "integrity": "sha512-ZcQMYR10hLh581zs9MFnFFn0F7wyt5fkDffyukeMHJEoPJrbkfl6cQtsUdpQnZ+mYGYS5KydD1DT9/eMH65jjw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.3.3.tgz",
+ "integrity": "sha512-YMIOS7rFvCDnpeyxoVEVbM7U/TwcC2VDtN3Oiq9BenRsNTEvk0imINhuVRFanh15+wkiQHk9h0b+pzcggYLAsA==",
"cpu": [
"riscv64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -305,16 +293,13 @@
]
},
"node_modules/@rspack/binding-linux-s390x-gnu": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.2.8.tgz",
- "integrity": "sha512-ahBiE+Ir1FMYvStYicihhSJlS2YRagxtry0jWH8zW287o7C0eiHJ+pteJHHC15T5RJqm0j6w5TuwYe+F9AYxxg==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.3.3.tgz",
+ "integrity": "sha512-tHGtIG6GGHsk2KvSleQp/BrVqiGdjDsLJuMKR7hE7W1uJW6WDJ+a+Z23Rk5kHXh5BjeFLjXxcufGuokvmLmTag==",
"cpu": [
"s390x"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -322,16 +307,13 @@
]
},
"node_modules/@rspack/binding-linux-x64-gnu": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.2.8.tgz",
- "integrity": "sha512-dncEI515NoPXh3zzWk06Rb3mhSV76myiFKqXiJ8K4fVAe5x/RlweMhvPhHhm7RnIMeBld7BeStzOqj38XFsWGA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.3.3.tgz",
+ "integrity": "sha512-spe8SjywfO+dD7Sk+vIpPaOXf56wstrgeuztfJdiI9zTeQmf/lhdaNUUSUAXlGIaLjrN/PhV8i5kbQ7VaAkenw==",
"cpu": [
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -339,16 +321,13 @@
]
},
"node_modules/@rspack/binding-linux-x64-musl": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.2.8.tgz",
- "integrity": "sha512-pfFyU03PjD0GaQG8zOQOHwq51rrJZetXjTGpMmz7iA1hq/f9lChJsDWrC8/7VXeQLwBofLZlOODqe8OM8OBzgA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.3.3.tgz",
+ "integrity": "sha512-4E4OJodrmsS52zkSAWShG/F07etr0OG4oSrIN+/2BBgc0qR2wwu2T+rAs308IL3lbywlS+J+cynrRcsSFMD+Kg==",
"cpu": [
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -356,9 +335,9 @@
]
},
"node_modules/@rspack/binding-wasm32-wasi": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.2.8.tgz",
- "integrity": "sha512-3mOJuZTrF56jOh/GD9chLMJKbzPZ6Ty2OIML7+lLz0Yk2XS/xWRfLn85Dmnkb/O6UF65x7+p8VPAIZlBtLTclw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.3.3.tgz",
+ "integrity": "sha512-AhlsPjW31TGP8N+J7OmbCPaamARUl+OQNiT3xo0PL5Dz5oMm+bEfYLostpehKyy8MNDrmJcY97M9pDb5MDMA0w==",
"cpu": [
"wasm32"
],
@@ -366,15 +345,15 @@
"license": "MIT",
"optional": true,
"dependencies": {
- "@emnapi/core": "1.11.3",
- "@emnapi/runtime": "1.11.3",
- "@napi-rs/wasm-runtime": "1.1.6"
+ "@emnapi/core": "2.0.0-beta.3",
+ "@emnapi/runtime": "2.0.0-beta.3",
+ "@napi-rs/wasm-runtime": "1.2.7"
}
},
"node_modules/@rspack/binding-win32-arm64-msvc": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.2.8.tgz",
- "integrity": "sha512-Cu/RMZT/16s+67xhl6X1pswetL3GLSQl+LnugKRh08Ul21A/tR7vxC4g4aih4u9k5SXCAngxFUt8zAjKnHIBqA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.3.3.tgz",
+ "integrity": "sha512-Zqbj7GBPtkJ8GlUKAjFgvmOxKkQwjfS3XfjwGBcmoIAUb4IxUsmMqvi+gfKrvI45SjYVFZaJnTpOJw6GL79K+Q==",
"cpu": [
"arm64"
],
@@ -386,9 +365,9 @@
]
},
"node_modules/@rspack/binding-win32-ia32-msvc": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.2.8.tgz",
- "integrity": "sha512-H/erd6di8OapZhhM0raA/7XduPn9jusfLMeO1XF+AmF9WF3HzHgMjha1j+KwtPgQnaH69w6AhY+G2472VIwQmw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.3.3.tgz",
+ "integrity": "sha512-sJJmbrdzH6kI48mCsUu5a2+BzEktLmHrHUmWGkAPAi0zhi4anA7sOdS1+uERbkkd/XAzs0bdn3JXyT2djY+3IA==",
"cpu": [
"ia32"
],
@@ -400,9 +379,9 @@
]
},
"node_modules/@rspack/binding-win32-x64-msvc": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.2.8.tgz",
- "integrity": "sha512-BziHSUlIQM0MliCqdcHuBXSkQGtPoHQTXJce7fsgnTAzQFgPeog92qTNezYI4IrQ7pQouyiVJ2HPieUbVPRKQQ==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.3.3.tgz",
+ "integrity": "sha512-1r3wxV1pBNykqpbEbZWqcrZd13PKLq0e7Ku6qv8IGKKeftuf3RUxTkeM5AzppGMGEIA9sw8mRdN7NvEXxqLLxw==",
"cpu": [
"x64"
],
@@ -414,13 +393,13 @@
]
},
"node_modules/@rspack/core": {
- "version": "2.2.8",
- "resolved": "https://registry.npmjs.org/@rspack/core/-/core-2.2.8.tgz",
- "integrity": "sha512-JugsVrnbMGNYzMH++7gR9enygpP/lAo9PbVRq3XmJg0ryIvCpST0XJjBcccaSjYaaPamsjrddihmgVLMFp+yXw==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@rspack/core/-/core-2.3.3.tgz",
+ "integrity": "sha512-stAYr0SXf+ZFXFsWTv+Ljxoj/nQs2p7gX9V1kBwlO2IXlRAAhabLONYibT3ZeEGybx3kowrs7uJkcOQsuHgghw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rspack/binding": "2.2.8"
+ "@rspack/binding": "2.3.3"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
@@ -455,40 +434,41 @@
}
},
"node_modules/@rspress/core": {
- "version": "2.0.23",
- "resolved": "https://registry.npmjs.org/@rspress/core/-/core-2.0.23.tgz",
- "integrity": "sha512-two8zdTxN9iJBSyiFXwRLLDXz/yLY2+4ycz8wHjJYzeeuFi/EN2eqsKw1nSpY7sxEGIssY1X74c6017JJUBTyA==",
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@rspress/core/-/core-2.1.4.tgz",
+ "integrity": "sha512-7OmP7ABDgQLSpVfpBHfpjqu4H3PGBGMyhLxF1crPQ48Q6MIWAVu77nw7cONn8AZa9GoVq0N/DoE3GEtgZzlu6w==",
"dev": true,
"license": "MIT",
"dependencies": {
"@mdx-js/mdx": "^3.1.1",
"@mdx-js/react": "^3.1.1",
- "@rsbuild/core": "^2.2.10",
- "@rsbuild/plugin-react": "~2.1.0",
- "@rspress/shared": "2.0.23",
+ "@rsbuild/core": "^2.3.3",
+ "@rsbuild/plugin-react": "~2.1.1",
+ "@rspress/shared": "2.1.4",
"@shikijs/rehype": "^4.2.0",
+ "@shikijs/transformers": "^4.2.0",
"@types/mdast": "^4.0.4",
- "@types/react": "^19.2.18",
+ "@types/react": "^19.3.0",
"@unhead/react": "^2.1.17",
"body-scroll-lock": "4.0.0-beta.0",
"clsx": "2.1.1",
"copy-to-clipboard": "^3.3.3",
"flexsearch": "0.8.212",
"hast-util-heading-rank": "^3.0.0",
- "hast-util-to-jsx-runtime": "^2.3.6",
+ "hast-util-to-jsx-runtime": "^2.3.7",
"mdast-util-mdx": "^3.0.0",
"mdast-util-mdxjs-esm": "^2.0.1",
- "medium-zoom": "1.1.0",
+ "medium-zoom": "1.1.2",
"nprogress": "^0.2.0",
- "react": "^19.2.8",
- "react-dom": "^19.2.8",
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
"react-lazy-with-preload": "^2.2.1",
"react-render-to-markdown": "19.1.0",
- "react-router-dom": "^7.18.4",
+ "react-router-dom": "^7.18.5",
"rehype-external-links": "^3.0.0",
"rehype-raw": "^7.0.0",
- "remark-cjk-friendly": "^2.3.1",
- "remark-cjk-friendly-gfm-strikethrough": "^2.3.1",
+ "remark-cjk-friendly": "^2.3.4",
+ "remark-cjk-friendly-gfm-strikethrough": "^2.3.3",
"remark-gfm": "^4.0.1",
"remark-mdx": "^3.1.1",
"remark-parse": "^11.0.0",
@@ -508,71 +488,58 @@
}
},
"node_modules/@rspress/plugin-client-redirects": {
- "version": "2.0.23",
- "resolved": "https://registry.npmjs.org/@rspress/plugin-client-redirects/-/plugin-client-redirects-2.0.23.tgz",
- "integrity": "sha512-TdpvO3TREv6s2mE32ztFvG3P232qUwjyQCKKsb9g0XT0q7rzcStZFRE7XT/L8i0XTzH/mfli1tVl4guTea/J3Q==",
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@rspress/plugin-client-redirects/-/plugin-client-redirects-2.1.4.tgz",
+ "integrity": "sha512-6/g+Mr8lslqiFzlMBouex8TLm6PlQK6cmZ71Yfv82+Uxcrb+LaFAFiPbq2G7gToXBQUoECM4D/7nSLAfeOhnEQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"peerDependencies": {
- "@rspress/core": "^2.0.10"
- }
- },
- "node_modules/@rspress/plugin-sitemap": {
- "version": "2.0.23",
- "resolved": "https://registry.npmjs.org/@rspress/plugin-sitemap/-/plugin-sitemap-2.0.23.tgz",
- "integrity": "sha512-r37TvCP2wuQX8JbA7hHti8JXhVx4HiaJPn702NgFhGyolGJYIUTRQCO2/ixiP1FZJuxZ4c0yb4ZyNeDa9ZPMlw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "peerDependencies": {
- "@rspress/core": "^2.0.10"
+ "@rspress/core": "^2.1.0-beta.2"
}
},
"node_modules/@rspress/shared": {
- "version": "2.0.23",
- "resolved": "https://registry.npmjs.org/@rspress/shared/-/shared-2.0.23.tgz",
- "integrity": "sha512-kE2GXRCQ7GAl2wll1JBWRHEkZICKcWv3V86m8TkjiWb0eEdjACl3kns7j00KTq4UbE35kUPOs+0Lx8vGqK7q9w==",
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@rspress/shared/-/shared-2.1.4.tgz",
+ "integrity": "sha512-SuQyVKn9xcQwkzfl+4bPBzX10gxbhCs9UupqSoPtxvyr9pMgSbXnlo3gxTPZXLzk5HUqZZ6tlIju25PVCEtYWA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rsbuild/core": "^2.2.10",
+ "@rsbuild/core": "^2.3.3",
"@shikijs/rehype": "^4.2.0",
- "@types/react": "^19.2.18",
- "mdast-util-mdx-jsx": "^3.2.0",
+ "@types/react": "^19.3.0",
+ "mdast-util-mdx-jsx": "^3.2.1",
"unified": "^11.0.5"
}
},
"node_modules/@shikijs/core": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.4.3.tgz",
- "integrity": "sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.6.0.tgz",
+ "integrity": "sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/primitive": "4.4.3",
- "@shikijs/types": "4.4.3",
- "@shikijs/vscode-textmate": "^10.0.2",
+ "@shikijs/primitive": "4.6.0",
+ "@shikijs/types": "4.6.0",
+ "@shikijs/vscode-textmate": "^10.1.0",
"@types/hast": "^3.0.5",
- "hast-util-to-html": "^9.0.5"
+ "hast-util-to-html": "^9.0.6"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/engine-javascript": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.4.3.tgz",
- "integrity": "sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.6.0.tgz",
+ "integrity": "sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3",
- "@shikijs/vscode-textmate": "^10.0.2",
+ "@shikijs/types": "4.6.0",
+ "@shikijs/vscode-textmate": "^10.1.0",
"oniguruma-to-es": "^4.3.6"
},
"engines": {
@@ -580,41 +547,41 @@
}
},
"node_modules/@shikijs/engine-oniguruma": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.4.3.tgz",
- "integrity": "sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.6.0.tgz",
+ "integrity": "sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3",
- "@shikijs/vscode-textmate": "^10.0.2"
+ "@shikijs/types": "4.6.0",
+ "@shikijs/vscode-textmate": "^10.1.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/langs": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.4.3.tgz",
- "integrity": "sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.6.0.tgz",
+ "integrity": "sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3"
+ "@shikijs/types": "4.6.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/primitive": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.4.3.tgz",
- "integrity": "sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.6.0.tgz",
+ "integrity": "sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3",
- "@shikijs/vscode-textmate": "^10.0.2",
+ "@shikijs/types": "4.6.0",
+ "@shikijs/vscode-textmate": "^10.1.0",
"@types/hast": "^3.0.5"
},
"engines": {
@@ -622,44 +589,58 @@
}
},
"node_modules/@shikijs/rehype": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/rehype/-/rehype-4.4.3.tgz",
- "integrity": "sha512-vkG9jG1aRnrx05R31uAOKQHE8qpY7r1cBXE2sAZgFK2IaPnQHwaP4L1C6amQixmZ8thBsKwfbSsYxMDoo46UWQ==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/rehype/-/rehype-4.6.0.tgz",
+ "integrity": "sha512-qv3mGfYJuy+TW6UUyC2QrYSEmTxJNGXZ/NmCEsyH0NHfJIOYGvpWm0kNu6P2Ec14jmGwwTfVLMta/FZtY+MrJQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3",
+ "@shikijs/types": "4.6.0",
"@types/hast": "^3.0.5",
"hast-util-to-string": "^3.0.1",
- "shiki": "4.4.3",
+ "shiki": "4.6.0",
"unified": "^11.0.5",
- "unist-util-visit": "^5.1.0"
+ "unist-util-visit": "^5.2.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/themes": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.4.3.tgz",
- "integrity": "sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.6.0.tgz",
+ "integrity": "sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/types": "4.4.3"
+ "@shikijs/types": "4.6.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@shikijs/transformers": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-4.6.0.tgz",
+ "integrity": "sha512-oZ28gYlPOYspv6AD74lCb14AAJugSY/+nJxRWjH42yDbdLAdftVU/PP36tOhb435Sfop2UGWcRGXY7HLLveKCg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@shikijs/core": "4.6.0",
+ "@shikijs/types": "4.6.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/types": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.4.3.tgz",
- "integrity": "sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.6.0.tgz",
+ "integrity": "sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/vscode-textmate": "^10.0.2",
+ "@shikijs/vscode-textmate": "^10.1.0",
"@types/hast": "^3.0.5"
},
"engines": {
@@ -667,26 +648,23 @@
}
},
"node_modules/@shikijs/vscode-textmate": {
- "version": "10.0.2",
- "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",
- "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz",
+ "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==",
"dev": true,
"license": "MIT"
},
"node_modules/@swc/helpers": {
- "version": "0.5.23",
- "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
- "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
+ "version": "0.5.24",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.24.tgz",
+ "integrity": "sha512-6tcXo4kA8HgGO7AVmawB57RYi/piBPYVHVcO6dXjX+SZw8GoHmi262sp4v2Ha2kNP9Cx84qei27yT+fjS1lxgg==",
"dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "tslib": "^2.8.0"
- }
+ "license": "Apache-2.0"
},
"node_modules/@tybys/wasm-util": {
- "version": "0.10.4",
- "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
- "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
+ "version": "0.10.5",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz",
+ "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -705,9 +683,9 @@
}
},
"node_modules/@types/estree": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
- "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
+ "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
"dev": true,
"license": "MIT"
},
@@ -755,6 +733,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/node": {
+ "version": "26.6.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
+ "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.9.0"
+ }
+ },
"node_modules/@types/react": {
"version": "19.3.0",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
@@ -1136,9 +1124,9 @@
}
},
"node_modules/acorn": {
- "version": "8.18.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",
- "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",
+ "version": "8.19.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
+ "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",
"dev": true,
"license": "MIT",
"bin": {
@@ -1368,13 +1356,13 @@
}
},
"node_modules/entities": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
- "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",
+ "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",
"dev": true,
"license": "BSD-2-Clause",
"engines": {
- "node": ">=0.12"
+ "node": ">=20.19.0"
},
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
@@ -1562,9 +1550,9 @@
"license": "Apache-2.0"
},
"node_modules/get-east-asian-width": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
- "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",
+ "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -1575,9 +1563,9 @@
}
},
"node_modules/hast-util-from-parse5": {
- "version": "8.0.3",
- "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz",
- "integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==",
+ "version": "8.0.4",
+ "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.4.tgz",
+ "integrity": "sha512-Yq7XlXor0Cpb71sI2E0zpv8QxQ5a6rfhDEETk4bcgrFX2SvJAY2PHocWwFtL6U9qyfiyByW3wZ6sZEfP2kW81g==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1638,9 +1626,9 @@
}
},
"node_modules/hast-util-raw": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz",
- "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==",
+ "version": "9.2.0",
+ "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.2.0.tgz",
+ "integrity": "sha512-1zVq3M9AlZiBZ4mlMPnLtkK2rdd+I8VhmFLNLb//XJm6xA2AVH2tz19EHy25RgRWut6z6FpTARAs7P8rnmRJUQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1651,7 +1639,7 @@
"hast-util-to-parse5": "^8.0.0",
"html-void-elements": "^3.0.0",
"mdast-util-to-hast": "^13.0.0",
- "parse5": "^7.0.0",
+ "parse5": "^8.0.0",
"unist-util-position": "^5.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0",
@@ -1693,9 +1681,9 @@
}
},
"node_modules/hast-util-to-html": {
- "version": "9.0.5",
- "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz",
- "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==",
+ "version": "9.0.6",
+ "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz",
+ "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1717,9 +1705,9 @@
}
},
"node_modules/hast-util-to-jsx-runtime": {
- "version": "2.3.6",
- "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",
- "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",
+ "version": "2.3.7",
+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.7.tgz",
+ "integrity": "sha512-F7DNV2NMcTxA4GqPVHnXzX+mpoPHAIY9rJAVH3CZ1FdBZOcBUEjUuvMkMpHVs/sicEtznh9tMGj5WUR9S4E2rg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1735,7 +1723,7 @@
"mdast-util-mdxjs-esm": "^2.0.0",
"property-information": "^7.0.0",
"space-separated-tokens": "^2.0.0",
- "style-to-js": "^1.0.0",
+ "style-to-object": "^2.0.0",
"unist-util-position": "^5.0.0",
"vfile-message": "^4.0.0"
},
@@ -1744,6 +1732,23 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/hast-util-to-jsx-runtime/node_modules/inline-style-parser": {
+ "version": "0.2.9",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.9.tgz",
+ "integrity": "sha512-IttN8BqKLxzUrnTqHI+/hwAJQItBAUjdoHERCDv+oOuX48VP6bzW8+QjOXSfoevzq3YrYAwX1uLHp8TqO9yIeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hast-util-to-jsx-runtime/node_modules/style-to-object": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-2.0.2.tgz",
+ "integrity": "sha512-QmbXPUylqU80HAgTOJeEOdbA40W9KtxmjMhQy+tq+b8F2aoh3aQLuy82hh2jm2qsC9hR9eI0+eQidTMydKcqRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inline-style-parser": "0.2.9"
+ }
+ },
"node_modules/hast-util-to-parse5": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz",
@@ -1793,9 +1798,9 @@
}
},
"node_modules/hastscript": {
- "version": "9.0.1",
- "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz",
- "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==",
+ "version": "9.0.3",
+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.3.tgz",
+ "integrity": "sha512-1ALZXSmCGmW3h8AMz4R4+QKSKFi7sNgXLVwmwB8FYVtl1CwQ3WDkSAEY/d5tp1g/vbQgq2s1WlHgfO3jbw1TsA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1811,9 +1816,9 @@
}
},
"node_modules/hookable": {
- "version": "6.1.1",
- "resolved": "https://registry.npmjs.org/hookable/-/hookable-6.1.1.tgz",
- "integrity": "sha512-U9LYDy1CwhMCnprUfeAZWZGByVbhd54hwepegYTK7Pi5NvqEj63ifz5z+xukznehT7i6NIZRu89Ay1AZmRsLEQ==",
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/hookable/-/hookable-6.1.2.tgz",
+ "integrity": "sha512-+abwxtiEA52GCVIsQqut3S/uKTbUwYIp4Pe/vv+6py5XiXBCqMZHg6pA6Y5qhgLSEys0/cYuPbO0z1QFj5ZCmg==",
"dev": true,
"license": "MIT"
},
@@ -1828,13 +1833,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/inline-style-parser": {
- "version": "0.2.7",
- "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
- "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/is-absolute-url": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz",
@@ -1934,9 +1932,9 @@
}
},
"node_modules/markdown-table": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",
- "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.1.0.tgz",
+ "integrity": "sha512-xpeSCdM+B+6P3ncfgaB7FoDbtJ30xAe6Z18TGT7AgXJsHqCElCICZovQqdRMm7kHgpTyYv36EupqewoFFSB8vw==",
"dev": true,
"license": "MIT",
"funding": {
@@ -1945,16 +1943,16 @@
}
},
"node_modules/mdast-util-find-and-replace": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz",
- "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz",
+ "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/mdast": "^4.0.0",
"escape-string-regexp": "^5.0.0",
"unist-util-is": "^6.0.0",
- "unist-util-visit-parents": "^6.0.0"
+ "unist-util-visit-parents": "^6.1.0"
},
"funding": {
"type": "opencollective",
@@ -1962,9 +1960,9 @@
}
},
"node_modules/mdast-util-from-markdown": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",
- "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz",
+ "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2007,9 +2005,9 @@
}
},
"node_modules/mdast-util-gfm-autolink-literal": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",
- "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.1.0.tgz",
+ "integrity": "sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2043,9 +2041,9 @@
}
},
"node_modules/mdast-util-gfm-strikethrough": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz",
- "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz",
+ "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2059,9 +2057,9 @@
}
},
"node_modules/mdast-util-gfm-table": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",
- "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.1.tgz",
+ "integrity": "sha512-fiIjPrAy4kz68/eFbPHhsiWDGHhqUSVoU1XsfLM5DsEPXw7MxgiVVyulUggFRckVWeT1KXQXkg5vm3kv4oMSOA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2069,7 +2067,9 @@
"devlop": "^1.0.0",
"markdown-table": "^3.0.0",
"mdast-util-from-markdown": "^2.0.0",
- "mdast-util-to-markdown": "^2.0.0"
+ "mdast-util-to-markdown": "^2.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "unist-util-visit": "^5.0.0"
},
"funding": {
"type": "opencollective",
@@ -2077,9 +2077,9 @@
}
},
"node_modules/mdast-util-gfm-task-list-item": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",
- "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.1.tgz",
+ "integrity": "sha512-jXVO1hvB2hs82g1esi7I9nIJDqiijbQLIyH2jDUb5s7jIAZMr/79h0VHSq7XHKTqpLARRm+DDNjduB7S9+6XZA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2131,9 +2131,9 @@
}
},
"node_modules/mdast-util-mdx-jsx": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",
- "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.1.tgz",
+ "integrity": "sha512-oXp1GIa+E9IwIs3a106+tr3Bz2MlTTBvlXjOZMoIat11kk7vjqgmBnksB9WHmWv+gZh7k3IUgpAHlwHB7DH4GQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2212,9 +2212,9 @@
}
},
"node_modules/mdast-util-to-markdown": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",
- "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.3.tgz",
+ "integrity": "sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2223,8 +2223,10 @@
"longest-streak": "^3.0.0",
"mdast-util-phrasing": "^4.0.0",
"mdast-util-to-string": "^4.0.0",
+ "micromark-util-character": "^2.0.0",
"micromark-util-classify-character": "^2.0.0",
"micromark-util-decode-string": "^2.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
"unist-util-visit": "^5.0.0",
"zwitch": "^2.0.0"
},
@@ -2234,15 +2236,17 @@
}
},
"node_modules/mdast-util-to-markdown-cjk-friendly": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown-cjk-friendly/-/mdast-util-to-markdown-cjk-friendly-1.0.0.tgz",
- "integrity": "sha512-BoaAm8mlJ+LAYz0Qs532Y3ciTuQYgBUPZcSFbvC/ZKmEMAKgulw84YvQK1gI34t/vL2euSfuaWlqczkTBgamkw==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown-cjk-friendly/-/mdast-util-to-markdown-cjk-friendly-1.0.2.tgz",
+ "integrity": "sha512-1HCuZwTxQX3WfaNFk8PDb/VW8Ulvzn+nHD+W79Q9k5NXUSkGXH9Zv3eMJ4VI7GjZIz4Ff7WbruEFgMUaPmRJ8g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "mdast-util-to-markdown": "^2.1.2",
+ "mdast-util-to-markdown": "^2.1.3",
"micromark-extension-cjk-friendly-util": "3.0.1",
- "micromark-util-symbol": "^2.0.1"
+ "micromark-util-character": "^2.1.1",
+ "micromark-util-classify-character": "^2.0.1",
+ "micromark-util-html-tag-name": "^2.0.1"
},
"engines": {
"node": ">=18"
@@ -2257,16 +2261,15 @@
}
},
"node_modules/mdast-util-to-markdown-cjk-friendly-gfm-strikethrough": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown-cjk-friendly-gfm-strikethrough/-/mdast-util-to-markdown-cjk-friendly-gfm-strikethrough-1.0.0.tgz",
- "integrity": "sha512-1ePVfB4P/vz3xSsm6H3D32r6VYGErxclnuLLFK02/2ReF+UdEKm7caulK6Vm0LBIp5gPRtB2Z1OYDznCkX3k2w==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown-cjk-friendly-gfm-strikethrough/-/mdast-util-to-markdown-cjk-friendly-gfm-strikethrough-1.0.2.tgz",
+ "integrity": "sha512-aidUweNq42Mok1p6KTJG7m0Ds0+njX3Sp6shhh3/VhwIkyWdn2SqEzkeiwJsK+Ksz0pL6vZUHrVFgFtyX9NMYg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "mdast-util-gfm-strikethrough": "^2.0.0",
- "mdast-util-to-markdown": "^2.1.2",
- "micromark-extension-cjk-friendly-util": "3.0.1",
- "micromark-util-symbol": "^2.0.1"
+ "mdast-util-gfm-strikethrough": "^2.0.1",
+ "mdast-util-to-markdown": "^2.1.3",
+ "mdast-util-to-markdown-cjk-friendly": "1.0.2"
},
"engines": {
"node": ">=18"
@@ -2295,16 +2298,20 @@
}
},
"node_modules/medium-zoom": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/medium-zoom/-/medium-zoom-1.1.0.tgz",
- "integrity": "sha512-ewyDsp7k4InCUp3jRmwHBRFGyjBimKps/AJLjRSox+2q/2H4p/PNpQf+pwONWlJiOudkBXtbdmVbFjqyybfTmQ==",
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/medium-zoom/-/medium-zoom-1.1.2.tgz",
+ "integrity": "sha512-0wTqeCQ4NGzjPghi7i2lMI6RyGj9N60fGvzY9HiNcxDTcvOw7S+ri7K3xVkrIZ+2uzUg4w/KSVMDdZXYMtHkdw==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "workspaces": [
+ "website",
+ "examples/*"
+ ]
},
"node_modules/micromark": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",
- "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz",
+ "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==",
"dev": true,
"funding": [
{
@@ -2328,6 +2335,7 @@
"micromark-util-chunked": "^2.0.0",
"micromark-util-combine-extensions": "^2.0.0",
"micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
"micromark-util-encode": "^2.0.0",
"micromark-util-normalize-identifier": "^2.0.0",
"micromark-util-resolve-all": "^2.0.0",
@@ -2338,9 +2346,9 @@
}
},
"node_modules/micromark-core-commonmark": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",
- "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz",
+ "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==",
"dev": true,
"funding": [
{
@@ -2358,24 +2366,25 @@
"devlop": "^1.0.0",
"micromark-factory-destination": "^2.0.0",
"micromark-factory-label": "^2.0.0",
- "micromark-factory-space": "^2.0.0",
+ "micromark-factory-space": "^2.1.0",
"micromark-factory-title": "^2.0.0",
"micromark-factory-whitespace": "^2.0.0",
"micromark-util-character": "^2.0.0",
"micromark-util-chunked": "^2.0.0",
"micromark-util-classify-character": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
"micromark-util-html-tag-name": "^2.0.0",
"micromark-util-normalize-identifier": "^2.0.0",
"micromark-util-resolve-all": "^2.0.0",
"micromark-util-subtokenize": "^2.0.0",
"micromark-util-symbol": "^2.0.0",
- "micromark-util-types": "^2.0.0"
+ "micromark-util-types": "^2.0.3"
}
},
"node_modules/micromark-extension-cjk-friendly": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/micromark-extension-cjk-friendly/-/micromark-extension-cjk-friendly-2.0.1.tgz",
- "integrity": "sha512-OkzoYVTL1ChbvQ8Cc1ayTIz7paFQz8iS9oIYmewncweUSwmWR+hkJF9spJ1lxB90XldJl26A1F4IkPOKS3bDXw==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-extension-cjk-friendly/-/micromark-extension-cjk-friendly-2.0.2.tgz",
+ "integrity": "sha512-/BqZNCkDWg3Hj9zEEcRitZ5uMF3X78qmBFuP17oAjnVDZ0+H1GHiDKMJZDpJsXasCHEn/kzl6QHozUiWgCHtPQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2755,9 +2764,9 @@
}
},
"node_modules/micromark-factory-space": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",
- "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz",
+ "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==",
"dev": true,
"funding": [
{
@@ -2948,6 +2957,26 @@
"micromark-util-symbol": "^2.0.0"
}
},
+ "node_modules/micromark-util-edit-map": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz",
+ "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
"node_modules/micromark-util-encode": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
@@ -3111,9 +3140,9 @@
"license": "MIT"
},
"node_modules/micromark-util-types": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",
- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz",
+ "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==",
"dev": true,
"funding": [
{
@@ -3188,13 +3217,13 @@
"license": "MIT"
},
"node_modules/parse5": {
- "version": "7.3.0",
- "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
- "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz",
+ "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "entities": "^6.0.0"
+ "entities": "^9.0.0"
},
"funding": {
"url": "https://github.com/inikulin/parse5?sponsor=1"
@@ -3212,9 +3241,9 @@
}
},
"node_modules/react": {
- "version": "19.3.0",
- "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",
- "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==",
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
"dev": true,
"license": "MIT",
"engines": {
@@ -3222,16 +3251,16 @@
}
},
"node_modules/react-dom": {
- "version": "19.3.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",
- "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==",
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"scheduler": "^0.28.0"
},
"peerDependencies": {
- "react": "^19.3.0"
+ "react": "^19.3.1"
}
},
"node_modules/react-lazy-with-preload": {
@@ -3265,9 +3294,9 @@
"license": "MIT"
},
"node_modules/react-refresh": {
- "version": "0.18.0",
- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",
- "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==",
+ "version": "0.19.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.19.0.tgz",
+ "integrity": "sha512-5HdstYgoJBbBofjapO5qCPcovECJCBfvjLb+iTcsmqDFVMRdqy0qs7iiInBJTUXmIFc2bjoc5b2HVLp2zRtYhQ==",
"dev": true,
"license": "MIT",
"engines": {
@@ -3288,9 +3317,9 @@
}
},
"node_modules/react-router": {
- "version": "7.18.4",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.4.tgz",
- "integrity": "sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==",
+ "version": "7.18.5",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.5.tgz",
+ "integrity": "sha512-dTgvcXDOrLPrlLHrcZAqWveiK1hMSqN+rGAJzegP8HtmNkfRxOoshGWBNX3ZJ0cZjOHkRdlUJtaIhZMLLyGyPw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3311,13 +3340,13 @@
}
},
"node_modules/react-router-dom": {
- "version": "7.18.4",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.4.tgz",
- "integrity": "sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==",
+ "version": "7.18.5",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.5.tgz",
+ "integrity": "sha512-9HcfDMU6JJ/fp6gJZYGwNE6RknVGS4kBjH1HkNw959mCJi70TVwdipQWv2FEol9uGpi+SZTFtVpJPtEQfayeOw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "react-router": "7.18.4"
+ "react-router": "7.18.5"
},
"engines": {
"node": ">=20.0.0"
@@ -3477,14 +3506,14 @@
}
},
"node_modules/remark-cjk-friendly": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/remark-cjk-friendly/-/remark-cjk-friendly-2.3.1.tgz",
- "integrity": "sha512-f+pKZRxCRwNEGFBKNRAZAqU91GIK1SAo3ZyFHWRUgC9zcxRR0BXKd6YwqgSsxtW0rNpUDtONj7H5nje2WL3fcA==",
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/remark-cjk-friendly/-/remark-cjk-friendly-2.3.4.tgz",
+ "integrity": "sha512-xhBzjXkumeN5tKXXg6k/THSCZCP6AYV6+wSxnCsPTkxHt60bb9Yk0IWhdD87CFaDCiTqd86LKHtVObcJTmgcow==",
"dev": true,
"license": "MIT",
"dependencies": {
- "mdast-util-to-markdown-cjk-friendly": "1.0.0",
- "micromark-extension-cjk-friendly": "2.0.1"
+ "mdast-util-to-markdown-cjk-friendly": "1.0.2",
+ "micromark-extension-cjk-friendly": "2.0.2"
},
"engines": {
"node": ">=18"
@@ -3500,13 +3529,13 @@
}
},
"node_modules/remark-cjk-friendly-gfm-strikethrough": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/remark-cjk-friendly-gfm-strikethrough/-/remark-cjk-friendly-gfm-strikethrough-2.3.1.tgz",
- "integrity": "sha512-JE3TGgouk/sy92SemNMEUhO5mNP4on04cmzOV3s3R5Dbk160ewmpM4tgPiinKKvoJ5UW2fTu7FOYsjVbusSA9w==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/remark-cjk-friendly-gfm-strikethrough/-/remark-cjk-friendly-gfm-strikethrough-2.3.3.tgz",
+ "integrity": "sha512-UBujdRd1TTgr79iPdXhCnB9ag7kaM54FBCzTa/jLCNfZFGPyZCZb8G6yoCA0k4M3HTKDvilIVKvPxU6K/05dDw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "mdast-util-to-markdown-cjk-friendly-gfm-strikethrough": "1.0.0",
+ "mdast-util-to-markdown-cjk-friendly-gfm-strikethrough": "1.0.2",
"micromark-extension-cjk-friendly-gfm-strikethrough": "2.0.1"
},
"engines": {
@@ -3625,26 +3654,26 @@
}
},
"node_modules/set-cookie-parser": {
- "version": "2.7.2",
- "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
- "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
+ "version": "2.7.3",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz",
+ "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==",
"dev": true,
"license": "MIT"
},
"node_modules/shiki": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.4.3.tgz",
- "integrity": "sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.6.0.tgz",
+ "integrity": "sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@shikijs/core": "4.4.3",
- "@shikijs/engine-javascript": "4.4.3",
- "@shikijs/engine-oniguruma": "4.4.3",
- "@shikijs/langs": "4.4.3",
- "@shikijs/themes": "4.4.3",
- "@shikijs/types": "4.4.3",
- "@shikijs/vscode-textmate": "^10.0.2",
+ "@shikijs/core": "4.6.0",
+ "@shikijs/engine-javascript": "4.6.0",
+ "@shikijs/engine-oniguruma": "4.6.0",
+ "@shikijs/langs": "4.6.0",
+ "@shikijs/themes": "4.6.0",
+ "@shikijs/types": "4.6.0",
+ "@shikijs/vscode-textmate": "^10.1.0",
"@types/hast": "^3.0.5"
},
"engines": {
@@ -3697,7 +3726,14 @@
"style-to-object": "1.0.14"
}
},
- "node_modules/style-to-object": {
+ "node_modules/style-to-js/node_modules/inline-style-parser": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/style-to-js/node_modules/style-to-object": {
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",
"integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",
@@ -3737,11 +3773,12 @@
}
},
"node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
"dev": true,
- "license": "0BSD"
+ "license": "0BSD",
+ "optional": true
},
"node_modules/typescript": {
"version": "7.0.2",
@@ -3778,6 +3815,13 @@
"@typescript/typescript-win32-x64": "7.0.2"
}
},
+ "node_modules/undici-types": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
+ "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/unhead": {
"version": "2.1.17",
"resolved": "https://registry.npmjs.org/unhead/-/unhead-2.1.17.tgz",
@@ -3868,15 +3912,15 @@
}
},
"node_modules/unist-util-visit": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",
- "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz",
+ "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0",
- "unist-util-visit-parents": "^6.0.0"
+ "unist-util-visit-parents": "^6.1.0"
},
"funding": {
"type": "opencollective",
@@ -3898,9 +3942,9 @@
}
},
"node_modules/unist-util-visit-parents": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz",
+ "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3928,9 +3972,9 @@
}
},
"node_modules/vfile-location": {
- "version": "5.0.3",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz",
- "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==",
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.4.tgz",
+ "integrity": "sha512-vEvxatYZCIpNvzGk2UD+u4I/sZkSKoOsdRCbkOIsN73QpJbriJ1qvvBAL1PeI0y55Leoqf7pORbaSPpG/smmOg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3943,9 +3987,9 @@
}
},
"node_modules/vfile-message": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.4.tgz",
+ "integrity": "sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==",
"dev": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 6ae3569a6..aa2e0db2c 100644
--- a/package.json
+++ b/package.json
@@ -20,11 +20,11 @@
"keywords": [],
"author": "",
"license": "ISC",
- "type": "commonjs",
+ "type": "module",
"devDependencies": {
"@rspress/core": "^2.0.0",
"@rspress/plugin-client-redirects": "^2.0.0",
- "@rspress/plugin-sitemap": "^2.0.0",
+ "@types/node": "^26.6.6",
"typescript": "^7.0.0"
}
}
diff --git a/rspress.config.ts b/rspress.config.ts
index 9f4931069..3739a13fe 100644
--- a/rspress.config.ts
+++ b/rspress.config.ts
@@ -1,16 +1,20 @@
import { defineConfig } from '@rspress/core';
-import { pluginSitemap } from '@rspress/plugin-sitemap';
import { pluginClientRedirects } from '@rspress/plugin-client-redirects';
+const sitePath: string = process.env.SITE_PATH ?? '/';
+
export default defineConfig({
root: 'docs',
title: 'Continuwuity',
+ siteOrigin: sitePath != "/" ? "https://preview.continuwuity.org" : "https://continuwuity.org",
+ base: sitePath,
description: 'A community-driven Matrix homeserver',
icon: '/assets/logo.svg',
logo: {
light: '/assets/logo.svg',
dark: '/assets/logo.svg',
},
+ llms: false,
// Use `.no-zoom` class to disable image zooms
mediumZoom: {
selector: '.rspress-doc :not(.no-zoom *) > img',
@@ -40,7 +44,9 @@ export default defineConfig({
},
},
},
+ webMcp: false,
themeConfig: {
+ llmsUI: false,
socialLinks: [
{
icon: {
@@ -72,14 +78,10 @@ export default defineConfig({
lastUpdated: true,
enableContentAnimation: true,
enableAppearanceAnimation: false,
- footer: {
- },
+ footer: {},
},
- plugins: [pluginSitemap({
- siteUrl: 'https://continuwuity.org', // TODO: Set automatically in build pipeline
- }),
- pluginClientRedirects({
+ plugins: [pluginClientRedirects({
redirects: [{
from: '^/config_reference$',
to: '/reference/config'
@@ -102,8 +104,8 @@ export default defineConfig({
from: "^/source(|_code)$",
to: "https://forgejo.ellis.link/continuwuation/continuwuity",
}, {
- from: "^/(CONTRIBUTING.md|contributing)$",
- to: "/development/contributing"
+ from: "^/(CONTRIBUTING.md|contributing)$",
+ to: "/development/contributing"
}
]
})],
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 8965f816a..cb88237df 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -10,7 +10,7 @@
[toolchain]
profile = "minimal"
-channel = "1.99.0"
+channel = "1.100.0"
components = [
# For rust-analyzer
"rust-src",
diff --git a/src/admin/Cargo.toml b/src/admin/Cargo.toml
index 6495ad400..446276ff0 100644
--- a/src/admin/Cargo.toml
+++ b/src/admin/Cargo.toml
@@ -62,8 +62,6 @@ release_max_log_level = [
"conduwuit-service/release_max_log_level",
"tracing/max_level_trace",
"tracing/release_max_level_info",
- "log/max_level_trace",
- "log/release_max_level_info",
]
zstd_compression = [
"conduwuit-api/zstd_compression",
@@ -84,7 +82,6 @@ ctor.workspace = true
dtor.workspace = true
futures.workspace = true
lettre.workspace = true
-log.workspace = true
ruma.workspace = true
serde_json.workspace = true
serde-saphyr.workspace = true
diff --git a/src/admin/appservice/commands.rs b/src/admin/appservice/commands.rs
index 9bccc643d..86fa51f27 100644
--- a/src/admin/appservice/commands.rs
+++ b/src/admin/appservice/commands.rs
@@ -1,4 +1,4 @@
-use conduwuit::{Err, Result, checked};
+use conduwuit::{Err, Result, checked, utils::ReadyExt};
use futures::{FutureExt, StreamExt, TryFutureExt};
impl crate::Context<'_> {
@@ -49,7 +49,6 @@ impl crate::Context<'_> {
.services
.appservice
.get_registration(&appservice_identifier)
- .await
{
| None => return Err!("Appservice does not exist."),
| Some(config) => {
@@ -78,12 +77,11 @@ impl crate::Context<'_> {
self.services
.users
.stream_local_users()
- .filter_map(async |user_id| {
- if self.services.appservice.is_user_id(&user_id).await {
- Some(user_id)
- } else {
- None
- }
+ .ready_filter_map(|user_id| {
+ self.services
+ .appservice
+ .is_user_id(&user_id)
+ .then_some(user_id)
})
.for_each(async |user_id| {
self.services
diff --git a/src/admin/debug/commands.rs b/src/admin/debug/commands.rs
index 9fc69aae9..8846ffbaa 100644
--- a/src/admin/debug/commands.rs
+++ b/src/admin/debug/commands.rs
@@ -14,7 +14,7 @@ use conduwuit::{
state_res::EventTypeExt,
trace, utils,
utils::{
- stream::{IterStream, ReadyExt},
+ stream::{BroadbandExt, IterStream, ReadyExt},
string::EMPTY,
to_canonical_object,
},
@@ -983,7 +983,8 @@ impl crate::Context<'_> {
let resolver: &MatrixResolver = if no_cache {
&MatrixResolverBuilder::new()
.dangerous_tls_accept_invalid_certs(self.services.server.config.allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure)
- .http_client(self.services.client.dns.clone())
+ .http_client(self.services.client.matrix_http_client.clone())
+ .dns_resolver(self.services.client.dns_resolver.clone())
.build()?
} else {
&self.services.client.matrix_resolver
@@ -1006,7 +1007,7 @@ impl crate::Context<'_> {
pub(super) async fn memory_stats(&self, opts: Option) -> Result {
const OPTS: &str = "abcdefghijklmnopqrstuvwxyz";
- let opts: String = OPTS
+ let mut mapped_opts: String = OPTS
.chars()
.filter(|&c| {
let allow_any = opts.as_ref().is_some_and(|opts| opts == "*");
@@ -1017,7 +1018,11 @@ impl crate::Context<'_> {
})
.collect();
- let stats = conduwuit::alloc::memory_stats(&opts).unwrap_or_default();
+ if opts.as_ref().is_some_and(|opts| opts.contains('J')) {
+ mapped_opts.push('J');
+ }
+
+ let stats = conduwuit::alloc::memory_stats(&mapped_opts).unwrap_or_default();
self.write_str("```\n").await?;
self.write_str(&stats).await?;
@@ -1207,6 +1212,46 @@ impl crate::Context<'_> {
.await
}
+ pub(super) async fn room_extremities(&self, room_id: OwnedRoomId) -> Result {
+ let mut extremities = self
+ .services
+ .rooms
+ .state
+ .get_forward_extremities(&room_id)
+ .broad_filter_map(|event_id| async move {
+ self.services.rooms.timeline.get_pdu(&event_id).await.ok()
+ })
+ .collect::>()
+ .await;
+ extremities.sort_by_key(|pdu| (pdu.depth, pdu.origin_server_ts));
+ if extremities.is_empty() {
+ return Err!("No room extremities.");
+ }
+ self.write_str("| Event ID | Kind | Sender | Timestamp | Depth |\n")
+ .await?;
+ self.write_str("| -------- | ---- | ------ | --------- | ----- |\n")
+ .await?;
+ for pdu in extremities {
+ let url = format!(
+ "https://matrix.to/#/{}/{}?via={}",
+ room_id,
+ pdu.event_id(),
+ self.services.server.name
+ );
+ self.write_str(&format!(
+ "| [`{}`]({url}) | `{}` | `{}` | `{}` | `{}` |\n",
+ pdu.event_id(),
+ pdu.kind(),
+ pdu.sender(),
+ pdu.origin_server_ts,
+ pdu.depth
+ ))
+ .await?;
+ }
+
+ Ok(())
+ }
+
pub(super) async fn servers_in_backoff(
&self,
room_id: Option,
diff --git a/src/admin/debug/mod.rs b/src/admin/debug/mod.rs
index f544637ab..85a1c3a77 100644
--- a/src/admin/debug/mod.rs
+++ b/src/admin/debug/mod.rs
@@ -192,7 +192,8 @@ pub enum DebugCommand {
///
/// Optional argument is a character mask (a sequence of characters in any
/// order) which enable additional extended statistics. Known characters are
- /// "abdeglmx". For convenience, a '*' will enable everything.
+ /// "abdeglmx" and 'J' for JSON output. For convenience, a '*' will enable
+ /// everything.
MemoryStats {
opts: Option,
},
@@ -234,6 +235,10 @@ pub enum DebugCommand {
page: Option,
},
+ RoomExtremities {
+ room_id: OwnedRoomId,
+ },
+
/// Lists remote servers that are currently in a "backoff" state.
///
/// Servers in this list will not be contacted until the retry time elapses,
diff --git a/src/admin/federation/commands.rs b/src/admin/federation/commands.rs
index 966c7bdcf..a4fbbabe0 100644
--- a/src/admin/federation/commands.rs
+++ b/src/admin/federation/commands.rs
@@ -142,11 +142,11 @@ impl crate::Context<'_> {
.await?;
self.write_str("| ------ | ---------- | --------------------------- |\n")
.await?;
- for (key_id, key) in &response.verify_keys {
+ for (key_id, key) in &response.parsed.verify_keys {
self.write_str(&format!("| {key_id} | {} | |\n", key.key))
.await?;
}
- for (key_id, old_key) in &response.old_verify_keys {
+ for (key_id, old_key) in &response.parsed.old_verify_keys {
self.write_str(&format!(
"| {key_id} | {} | {:0<13} |\n",
old_key.key,
diff --git a/src/admin/mod.rs b/src/admin/mod.rs
index fd73c3f15..eab68e4d0 100644
--- a/src/admin/mod.rs
+++ b/src/admin/mod.rs
@@ -2,6 +2,7 @@
#![allow(clippy::wildcard_imports)]
#![allow(clippy::enum_glob_use)]
#![allow(clippy::too_many_arguments)]
+#![allow(clippy::large_unopt_stack_frames, reason = "very large Subcommand macro expansions")]
conduwuit_macros::introspect_crate! {}
@@ -33,23 +34,16 @@ pub(crate) use crate::{context::Context, utils::get_room_info};
pub(crate) const PAGE_SIZE: usize = 100;
-conduwuit::mod_ctor! {}
-conduwuit::mod_dtor! {}
-
pub use crate::admin::AdminCommand;
/// Install the admin command processor
-pub async fn init(admin_service: &service::admin::Service) {
+pub fn init(admin_service: &service::admin::Service) {
_ = admin_service.complete.write().insert(processor::complete);
- _ = admin_service
- .handle
- .write()
- .await
- .insert(processor::dispatch);
+ _ = admin_service.handle.write().insert(processor::dispatch);
}
/// Uninstall the admin command handler
-pub async fn fini(admin_service: &service::admin::Service) {
- _ = admin_service.handle.write().await.take();
+pub fn fini(admin_service: &service::admin::Service) {
+ _ = admin_service.handle.write().take();
_ = admin_service.complete.write().take();
}
diff --git a/src/admin/query/appservice.rs b/src/admin/query/appservice.rs
index e2f04acf3..45dec01e5 100644
--- a/src/admin/query/appservice.rs
+++ b/src/admin/query/appservice.rs
@@ -24,7 +24,7 @@ pub(super) async fn process(subcommand: AppserviceCommand, context: &Context<'_>
match subcommand {
| AppserviceCommand::GetRegistration { appservice_id } => {
let timer = tokio::time::Instant::now();
- let results = services.appservice.get_registration(&appservice_id).await;
+ let results = services.appservice.get_registration(&appservice_id);
let query_time = timer.elapsed();
diff --git a/src/admin/server/commands.rs b/src/admin/server/commands.rs
index 1173c5457..51042f89b 100644
--- a/src/admin/server/commands.rs
+++ b/src/admin/server/commands.rs
@@ -110,14 +110,6 @@ impl crate::Context<'_> {
self.write_str("Notice was sent to #admins").await
}
- pub(super) async fn reload_mods(&self) -> Result {
- self.bail_restricted()?;
-
- self.services.server.reload()?;
-
- self.write_str("Reloading server...").await
- }
-
#[cfg(unix)]
pub(super) async fn restart(&self, force: bool) -> Result {
use conduwuit::utils::sys::current_exe_deleted;
diff --git a/src/admin/server/mod.rs b/src/admin/server/mod.rs
index ff6933ef9..c9fb6d299 100644
--- a/src/admin/server/mod.rs
+++ b/src/admin/server/mod.rs
@@ -39,10 +39,6 @@ pub enum ServerCommand {
message: Vec,
},
- /// Hot-reload the server
- #[command(name = "reload", alias = "reload-mods")]
- ReloadMods,
-
#[cfg(unix)]
/// Restart the server
Restart {
diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml
index 4385fbe7f..689902717 100644
--- a/src/api/Cargo.toml
+++ b/src/api/Cargo.toml
@@ -51,8 +51,6 @@ jemalloc_stats = [
release_max_log_level = [
"conduwuit-core/release_max_log_level",
"conduwuit-service/release_max_log_level",
- "log/max_level_trace",
- "log/release_max_level_info",
"tracing/max_level_trace",
"tracing/release_max_level_info",
]
@@ -80,7 +78,6 @@ http-body-util.workspace = true
hyper.workspace = true
itertools.workspace = true
lettre.workspace = true
-log.workspace = true
rand.workspace = true
reqwest.workspace = true
ruma.workspace = true
@@ -90,6 +87,7 @@ serde.workspace = true
sha1.workspace = true
tokio.workspace = true
tracing.workspace = true
+wildmatch.workspace = true
[lints]
workspace = true
diff --git a/src/api/client/account/threepid.rs b/src/api/client/account/threepid.rs
index 93531eb02..edcd9017d 100644
--- a/src/api/client/account/threepid.rs
+++ b/src/api/client/account/threepid.rs
@@ -135,7 +135,6 @@ pub(crate) async fn add_3pid_route(
let email = services
.threepid
.get_valid_session(&body.sid, &body.client_secret)
- .await
.map_err(|message| err!(Request(ThreepidAuthFailed("{message}"))))?
.consume();
diff --git a/src/api/client/account_data.rs b/src/api/client/account_data.rs
index 60fec42ab..bc9dc4bab 100644
--- a/src/api/client/account_data.rs
+++ b/src/api/client/account_data.rs
@@ -117,10 +117,13 @@ async fn set_account_data(
data: &RawJsonValue,
) -> Result {
if event_type_s == "m.fully_read" {
- return Err!(Request(BadJson(
- "This endpoint cannot be used for marking a room as fully read (setting \
- m.fully_read)"
- )));
+ return Err!(Request(
+ BadJson(
+ "This endpoint cannot be used for marking a room as fully read (setting \
+ m.fully_read)"
+ ),
+ METHOD_NOT_ALLOWED
+ ));
}
let data: serde_json::Value = serde_json::from_str(data.get())
diff --git a/src/api/client/alias.rs b/src/api/client/alias.rs
index 5d4dec081..f10e03083 100644
--- a/src/api/client/alias.rs
+++ b/src/api/client/alias.rs
@@ -20,8 +20,7 @@ pub(crate) async fn create_alias_route(
services
.rooms
.alias
- .appservice_checks(&body.room_alias, body.identity.appservice_info())
- .await?;
+ .appservice_checks(&body.room_alias, body.identity.appservice_info())?;
// this isn't apart of alias_checks or delete alias route because we should
// allow removing forbidden room aliases
@@ -69,8 +68,7 @@ pub(crate) async fn delete_alias_route(
services
.rooms
.alias
- .appservice_checks(&body.room_alias, body.identity.appservice_info())
- .await?;
+ .appservice_checks(&body.room_alias, body.identity.appservice_info())?;
services
.rooms
diff --git a/src/api/client/capabilities.rs b/src/api/client/capabilities.rs
index 28a5e0fc5..5851fb9bc 100644
--- a/src/api/client/capabilities.rs
+++ b/src/api/client/capabilities.rs
@@ -1,7 +1,7 @@
use std::collections::{BTreeMap, BTreeSet};
use axum::extract::State;
-use conduwuit::{Result, Server};
+use conduwuit::{Result, Server, config::experiments::ToggledExperiment};
use ruma::{
RoomVersionId,
api::{
@@ -46,14 +46,18 @@ pub(crate) async fn get_capabilities_route(
capabilities.get_login_token =
GetLoginTokenCapability::new(services.server.config.login_via_existing_session);
- capabilities.forget_forced_upon_leave.enabled = true;
+ capabilities.forget_forced_upon_leave.enabled =
+ services.server.config.forget_forced_upon_leave;
if services.users.is_admin(sender_user).await {
capabilities.account_moderation.lock = true;
capabilities.account_moderation.suspend = true;
- capabilities.admin =
- AdminCapability::new(BTreeSet::from_iter([OAuthClientScope::ServerAdministration]));
+ if services.config.experiments.msc4484.is_enabled() {
+ capabilities.admin = AdminCapability::new(BTreeSet::from_iter([
+ OAuthClientScope::ServerAdministration,
+ ]));
+ }
}
capabilities.profile_fields = Some(
@@ -62,7 +66,10 @@ pub(crate) async fn get_capabilities_route(
capabilities.set(
"org.matrix.msc4174.webpush",
- json!({ "enabled": true, "vapid": services.pusher.webpush_vapid_public_key() }),
+ json!({
+ "enabled": services.config.experiments.msc4174.is_enabled(),
+ "vapid": services.pusher.webpush_vapid_public_key()
+ }),
)?;
Ok(get_capabilities::v3::Response::new(capabilities))
diff --git a/src/api/client/dehydrated_device.rs b/src/api/client/dehydrated_device.rs
index 72ae2b955..124b90f19 100644
--- a/src/api/client/dehydrated_device.rs
+++ b/src/api/client/dehydrated_device.rs
@@ -3,10 +3,10 @@ use conduwuit::{Err, Result, at};
use futures::StreamExt;
use ruma::{
api::client::dehydrated_device::{
- delete_dehydrated_device::unstable as delete_dehydrated_device,
- get_dehydrated_device::unstable as get_dehydrated_device,
- get_events::unstable as get_events,
- put_dehydrated_device::unstable as put_dehydrated_device,
+ delete_dehydrated_device::msc3814 as delete_dehydrated_device,
+ get_dehydrated_device::msc3814 as get_dehydrated_device,
+ get_events::msc3814 as get_events,
+ put_dehydrated_device::msc3814 as put_dehydrated_device,
},
assign,
};
diff --git a/src/api/client/keys.rs b/src/api/client/keys.rs
index c9a002804..271e6b836 100644
--- a/src/api/client/keys.rs
+++ b/src/api/client/keys.rs
@@ -15,8 +15,7 @@ use ruma::{
OneTimeKeyAlgorithm, OwnedDeviceId, OwnedUserId, UserId,
api::{
client::keys::{
- claim_keys, get_key_changes, get_keys, upload_keys,
- upload_signatures::{self},
+ claim_keys, get_key_changes, get_keys, upload_keys, upload_signatures,
upload_signing_keys,
},
federation,
@@ -523,7 +522,22 @@ where
for (server, response) in futures {
match response {
| Ok(response) => {
- for (user, master_key) in response.master_keys {
+ let is_wanted = |user_id: &UserId| {
+ user_id.server_name() == server && device_keys_input.contains_key(user_id)
+ };
+ let filtered_master_keys = response
+ .master_keys
+ .into_iter()
+ .filter(|(user_id, _)| is_wanted(user_id));
+ let filtered_self_signing_keys = response
+ .self_signing_keys
+ .into_iter()
+ .filter(|(user_id, _)| is_wanted(user_id));
+ let filtered_device_keys = response
+ .device_keys
+ .into_iter()
+ .filter(|(user_id, _)| is_wanted(user_id));
+ for (user, master_key) in filtered_master_keys {
let (master_key_id, mut master_key) = parse_master_key(&user, &master_key)?;
if let Ok(our_master_key) = services
@@ -549,8 +563,8 @@ where
}
}
- self_signing_keys.extend(response.self_signing_keys);
- device_keys.extend(response.device_keys);
+ self_signing_keys.extend(filtered_self_signing_keys);
+ device_keys.extend(filtered_device_keys);
},
| Err(e) => {
failures.insert(server.to_string(), json!({ "error": e.to_string() }));
diff --git a/src/api/client/media.rs b/src/api/client/media.rs
index 824d98541..a078bb968 100644
--- a/src/api/client/media.rs
+++ b/src/api/client/media.rs
@@ -2,7 +2,7 @@ use std::time::Duration;
use axum::extract::State;
use conduwuit::{
- Err, Result, err,
+ Err, Result, debug, err,
utils::{self, content_disposition::make_content_disposition, math::ruma_from_usize},
};
use conduwuit_core::error;
@@ -30,9 +30,9 @@ pub(crate) async fn get_media_config_route(
State(services): State,
_body: Ruma,
) -> Result {
- Ok(get_media_config::v1::Response::new(ruma_from_usize(
+ Ok(get_media_config::v1::Response::new(Some(ruma_from_usize(
services.server.config.max_request_size,
- )))
+ ))))
}
/// # `POST /_matrix/media/v3/upload`
@@ -219,10 +219,12 @@ pub(crate) async fn get_media_preview_route(
)));
}
+ debug!("Fetching a URL preview for {url} on behalf of {sender_user}");
let preview = services
.media
.get_url_preview(&url)
.await
+ .inspect(|_| debug!(user=%sender_user, %url, "Finished fetching a URL preview"))
.map_err(|error| {
err!(Request(Unknown(
debug_error!(%sender_user, %url, "Failed to fetch URL preview: {error}")
diff --git a/src/api/client/media_legacy.rs b/src/api/client/media_legacy.rs
deleted file mode 100644
index ddc7e9c92..000000000
--- a/src/api/client/media_legacy.rs
+++ /dev/null
@@ -1,398 +0,0 @@
-#![allow(deprecated)]
-
-use axum::extract::State;
-use conduwuit::{
- Err, Result, err,
- utils::{content_disposition::make_content_disposition, math::ruma_from_usize},
-};
-use conduwuit_service::media::{CORP_CROSS_ORIGIN, Dim, FileMeta};
-use reqwest::Url;
-use ruma::{
- api::client::media::{
- create_content, get_content, get_content_as_filename, get_content_thumbnail,
- get_media_config, get_media_preview,
- },
- assign,
-};
-use service::media::mxc::Mxc;
-
-use crate::{Ruma, RumaResponse, client::create_content_route};
-
-/// # `GET /_matrix/media/v3/config`
-///
-/// Returns max upload size.
-pub(crate) async fn get_media_config_legacy_route(
- State(services): State,
- _body: Ruma,
-) -> Result {
- Ok(get_media_config::v3::Response::new(ruma_from_usize(
- services.server.config.max_request_size,
- )))
-}
-
-/// # `GET /_matrix/media/v1/config`
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// Returns max upload size.
-pub(crate) async fn get_media_config_legacy_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- get_media_config_legacy_route(State(services), body)
- .await
- .map(RumaResponse)
-}
-
-/// # `GET /_matrix/media/v3/preview_url`
-///
-/// Returns URL preview.
-pub(crate) async fn get_media_preview_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result {
- let sender_user = body.identity.expect_sender_user()?;
-
- let url = &body.url;
- let url = Url::parse(&body.url).map_err(|e| {
- err!(Request(InvalidParam(
- debug_warn!(%sender_user, %url, "Requested URL is not valid: {e}")
- )))
- })?;
-
- if !services.media.url_preview_allowed(&url) {
- return Err!(Request(Forbidden(
- debug_warn!(%sender_user, %url, "URL is not allowed to be previewed")
- )));
- }
-
- let preview = services.media.get_url_preview(&url).await.map_err(|e| {
- err!(Request(Unknown(
- debug_error!(%sender_user, %url, "Failed to fetch a URL preview: {e}")
- )))
- })?;
-
- serde_json::value::to_raw_value(&preview)
- .map(get_media_preview::v3::Response::from_raw_value)
- .map_err(|error| {
- err!(Request(Unknown(
- debug_error!(%sender_user, %url, "Failed to parse URL preview: {error}")
- )))
- })
-}
-
-/// # `GET /_matrix/media/v1/preview_url`
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// Returns URL preview.
-pub(crate) async fn get_media_preview_legacy_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- get_media_preview_legacy_route(State(services), body)
- .await
- .map(RumaResponse)
-}
-
-/// # `POST /_matrix/media/v1/upload`
-///
-/// Permanently save media in the server.
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// - Some metadata will be saved in the database
-/// - Media will be saved in the media/ directory
-pub(crate) async fn create_content_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- create_content_route(State(services), body)
- .await
- .map(RumaResponse)
-}
-
-/// # `GET /_matrix/media/v3/download/{serverName}/{mediaId}`
-///
-/// Load media from our server or over federation.
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result {
- let mxc = Mxc {
- server_name: &body.server_name,
- media_id: &body.media_id,
- };
-
- match services.media.get(&mxc).await? {
- | Some(FileMeta {
- content,
- content_type,
- content_disposition,
- }) => {
- let content_disposition = make_content_disposition(
- content_disposition.as_ref(),
- content_type.as_deref(),
- None,
- );
-
- Ok(assign!(
- get_content::v3::Response::new(
- content.expect("entire file contents"),
- content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.into()),
- }
- ))
- },
- | _ =>
- if !services.globals.server_is_ours(&body.server_name) && body.allow_remote {
- let response = services
- .media
- .fetch_remote_content_legacy(&mxc, body.allow_redirect, body.timeout_ms)
- .await
- .map_err(|e| {
- err!(Request(NotFound(debug_warn!(%mxc, "Fetching media failed: {e:?}"))))
- })?;
-
- let content_disposition = make_content_disposition(
- response.content_disposition.as_ref(),
- response.content_type.as_deref(),
- None,
- );
-
- Ok(assign!(
- get_content::v3::Response::new(
- response.file,
- response.content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.into()),
- }
- ))
- } else {
- Err!(Request(NotFound("Media not found.")))
- },
- }
-}
-
-/// # `GET /_matrix/media/v1/download/{serverName}/{mediaId}`
-///
-/// Load media from our server or over federation.
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_legacy_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- get_content_legacy_route(State(services), body)
- .await
- .map(RumaResponse)
-}
-
-/// # `GET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}`
-///
-/// Load media from our server or over federation, permitting desired filename.
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_as_filename_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result {
- let mxc = Mxc {
- server_name: &body.server_name,
- media_id: &body.media_id,
- };
-
- match services.media.get(&mxc).await? {
- | Some(FileMeta {
- content,
- content_type,
- content_disposition,
- }) => {
- let content_disposition = make_content_disposition(
- content_disposition.as_ref(),
- content_type.as_deref(),
- Some(&body.filename),
- );
-
- Ok(assign!(get_content_as_filename::v3::Response::new(
- content.expect("entire file contents"),
- content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.into()),
- }
- ))
- },
- | _ =>
- if !services.globals.server_is_ours(&body.server_name) && body.allow_remote {
- let response = services
- .media
- .fetch_remote_content_legacy(&mxc, body.allow_redirect, body.timeout_ms)
- .await
- .map_err(|e| {
- err!(Request(NotFound(debug_warn!(%mxc, "Fetching media failed: {e:?}"))))
- })?;
-
- let content_disposition = make_content_disposition(
- response.content_disposition.as_ref(),
- response.content_type.as_deref(),
- None,
- );
-
- Ok(assign!(
- get_content_as_filename::v3::Response::new(
- response.file,
- response.content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.into()),
- }
- ))
- } else {
- Err!(Request(NotFound("Media not found.")))
- },
- }
-}
-
-/// # `GET /_matrix/media/v1/download/{serverName}/{mediaId}/{fileName}`
-///
-/// Load media from our server or over federation, permitting desired filename.
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_as_filename_legacy_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- get_content_as_filename_legacy_route(State(services), body)
- .await
- .map(RumaResponse)
-}
-
-/// # `GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}`
-///
-/// Load media thumbnail from our server or over federation.
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_thumbnail_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result {
- let mxc = Mxc {
- server_name: &body.server_name,
- media_id: &body.media_id,
- };
-
- let dim = Dim::from_ruma(body.width, body.height, body.method.clone())?;
- match services.media.get_thumbnail(&mxc, &dim).await? {
- | Some(FileMeta {
- content,
- content_type,
- content_disposition,
- }) => {
- let content_disposition = make_content_disposition(
- content_disposition.as_ref(),
- content_type.as_deref(),
- None,
- );
-
- Ok(assign!(
- get_content_thumbnail::v3::Response::new(
- content.expect("entire file contents"),
- content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.to_owned()),
- }
- ))
- },
- | _ =>
- if !services.globals.server_is_ours(&body.server_name) && body.allow_remote {
- let response = services
- .media
- .fetch_remote_thumbnail_legacy(&body)
- .await
- .map_err(|e| {
- err!(Request(NotFound(debug_warn!(%mxc, "Fetching media failed: {e:?}"))))
- })?;
-
- let content_disposition = make_content_disposition(
- response.content_disposition.as_ref(),
- response.content_type.as_deref(),
- None,
- );
-
- Ok(assign!(
- get_content_thumbnail::v3::Response::new(
- response.file,
- response.content_type.unwrap_or_default(),
- content_disposition,
- ),
- {
- cross_origin_resource_policy: Some(CORP_CROSS_ORIGIN.to_owned()),
- }
- ))
- } else {
- Err!(Request(NotFound("Media not found.")))
- },
- }
-}
-
-/// # `GET /_matrix/media/v1/thumbnail/{serverName}/{mediaId}`
-///
-/// Load media thumbnail from our server or over federation.
-///
-/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
-/// clients may call. conduwuit adds these for compatibility purposes.
-/// See
-///
-/// - Only allows federation if `allow_remote` is true
-/// - Only redirects if `allow_redirect` is true
-/// - Uses client-provided `timeout_ms` if available, else defaults to 20
-/// seconds
-pub(crate) async fn get_content_thumbnail_legacy_legacy_route(
- State(services): State,
- body: Ruma,
-) -> Result> {
- get_content_thumbnail_legacy_route(State(services), body)
- .await
- .map(RumaResponse)
-}
diff --git a/src/api/client/membership/knock.rs b/src/api/client/membership/knock.rs
index f24ede158..d7ef2458a 100644
--- a/src/api/client/membership/knock.rs
+++ b/src/api/client/membership/knock.rs
@@ -1,4 +1,4 @@
-use std::{borrow::Borrow, collections::HashMap, iter::once, sync::Arc};
+use std::{borrow::Borrow, collections::HashMap, sync::Arc};
use axum::extract::State;
use conduwuit::{
@@ -16,10 +16,7 @@ use futures::{FutureExt, StreamExt};
use ruma::{
CanonicalJsonObject, CanonicalJsonValue, OwnedEventId, OwnedRoomId, OwnedServerName,
OwnedUserId, RoomId, UserId,
- api::{
- client::knock::knock_room,
- federation::{self},
- },
+ api::{client::knock::knock_room, federation},
canonical_json::to_canonical_value,
events::{
StateEventType,
@@ -461,14 +458,13 @@ async fn knock_room_helper_local(
services
.rooms
.timeline
- .append_pdu(
- &parsed_knock_pdu,
- knock_event,
- once(parsed_knock_pdu.event_id.borrow()),
- &state_lock,
- room_id,
- )
+ .progress_extremities(&parsed_knock_pdu)
.await?;
+ services
+ .rooms
+ .timeline
+ .append_pdu(&parsed_knock_pdu, knock_event, room_id)
+ .await;
Ok(())
}
@@ -587,7 +583,7 @@ async fn knock_room_helper_remote(
let mut state_map: HashMap = HashMap::new();
- for event in state {
+ for mut event in state {
let Some(state_key) = event.get("state_key") else {
debug_warn!("send_knock stripped state event missing state_key: {event:?}");
continue;
@@ -614,6 +610,7 @@ async fn knock_room_helper_remote(
.get_or_create_shortstatekey(&event_type, &state_key)
.await;
+ event.insert("event_id".into(), CanonicalJsonValue::String(event_id.to_string()));
services.rooms.outlier.add_pdu_outlier(&event_id, &event);
state_map.insert(shortstatekey, event_id.clone());
}
@@ -662,14 +659,13 @@ async fn knock_room_helper_remote(
services
.rooms
.timeline
- .append_pdu(
- &parsed_knock_pdu,
- knock_event,
- once(parsed_knock_pdu.event_id.borrow()),
- &state_lock,
- room_id,
- )
+ .progress_extremities(&parsed_knock_pdu)
.await?;
+ services
+ .rooms
+ .timeline
+ .append_pdu(&parsed_knock_pdu, knock_event, room_id)
+ .await;
info!("Setting final room state for new room");
// We set the room state after inserting the pdu, so that we never have a
diff --git a/src/api/client/membership/leave.rs b/src/api/client/membership/leave.rs
index 1ef0b21fa..a10aff0f9 100644
--- a/src/api/client/membership/leave.rs
+++ b/src/api/client/membership/leave.rs
@@ -10,10 +10,7 @@ use conduwuit::{
use futures::{FutureExt, StreamExt, pin_mut};
use ruma::{
CanonicalJsonObject, CanonicalJsonValue, OwnedServerName, RoomId, UserId,
- api::{
- client::membership::leave_room,
- federation::{self},
- },
+ api::{client::membership::leave_room, federation},
events::{
StateEventType,
room::member::{MembershipState, RoomMemberEventContent},
diff --git a/src/api/client/membership/members.rs b/src/api/client/membership/members.rs
index 5c8d00829..e2695bd3a 100644
--- a/src/api/client/membership/members.rs
+++ b/src/api/client/membership/members.rs
@@ -9,7 +9,7 @@ use conduwuit::{
use futures::{FutureExt, StreamExt, future::join};
use ruma::{
api::client::membership::{
- get_member_events::{self},
+ get_member_events,
joined_members::{self, v3::RoomMember},
},
events::{
diff --git a/src/api/client/message.rs b/src/api/client/message.rs
index 72b1b29e5..2bb3cbbc0 100644
--- a/src/api/client/message.rs
+++ b/src/api/client/message.rs
@@ -1,6 +1,8 @@
use axum::extract::State;
use conduwuit::{
- Err, Error, Result, at, debug_warn,
+ Err, Error, Result, at,
+ config::experiments::ToggledExperiment,
+ debug_warn,
matrix::{
event::{Event, Matches},
pdu::PduCount,
@@ -22,7 +24,7 @@ use conduwuit_service::{
};
use futures::{FutureExt, StreamExt, TryFutureExt, future::OptionFuture, pin_mut};
use ruma::{
- RoomId, UserId,
+ EventId, RoomId, UserId,
api::{
Direction,
client::{filter::RoomEventFilter, message::get_message_events},
@@ -30,8 +32,9 @@ use ruma::{
},
assign,
events::{
- AnyStateEvent, StateEventType,
+ AnyStateEvent, StateEventType, SyncEphemeralRoomEvent,
TimelineEventType::{self, *},
+ receipt::ReceiptEventContent,
},
serde::Raw,
};
@@ -209,36 +212,32 @@ pub(crate) async fn lazy_loading_witness<'a, I>(
where
I: Iterator- + Clone + Send,
{
- let oldest = events
- .clone()
- .map(|(count, _)| count)
- .copied()
- .min()
- .unwrap_or_else(PduCount::max);
-
- let newest = events
- .clone()
- .map(|(count, _)| count)
- .copied()
- .max()
- .unwrap_or_else(PduCount::max);
+ let chunk_event_ids: std::collections::HashSet<&EventId> =
+ events.clone().map(|(_, event)| event.event_id()).collect();
let receipts = services
.rooms
.read_receipt
- .readreceipts_since(lazy_loading_context.room_id, Some(oldest.into_unsigned()));
+ .readreceipts_since(lazy_loading_context.room_id, None);
pin_mut!(receipts);
+ let receipt_users = receipts.ready_filter_map(|(user_id, _, raw)| {
+ let event =
+ serde_json::from_str::>(raw.json().get())
+ .ok()?;
+ event
+ .content
+ .keys()
+ .any(|id| chunk_event_ids.contains(&**id))
+ .then_some(user_id)
+ });
+
let witness: MemberSet = events
.stream()
.map(ref_at!(1))
.map(Event::sender)
.map(ToOwned::to_owned)
- .chain(
- receipts
- .ready_take_while(|(_, c, _)| *c <= newest.into_unsigned())
- .map(|(user_id, ..)| user_id),
- )
+ .chain(receipt_users)
.collect()
.await;
@@ -318,21 +317,29 @@ where
if server_ignored {
// the sender's server is ignored, so ignore this event
- return Err(Error::BadRequest(
- ErrorKind::SenderIgnored(SenderIgnoredErrorData::new()),
- "The sender's server is ignored by this server.",
- ));
+ return if services.config.experiments.msc4406.is_enabled() {
+ Err(Error::BadRequest(
+ ErrorKind::SenderIgnored(SenderIgnoredErrorData::new()),
+ "The sender's server is ignored by this server.",
+ ))
+ } else {
+ Err!(Request(NotFound("This event's sender's homeserver is ignored by this server.")))
+ };
}
if user_ignored && !services.config.send_messages_from_ignored_users_to_client {
// the recipient of this PDU has the sender ignored, and we're not
// configured to send ignored messages to clients
- return Err(Error::BadRequest(
- ErrorKind::SenderIgnored(SenderIgnoredErrorData::with_sender(
- event.sender().to_owned(),
- )),
- "You have ignored this sender.",
- ));
+ return if services.config.experiments.msc4406.is_enabled() {
+ Err(Error::BadRequest(
+ ErrorKind::SenderIgnored(SenderIgnoredErrorData::with_sender(
+ event.sender().to_owned(),
+ )),
+ "You have ignored this sender.",
+ ))
+ } else {
+ Err!(Request(NotFound("You have ignored the sender of this event.")))
+ };
}
Ok(false)
diff --git a/src/api/client/mod.rs b/src/api/client/mod.rs
index c0bb2dc98..fa372a67c 100644
--- a/src/api/client/mod.rs
+++ b/src/api/client/mod.rs
@@ -12,7 +12,6 @@ pub(super) mod directory;
pub(super) mod filter;
pub(super) mod keys;
pub(super) mod media;
-pub(super) mod media_legacy;
pub(super) mod membership;
pub(super) mod message;
pub(super) mod mutual_rooms;
@@ -24,6 +23,7 @@ pub(super) mod push;
pub(super) mod read_marker;
pub(super) mod redact;
pub(super) mod relations;
+pub(super) mod rendezvous;
pub(super) mod report;
pub(super) mod room;
pub(super) mod search;
@@ -57,7 +57,6 @@ pub(super) use directory::*;
pub(super) use filter::*;
pub(super) use keys::*;
pub(super) use media::*;
-pub(super) use media_legacy::*;
pub(super) use membership::*;
pub use membership::{leave_all_rooms, leave_room, remote_leave_room};
pub(super) use message::*;
@@ -71,6 +70,7 @@ pub(super) use push::*;
pub(super) use read_marker::*;
pub(super) use redact::*;
pub(super) use relations::*;
+pub(super) use rendezvous::*;
pub(super) use report::*;
pub(super) use room::*;
pub(super) use search::*;
diff --git a/src/api/client/mutual_rooms.rs b/src/api/client/mutual_rooms.rs
index 532a5cc79..265238545 100644
--- a/src/api/client/mutual_rooms.rs
+++ b/src/api/client/mutual_rooms.rs
@@ -13,8 +13,8 @@ use crate::Ruma;
#[tracing::instrument(skip_all, name = "mutual_rooms", level = "info")]
pub(crate) async fn get_mutual_rooms_unstable_route(
State(services): State,
- body: Ruma,
-) -> Result {
+ body: Ruma,
+) -> Result {
let sender_user = body.identity.expect_sender_user()?;
if sender_user == body.user_id {
@@ -28,7 +28,7 @@ pub(crate) async fn get_mutual_rooms_unstable_route(
.collect()
.await;
- Ok(get_mutual_rooms::unstable::Response::new(mutual_rooms))
+ Ok(get_mutual_rooms::msc2666::Response::new(mutual_rooms))
}
/// # `GET /_matrix/client/v1/mutual_rooms`
diff --git a/src/api/client/read_marker.rs b/src/api/client/read_marker.rs
index 2f8b21a39..aeacd9adc 100644
--- a/src/api/client/read_marker.rs
+++ b/src/api/client/read_marker.rs
@@ -1,14 +1,14 @@
use std::collections::BTreeMap;
use axum::extract::State;
-use conduwuit::{Err, PduCount, Result, err};
+use conduwuit::{Err, Result, err};
use ruma::{
MilliSecondsSinceUnixEpoch,
api::client::{read_marker::set_read_marker, receipt::create_receipt},
events::{
RoomAccountDataEventType,
fully_read::{FullyReadEvent, FullyReadEventContent},
- receipt::{Receipt, ReceiptEvent, ReceiptEventContent, ReceiptType},
+ receipt::{Receipt, ReceiptEvent, ReceiptEventContent, ReceiptThread, ReceiptType},
},
};
@@ -27,6 +27,15 @@ pub(crate) async fn set_read_marker_route(
) -> Result {
let sender_user = body.identity.expect_sender_user()?;
+ if !services
+ .rooms
+ .state_cache
+ .is_joined(sender_user, &body.room_id)
+ .await
+ {
+ return Err!(Request(Forbidden("You are not in this room.")));
+ }
+
if let Some(event) = &body.fully_read {
let fully_read_event = FullyReadEvent::new(FullyReadEventContent::new(event.to_owned()));
@@ -92,13 +101,8 @@ pub(crate) async fn set_read_marker_route(
.timeline
.get_pdu_count(event)
.await
- .map_err(|_| err!(Request(NotFound("Event not found."))))?;
-
- let PduCount::Normal(count) = count else {
- return Err!(Request(InvalidParam(
- "Event is a backfilled PDU and cannot be marked as read."
- )));
- };
+ .map_err(|_| err!(Request(NotFound("Event not found."))))?
+ .into_unsigned();
services
.rooms
@@ -122,11 +126,26 @@ pub(crate) async fn create_receipt_route(
) -> Result {
let sender_user = body.identity.expect_sender_user()?;
+ if !services
+ .rooms
+ .state_cache
+ .is_joined(sender_user, &body.room_id)
+ .await
+ {
+ return Err!(Request(Forbidden("You are not in this room.")));
+ }
+
services
.users
.update_device_last_seen(sender_user, body.identity.sender_device(), client_ip)
.await;
+ if body.receipt_type == create_receipt::v3::ReceiptType::FullyRead
+ && body.thread != ReceiptThread::Unthreaded
+ {
+ return Err!(Request(InvalidParam("thread_id cannot be specified for m.fully_read")));
+ }
+
if matches!(
&body.receipt_type,
create_receipt::v3::ReceiptType::Read | create_receipt::v3::ReceiptType::ReadPrivate
@@ -159,44 +178,41 @@ pub(crate) async fn create_receipt_route(
)
.await?;
},
- | create_receipt::v3::ReceiptType::Read => {
- let receipt_content = [(
- body.event_id.clone(),
- BTreeMap::from_iter([(
- ReceiptType::Read,
+ | create_receipt::v3::ReceiptType::Read =>
+ if services.config.allow_local_read_receipts
+ && !services.users.is_suspended(sender_user).await?
+ {
+ let mut receipt = Receipt::new(MilliSecondsSinceUnixEpoch::now());
+ receipt.thread = body.thread.clone();
+ let receipt_content = [(
+ body.event_id.clone(),
BTreeMap::from_iter([(
- sender_user.to_owned(),
- Receipt::new(MilliSecondsSinceUnixEpoch::now()),
+ ReceiptType::Read,
+ BTreeMap::from_iter([(sender_user.to_owned(), receipt)]),
)]),
- )]),
- )];
+ )];
- services
- .rooms
- .read_receipt
- .readreceipt_update(
- sender_user,
- &body.room_id,
- ReceiptEvent::new(
- body.room_id.clone(),
- ReceiptEventContent::from_iter(receipt_content),
- ),
- )
- .await;
- },
+ services
+ .rooms
+ .read_receipt
+ .readreceipt_update(
+ sender_user,
+ &body.room_id,
+ ReceiptEvent::new(
+ body.room_id.clone(),
+ ReceiptEventContent::from_iter(receipt_content),
+ ),
+ )
+ .await;
+ },
| create_receipt::v3::ReceiptType::ReadPrivate => {
let count = services
.rooms
.timeline
.get_pdu_count(&body.event_id)
.await
- .map_err(|_| err!(Request(NotFound("Event not found."))))?;
-
- let PduCount::Normal(count) = count else {
- return Err!(Request(InvalidParam(
- "Event is a backfilled PDU and cannot be marked as read."
- )));
- };
+ .map_err(|_| err!(Request(NotFound("Event not found."))))?
+ .into_unsigned();
services
.rooms
diff --git a/src/api/client/relations.rs b/src/api/client/relations.rs
index 6d1bd4ffd..1ef92898c 100644
--- a/src/api/client/relations.rs
+++ b/src/api/client/relations.rs
@@ -2,7 +2,7 @@ use axum::extract::State;
use conduwuit::{
Err, Result, at, debug_warn, err,
matrix::{Event, event::RelationTypeEqual, pdu::PduCount},
- utils::{IterStream, ReadyExt, result::FlatOk, stream::WidebandExt},
+ utils::{IterStream, result::FlatOk, stream::WidebandExt},
};
use conduwuit_service::Services;
use futures::StreamExt;
@@ -98,6 +98,10 @@ pub(crate) async fn get_relating_events_route(
.await
}
+// Spec (v1.10) recommends a depth of at least 3
+const RECURSION_DEPTH: u8 = 3;
+const LEVELS_BELOW: u8 = RECURSION_DEPTH - 1;
+
#[allow(clippy::too_many_arguments)]
async fn paginate_relations_with_filter(
services: &Services,
@@ -147,28 +151,49 @@ async fn paginate_relations_with_filter(
.unwrap_or(30)
.min(100);
- // Spec (v1.10) recommends depth of at least 3
- let depth: u8 = if recurse { 3 } else { 1 };
+ let max_depth = if recurse { LEVELS_BELOW } else { 0 };
- let events: Vec<_> = services
+ // One more than the limit, to know whether there's another page
+ let mut events = services
.rooms
.pdu_metadata
- .get_relations(sender_user, room_id, target, start, limit, depth, dir)
- .await
+ .get_relations(
+ sender_user,
+ room_id,
+ target,
+ start,
+ limit.saturating_add(1),
+ max_depth,
+ dir,
+ |pdu| {
+ filter_event_type
+ .as_ref()
+ .is_none_or(|kind| kind == pdu.kind())
+ && filter_rel_type
+ .as_ref()
+ .is_none_or(|rel_type| rel_type.relation_type_equal(pdu))
+ },
+ )
+ .await;
+
+ let past_to = to.and_then(|to| {
+ events
+ .iter()
+ .position(|(count, _)| !to.is_after(*count, dir))
+ });
+ if let Some(past_to) = past_to {
+ events.truncate(past_to);
+ }
+
+ let has_more = past_to.is_none() && events.len() > limit;
+ events.truncate(limit);
+
+ let next_batch =
+ has_more.then(|| events.last().map_or(start, |(count, _)| *count).to_string());
+
+ let chunk: Vec<_> = events
.into_iter()
- .filter(|(_, pdu)| {
- filter_event_type
- .as_ref()
- .is_none_or(|kind| kind == pdu.kind())
- })
- .filter(|(_, pdu)| {
- filter_rel_type
- .as_ref()
- .is_none_or(|rel_type| rel_type.relation_type_equal(pdu))
- })
.stream()
- .ready_take_while(|(count, _)| Some(*count) != to)
- .take(limit)
.wide_filter_map(|item| visibility_filter(services, sender_user, item))
.wide_filter_map(|item| ignored_filter(services, item, sender_user))
.then(async |mut pdu| {
@@ -182,32 +207,15 @@ async fn paginate_relations_with_filter(
}
pdu
})
- .collect()
- .await;
-
- // Determine if there are more events to fetch
- let has_more = events.len() >= limit;
-
- let next_batch = if has_more {
- match dir {
- | Direction::Forward => events.last(),
- | Direction::Backward => events.first(),
- }
- .map(|(count, _)| count.to_string())
- } else {
- None
- };
-
- let chunk: Vec<_> = events
- .into_iter()
.map(at!(1))
.map(Event::into_format)
- .collect();
+ .collect()
+ .await;
Ok(assign!(get_relating_events::v1::Response::new(chunk), {
next_batch,
prev_batch: from.map(Into::into),
- recursion_depth: recurse.then_some(depth.into()),
+ recursion_depth: recurse.then_some(RECURSION_DEPTH.into()),
}))
}
diff --git a/src/api/client/rendezvous.rs b/src/api/client/rendezvous.rs
new file mode 100644
index 000000000..d779b74a3
--- /dev/null
+++ b/src/api/client/rendezvous.rs
@@ -0,0 +1,76 @@
+use axum::extract::State;
+use conduwuit::{Err, Result};
+use http::HeaderMap;
+use ruma::api::client::rendezvous::{
+ create_rendezvous_session, delete_rendezvous_session, discover_rendezvous,
+ get_rendezvous_session, update_rendezvous_session,
+};
+use service::Services;
+
+use crate::{Ruma, router::ClientIdentity};
+
+/// `GET /_matrix/client/msc4388/io.element.msc4388/rendezvous`
+pub(crate) async fn discover_rendezvous_route(
+ State(services): State,
+ body: Ruma,
+) -> Result {
+ Ok(discover_rendezvous::msc4388::Response::new(rendezvous_available(
+ &services,
+ body.identity.as_ref(),
+ )))
+}
+
+/// `POST /_matrix/client/msc4388/io.element.msc4388/rendezvous/`
+pub(crate) async fn create_rendezvous_session_route(
+ State(services): State,
+ body: Ruma,
+) -> Result {
+ if !rendezvous_available(&services, body.identity.as_ref()) {
+ return Err!(Request(Forbidden("You are not authorized to create a rendezvous session")));
+ }
+
+ services.rendezvous.create_session(body.data.clone())
+}
+
+/// `PUT /_matrix/client/msc4388/io.element.msc4388/rendezvous/{id}/{txn_id}`
+pub(crate) async fn update_rendezvous_session_route(
+ State(services): State,
+ body: Ruma,
+) -> Result {
+ services.rendezvous.update_session(
+ &body.id,
+ body.txn_id.clone(),
+ body.sequence_token.clone(),
+ body.data.clone(),
+ )
+}
+
+/// `GET /_matrix/client/msc4388/io.element.msc4388/rendezvous/{id}`
+pub(crate) async fn get_rendezvous_session_route(
+ State(services): State,
+ headers: HeaderMap,
+ body: Ruma,
+) -> Result {
+ if let Some(mode) = headers.get("Sec-Fetch-Mode")
+ && let Ok(mode) = mode.to_str()
+ && mode == "navigate"
+ {
+ return Err!(Request(Forbidden(
+ "Rendezvous sessions do not accept browser navigation requests."
+ )));
+ }
+
+ services.rendezvous.get_session(&body.id)
+}
+
+/// `DELETE /_matrix/client/msc4388/io.element.msc4388/rendezvous/{id}`
+pub(crate) async fn delete_rendezvous_session_route(
+ State(services): State,
+ body: Ruma,
+) -> Result {
+ services.rendezvous.delete_session(&body.id)
+}
+
+fn rendezvous_available(services: &Services, identity: Option<&ClientIdentity>) -> bool {
+ !services.config.require_auth_for_rendezvous || identity.is_some()
+}
diff --git a/src/api/client/room/create.rs b/src/api/client/room/create.rs
index 582169346..74f0653db 100644
--- a/src/api/client/room/create.rs
+++ b/src/api/client/room/create.rs
@@ -1,18 +1,21 @@
-use std::collections::{BTreeMap, BTreeSet, HashSet};
+use std::{
+ collections::{BTreeMap, BTreeSet, HashSet},
+ sync::atomic::{AtomicU64, Ordering::SeqCst},
+};
use axum::extract::State;
use conduwuit::{
Err, Error, Result, debug, debug_info, err, info,
matrix::{StateKey, pdu::PartialPdu},
trace,
- utils::to_canonical_object,
+ utils::{self, to_canonical_object},
warn,
};
use conduwuit_service::{Services, appservice::RegistrationInfo};
use futures::FutureExt;
use ruma::{
CanonicalJsonObject, CanonicalJsonValue, Int, MilliSecondsSinceUnixEpoch, OwnedRoomAliasId,
- OwnedUserId, RoomAliasId, RoomId,
+ OwnedUserId, RoomAliasId, RoomId, UInt,
api::{
client::room::{
self,
@@ -46,6 +49,8 @@ use serde_json::value::to_raw_value;
use crate::{Ruma, client::invite_helper};
+static LAST_CREATE_TS: AtomicU64 = AtomicU64::new(0);
+
// We use this to keep around extra data in the `creation_content`
// while still parsing and validating keys that we care about.
#[derive(Deserialize, Default)]
@@ -72,7 +77,7 @@ struct FullCreationContent {
/// - Send events listed in initial state
/// - Send events implied by `name` and `topic`
/// - Send invite events
-#[allow(clippy::large_stack_frames)]
+#[allow(clippy::large_unopt_stack_frames)]
#[allow(clippy::cognitive_complexity)]
pub(crate) async fn create_room_route(
State(services): State,
@@ -116,7 +121,10 @@ pub(crate) async fn create_room_route(
// ID exactly matches this, and abort if it doesn't. Otherwise, we use it
// as the room ID itself.
let expect_room_id = {
- let body_ref = body.json_body.as_ref().unwrap();
+ let body_ref = body
+ .json_body
+ .as_ref()
+ .ok_or_else(|| err!(Request(BadJson("Invalid JSON body"))))?;
if let Some(CanonicalJsonValue::String(room_id)) = body_ref
.get("fi.mau.room_id")
.or_else(|| body_ref.get("room_id"))
@@ -297,7 +305,10 @@ pub(crate) async fn create_room_route(
// Allow requesters to override the `origin_server_ts` to customize room ids
// from v12 onwards
let custom_origin_server_ts = {
- let body_ref = body.json_body.as_ref().unwrap();
+ let body_ref = body
+ .json_body
+ .as_ref()
+ .ok_or_else(|| err!(Request(BadJson("Invalid JSON body"))))?;
body_ref
.get("origin_server_ts")
.or_else(|| body_ref.get("fi.mau.origin_server_ts"))
@@ -307,6 +318,17 @@ pub(crate) async fn create_room_route(
.map(MilliSecondsSinceUnixEpoch)
};
+ // v12+ room IDs are the create event's hash, so give each create event a
+ // unique timestamp to avoid collisions.
+ let create_timestamp = custom_origin_server_ts.or_else(|| {
+ room_id.is_none().then(|| {
+ let now = utils::millis_since_unix_epoch();
+ let next = |last: u64| now.max(last.saturating_add(1));
+ let prev = LAST_CREATE_TS.update(SeqCst, SeqCst, next);
+ MilliSecondsSinceUnixEpoch(UInt::new_saturating(next(prev)))
+ })
+ });
+
let mut create_event_content = to_canonical_object(create_event_content)
.expect("should be able to serialize create event content");
@@ -322,7 +344,7 @@ pub(crate) async fn create_room_route(
event_type: TimelineEventType::RoomCreate,
content: to_raw_value(&create_event_content)?,
state_key: Some(StateKey::new()),
- timestamp: custom_origin_server_ts,
+ timestamp: create_timestamp,
..Default::default()
},
sender_user,
@@ -758,11 +780,7 @@ async fn room_alias_check(
if !info.aliases.is_match(full_room_alias.as_str()) {
return Err!(Request(Exclusive("Room alias is not in namespace.")));
}
- } else if services
- .appservice
- .is_exclusive_alias(&full_room_alias)
- .await
- {
+ } else if services.appservice.is_exclusive_alias(&full_room_alias) {
return Err!(Request(Exclusive("Room alias reserved by appservice.",)));
}
diff --git a/src/api/client/room/event.rs b/src/api/client/room/event.rs
index 268ca92c1..d4917f73a 100644
--- a/src/api/client/room/event.rs
+++ b/src/api/client/room/event.rs
@@ -1,14 +1,30 @@
-use axum::extract::State;
-use conduwuit::{Err, Event, Result, debug_warn, err};
-use ruma::api::client::room::get_room_event;
+use axum::extract::{Query, State};
+use conduwuit::{
+ Err, Error, Event, PduEvent, Result, config::experiments::ToggledExperiment, debug_warn, err,
+};
+use futures::TryFutureExt;
+use http::StatusCode;
+use ruma::{
+ UserId,
+ api::{client::room::get_room_event, error::ErrorKind},
+};
+use serde::Deserialize;
+use serde_json::json;
use crate::{Ruma, client::is_ignored_pdu};
+#[derive(Deserialize)]
+pub(crate) struct Msc2815Params {
+ #[serde(rename = "fi.mau.msc2815.include_unredacted_content", default)]
+ include_unredacted_content: Option,
+}
+
/// # `GET /_matrix/client/r0/rooms/{roomId}/event/{eventId}`
///
/// Gets a single event.
pub(crate) async fn get_room_event_route(
State(ref services): State,
+ Query(params): Query,
ref body: Ruma,
) -> Result {
let sender_user = body.identity.expect_sender_user()?;
@@ -24,7 +40,7 @@ pub(crate) async fn get_room_event_route(
services.rooms.state_accessor.is_world_readable(room_id)
);
if !joined && !world_readable {
- return Err!(Request(NotFound("Event {} not found.", event_id)));
+ return Err!(Request(NotFound("Event {event_id} not found.")));
}
services
@@ -32,10 +48,15 @@ pub(crate) async fn get_room_event_route(
.timeline
.get_remote_pdu(room_id, event_id)
.await
- .map_err(|_| err!(Request(NotFound("Event {} not found.", event_id))))?
+ .map_err(|_| err!(Request(NotFound("Event {event_id} not found."))))?
},
| Err(e) => return Err(e),
};
+ if !event.room_id_or_hash().eq(room_id) {
+ // Return not found instead of invalid param to avoid revealing the
+ // existence of events the user might not be allowed to know about.
+ return Err!(Request(NotFound("Event {event_id} not found.")));
+ }
// NOTE: checked after fetching, as visibility of an unknown event cannot
// be determined (user_can_see_event returns true for those).
@@ -49,6 +70,13 @@ pub(crate) async fn get_room_event_route(
return Err!(Request(Forbidden("You don't have permission to view this event.")));
}
+ if services.config.experiments.msc2815.is_enabled()
+ && params.include_unredacted_content.unwrap_or(false)
+ && event.is_redacted()
+ {
+ unredact(services, sender_user, &mut event).await?;
+ }
+
if let Err(e) = services
.rooms
.pdu_metadata
@@ -67,3 +95,59 @@ pub(crate) async fn get_room_event_route(
Ok(get_room_event::v3::Response::new(event.into_format()))
}
+
+async fn unredact(services: &crate::State, sender_user: &UserId, event: &mut PduEvent) -> Result {
+ if !services.users.is_admin(sender_user).await {
+ let power_levels = services
+ .rooms
+ .state_accessor
+ .get_room_power_levels(&event.room_id_or_hash())
+ .await;
+
+ if power_levels.for_user(sender_user) < power_levels.redact {
+ return Err!(Request(Forbidden(
+ "You don't have permission to view redacted content in this room."
+ )));
+ }
+ }
+
+ let content = services
+ .rooms
+ .timeline
+ .get_pdu_id(event.event_id())
+ .and_then(async |pdu_id| {
+ services
+ .rooms
+ .timeline
+ .get_unredacted_content(&pdu_id)
+ .await
+ })
+ .await;
+
+ let Ok(content) = content else {
+ // CustomErrorKind has private fields; only serde can build one.
+ let keep_ms = services
+ .config
+ .experiments
+ .msc2815
+ .expect("msc2815 config is disabled but unredact() attempted to access it anyway")
+ .unredacted_content_max_age_secs
+ .saturating_mul(1000);
+
+ let kind = serde_json::from_value::(json!({
+ "errcode": "FI.MAU.MSC2815_UNREDACTED_CONTENT_DELETED",
+ "fi.mau.msc2815.content_keep_ms": keep_ms,
+ }))
+ .expect("errcode is a valid custom error kind");
+
+ return Err(Error::Request(
+ kind,
+ "The unredacted content of this event is not available.".into(),
+ StatusCode::NOT_FOUND,
+ ));
+ };
+
+ event.content = content;
+
+ Ok(())
+}
diff --git a/src/api/client/room/initial_sync.rs b/src/api/client/room/initial_sync.rs
index 9ae8dd73f..70b50f961 100644
--- a/src/api/client/room/initial_sync.rs
+++ b/src/api/client/room/initial_sync.rs
@@ -94,8 +94,7 @@ pub(crate) async fn room_initial_sync_route(
.first()
.map(at!(0))
.as_ref()
- .map(ToString::to_string)
- .unwrap_or_default();
+ .map_or_default(ToString::to_string);
let start = events.last().map(at!(0)).as_ref().map(ToString::to_string);
let chunk = events
diff --git a/src/api/client/room/mod.rs b/src/api/client/room/mod.rs
index e249e18b6..78487f8da 100644
--- a/src/api/client/room/mod.rs
+++ b/src/api/client/room/mod.rs
@@ -2,11 +2,14 @@ mod aliases;
mod create;
mod event;
mod initial_sync;
+mod stripped_state;
mod summary;
+mod timestamp_to_event;
mod upgrade;
pub(crate) use self::{
aliases::get_room_aliases_route, create::create_room_route, event::get_room_event_route,
- initial_sync::room_initial_sync_route, summary::get_room_summary,
+ initial_sync::room_initial_sync_route, stripped_state::get_stripped_state_route,
+ summary::get_room_summary, timestamp_to_event::get_event_by_timestamp_route,
upgrade::upgrade_room_route,
};
diff --git a/src/api/client/room/stripped_state.rs b/src/api/client/room/stripped_state.rs
new file mode 100644
index 000000000..cf686ef2f
--- /dev/null
+++ b/src/api/client/room/stripped_state.rs
@@ -0,0 +1,71 @@
+use axum::extract::State;
+use conduwuit::{Err, Result};
+use ruma::{
+ api::client::state::get_stripped_state, assign, events::ALLOWED_STRIPPED_STATE_EVENTS,
+};
+use service::rooms::summary::{Accessibility, RoomStrippedState};
+
+use crate::{Ruma, router::ClientIdentity};
+
+/// # `POST /_matrix/client/unstable/org.continuwuity.msc4560.stripped_state/{room_id_or_alias}` ([MSC4560])
+///
+/// Returns a room's stripped state.
+///
+/// [MSC4560]: https://github.com/matrix-org/matrix-spec-proposals/pull/4560
+#[tracing::instrument(skip_all, name = "stripped_state", level = "info")]
+pub(crate) async fn get_stripped_state_route(
+ State(services): State,
+ body: Ruma,
+) -> Result {
+ let user_id = body.identity.as_ref().and_then(ClientIdentity::sender_user);
+
+ if body.via.len() > get_stripped_state::msc4560::MAX_VIAS {
+ return Err!(Request(TooLarge("Too many vias, please be less indecisive.")));
+ }
+
+ if let Some(forbidden_type) = body
+ .state
+ .iter()
+ .find(|event_type| !ALLOWED_STRIPPED_STATE_EVENTS.contains(event_type))
+ {
+ return Err!(Request(InvalidParam(
+ "Event type {forbidden_type} may not be requested as stripped state."
+ )));
+ }
+
+ let (room_id, _) = services
+ .rooms
+ .alias
+ .resolve_with_servers(&body.room_id_or_alias, Some(body.via.clone()))
+ .await?;
+
+ if services.rooms.metadata.is_banned(&room_id).await {
+ return Err!(Request(Forbidden("This room is banned on this homeserver.")));
+ }
+
+ match services
+ .rooms
+ .summary
+ .get_stripped_state_for_user(
+ user_id,
+ &room_id,
+ &body.via,
+ &body.state,
+ body.num_joined_members,
+ )
+ .await
+ {
+ | Accessibility::Accessible((
+ via,
+ RoomStrippedState { state, num_joined_members, .. },
+ )) => Ok(
+ assign!(get_stripped_state::msc4560::Response::new(via), { state, num_joined_members }),
+ ),
+ | Accessibility::Inaccessible => {
+ Err!(Request(Forbidden("You may not request this room's stripped state.")))
+ },
+ | Accessibility::NotFound => {
+ Err!(Request(NotFound("This room does not exist.")))
+ },
+ }
+}
diff --git a/src/api/client/room/summary.rs b/src/api/client/room/summary.rs
index da6958242..6c60cd88b 100644
--- a/src/api/client/room/summary.rs
+++ b/src/api/client/room/summary.rs
@@ -13,7 +13,7 @@ pub(crate) async fn get_room_summary(
State(services): State,
body: Ruma,
) -> Result {
- let (room_id, servers) = services
+ let (room_id, _) = services
.rooms
.alias
.resolve_with_servers(&body.room_id_or_alias, Some(body.via.clone()))
@@ -27,12 +27,9 @@ pub(crate) async fn get_room_summary(
.rooms
.summary
.get_room_summary_for_user(
- body.identity
- .as_ref()
- .map(ClientIdentity::expect_sender_user)
- .transpose()?,
+ body.identity.as_ref().and_then(ClientIdentity::sender_user),
&room_id,
- &servers,
+ &body.via,
)
.await?;
@@ -42,7 +39,7 @@ pub(crate) async fn get_room_summary(
Err!(Request(Forbidden("You may not preview this room."), FORBIDDEN))
},
| Accessibility::NotFound => {
- Err!(Request(Forbidden("This room does not exist."), FORBIDDEN))
+ Err!(Request(NotFound("This room does not exist.")))
},
}
}
diff --git a/src/api/client/room/timestamp_to_event.rs b/src/api/client/room/timestamp_to_event.rs
new file mode 100644
index 000000000..0ce077a9b
--- /dev/null
+++ b/src/api/client/room/timestamp_to_event.rs
@@ -0,0 +1,61 @@
+use axum::extract::State;
+use conduwuit::{Err, Event, Result, utils::stream::TryIgnore};
+use futures::{StreamExt, pin_mut};
+use ruma::api::client::room::get_event_by_timestamp;
+
+use crate::Ruma;
+
+const MAX_CANDIDATES: usize = 20;
+
+/// # `GET /_matrix/client/v1/rooms/{roomId}/timestamp_to_event`
+///
+/// Gets the ID of the event closest to the given timestamp, in the direction
+/// specified by `dir`.
+pub(crate) async fn get_event_by_timestamp_route(
+ State(ref services): State,
+ body: Ruma,
+) -> Result {
+ let sender_user = body.identity.expect_sender_user()?;
+ let room_id = &body.room_id;
+
+ if !services
+ .rooms
+ .state_accessor
+ .user_can_see_state_events(sender_user, room_id)
+ .await
+ {
+ return Err!(Request(Forbidden("You don't have permission to view this room.")));
+ }
+
+ if !services.rooms.timeline.timestamp_index_ready().await {
+ return Err!(FeatureDisabled("timestamp_to_event"));
+ }
+
+ let candidates = services
+ .rooms
+ .timeline
+ .pdus_by_timestamp(room_id, body.ts, body.dir)
+ .ignore_err()
+ .take(MAX_CANDIDATES);
+
+ pin_mut!(candidates);
+ while let Some((_, pdu)) = candidates.next().await {
+ if services
+ .rooms
+ .state_accessor
+ .user_can_see_event(sender_user, room_id, pdu.event_id())
+ .await
+ {
+ return Ok(get_event_by_timestamp::v1::Response::new(
+ pdu.event_id().to_owned(),
+ pdu.origin_server_ts(),
+ ));
+ }
+ }
+
+ Err!(Request(NotFound(
+ "Unable to find event from {} in direction {:?}",
+ body.ts.get(),
+ body.dir
+ )))
+}
diff --git a/src/api/client/send.rs b/src/api/client/send.rs
index b87f7eb2e..41e3804b0 100644
--- a/src/api/client/send.rs
+++ b/src/api/client/send.rs
@@ -95,12 +95,7 @@ pub(crate) async fn send_message_event_route(
PartialPdu {
event_type: body.event_type.clone().into(),
content,
- sticky: services
- .config
- .allow_sticky_events
- .then_some(body.sticky_duration_ms)
- .flatten()
- .map(sticky::object),
+ sticky: body.sticky_duration_ms.map(sticky::object),
unsigned: Some(unsigned),
timestamp: if body.identity.is_appservice()
|| services.admin.user_is_admin(sender_user).await
diff --git a/src/api/client/sync/v3/joined.rs b/src/api/client/sync/v3/joined.rs
index d2e8a8909..536dc2a9d 100644
--- a/src/api/client/sync/v3/joined.rs
+++ b/src/api/client/sync/v3/joined.rs
@@ -15,7 +15,7 @@ use conduwuit::{
},
warn,
};
-use conduwuit_service::Services;
+use conduwuit_service::{Services, rooms::read_receipt::pack_receipts};
use futures::{
FutureExt, StreamExt, TryFutureExt,
future::{OptionFuture, join, join3, join4, try_join, try_join3},
@@ -64,7 +64,7 @@ pub(super) async fn load_joined_room(
services: &Services,
sync_context: SyncContext<'_>,
ref room_id: OwnedRoomId,
-) -> Result<(JoinedRoom, DeviceListUpdates)> {
+) -> Result {
/*
Building a sync response involves many steps which all depend on each other.
To parallelize the process as much as possible, each step is divided into its own function,
@@ -80,7 +80,6 @@ pub(super) async fn load_joined_room(
sticky,
summary,
notification_counts,
- device_list_updates,
},
) = try_join3(
build_account_data(services, sync_context, room_id),
@@ -117,7 +116,7 @@ pub(super) async fn load_joined_room(
unread_thread_notifications: BTreeMap::new(),
});
- Ok((joined_room, device_list_updates))
+ Ok(joined_room)
}
/// Collect changes to the syncing user's account data events.
@@ -243,9 +242,14 @@ async fn build_ephemeral(
let (receipt_events, typing_event, private_read_event) =
join3(receipt_events, typing_event, private_read_event).await;
- let mut edus = receipt_events;
+ let mut all_receipts = receipt_events;
+ all_receipts.extend(private_read_event);
+
+ let mut edus = Vec::new();
+ if !all_receipts.is_empty() {
+ edus.push(pack_receipts(all_receipts.into_iter()).cast());
+ }
edus.extend(typing_event);
- edus.extend(private_read_event);
Ok(assign!(Ephemeral::new(), { events: edus }))
}
@@ -258,7 +262,6 @@ struct StateAndTimeline {
sticky: Sticky,
summary: Option,
notification_counts: Option,
- device_list_updates: DeviceListUpdates,
}
async fn build_sticky_events(
@@ -268,10 +271,6 @@ async fn build_sticky_events(
timeline: &TimelinePdus,
joined_since_last_sync: bool,
) -> Sticky {
- if !services.config.allow_sticky_events {
- return Sticky::new();
- }
-
let SyncContext {
syncing_user,
last_sync_end_count,
@@ -376,24 +375,14 @@ async fn build_state_and_timeline(
debug_warn!("timeline for newly joined room is empty");
}
- let (summary, device_list_updates) = try_join(
- build_room_summary(
- services,
- sync_context,
- room_id,
- shortstatehashes,
- &timeline,
- &state_events,
- joined_since_last_sync,
- ),
- build_device_list_updates(
- services,
- sync_context,
- room_id,
- shortstatehashes,
- &state_events,
- joined_since_last_sync,
- ),
+ let summary = build_room_summary(
+ services,
+ sync_context,
+ room_id,
+ shortstatehashes,
+ &timeline,
+ &state_events,
+ joined_since_last_sync,
)
.await?;
@@ -429,7 +418,6 @@ async fn build_state_and_timeline(
sticky,
summary,
notification_counts,
- device_list_updates,
})
}
@@ -799,8 +787,7 @@ async fn build_room_summary(
Ok(Some(assign!(RoomSummary::new(), {
heroes: heroes
- .map(|heroes| heroes.into_iter().collect())
- .unwrap_or_default(),
+ .map_or_default(|heroes| heroes.into_iter().collect()),
joined_member_count: Some(ruma_from_u64(joined_member_count)),
invited_member_count: Some(ruma_from_u64(invited_member_count)),
})))
@@ -853,35 +840,34 @@ async fn build_heroes(
.await
}
-/// Collect updates to users' device lists for E2EE.
-#[tracing::instrument(level = "debug", skip_all)]
-async fn build_device_list_updates(
+/// Collect updates to users' device lists for E2EE in a joined room.
+#[tracing::instrument(level = "debug", skip_all, fields(%room_id))]
+pub(super) async fn load_device_list_updates(
services: &Services,
- SyncContext {
+ sync_context: SyncContext<'_>,
+ room_id: &RoomId,
+) -> Result {
+ let SyncContext {
syncing_user,
last_sync_end_count,
current_count,
..
- }: SyncContext<'_>,
- room_id: &RoomId,
- ShortStateHashes { current_shortstatehash, .. }: ShortStateHashes,
- state_events: &Vec,
- joined_since_last_sync: bool,
-) -> Result {
- let is_encrypted_room = services
- .rooms
- .state_accessor
- .state_get(current_shortstatehash, &StateEventType::RoomEncryption, "")
- .is_ok();
+ } = sync_context;
+
+ let mut device_list_updates = DeviceListUpdates::new();
// initial syncs don't include device updates, and rooms which aren't
// encrypted don't affect them, so return early in either of those cases
- if last_sync_end_count.is_none() || !(is_encrypted_room.await) {
- return Ok(DeviceListUpdates::new());
+ if last_sync_end_count.is_none()
+ || !services
+ .rooms
+ .state_accessor
+ .is_encrypted_room(room_id)
+ .await
+ {
+ return Ok(device_list_updates);
}
- let mut device_list_updates = DeviceListUpdates::new();
-
// add users with changed keys to the `changed` list
services
.users
@@ -892,19 +878,56 @@ async fn build_device_list_updates(
})
.await;
- // add users who now share encrypted rooms to `changed` and
- // users who no longer share encrypted rooms to `left`
- for state_event in state_events {
- if state_event.kind == RoomMember {
- let Some(content): Option = state_event.get_content().ok()
+ let shortstatehashes = fetch_shortstatehashes(services, sync_context, room_id).await?;
+ let ShortStateHashes {
+ current_shortstatehash,
+ last_sync_end_shortstatehash,
+ } = shortstatehashes;
+
+ if check_joined_since_last_sync(services, shortstatehashes, sync_context).await? {
+ // the syncing user now shares an encrypted room with every member
+ services
+ .rooms
+ .state_cache
+ .room_members(room_id)
+ .ready_for_each(|user_id| {
+ device_list_updates.changed.insert(user_id);
+ })
+ .await;
+ } else if let Some(last_sync_end_shortstatehash) = last_sync_end_shortstatehash
+ && last_sync_end_shortstatehash != current_shortstatehash
+ {
+ // add users who now share encrypted rooms to `changed` and
+ // users who no longer share encrypted rooms to `left`
+ let state_added = services
+ .rooms
+ .state_accessor
+ .state_added((last_sync_end_shortstatehash, current_shortstatehash))
+ .await?;
+
+ for (shortstatekey, _) in state_added {
+ let Ok((StateEventType::RoomMember, state_key)) = services
+ .rooms
+ .short
+ .get_statekey_from_short(shortstatekey)
+ .await
else {
continue;
};
- let Some(user_id): Option = state_event
- .state_key
- .as_ref()
- .and_then(|key| key.parse().ok())
+ let Ok(user_id) = OwnedUserId::try_from(state_key.as_str()) else {
+ continue;
+ };
+
+ let Ok(content): Result = services
+ .rooms
+ .state_accessor
+ .state_get_content(
+ current_shortstatehash,
+ &StateEventType::RoomMember,
+ user_id.as_str(),
+ )
+ .await
else {
continue;
};
@@ -920,7 +943,7 @@ async fn build_device_list_updates(
| Leave if !shares_encrypted_room => {
device_list_updates.left.insert(user_id);
},
- | Join if joined_since_last_sync || shares_encrypted_room => {
+ | Join if shares_encrypted_room => {
device_list_updates.changed.insert(user_id);
},
| _ => (),
diff --git a/src/api/client/sync/v3/mod.rs b/src/api/client/sync/v3/mod.rs
index 4987534cf..e004ec08d 100644
--- a/src/api/client/sync/v3/mod.rs
+++ b/src/api/client/sync/v3/mod.rs
@@ -3,7 +3,6 @@ mod left;
mod state;
use std::{
- cmp::{self},
collections::{BTreeMap, HashMap, HashSet},
time::Duration,
};
@@ -21,7 +20,7 @@ use futures::{FutureExt, StreamExt, TryFutureExt, future::OptionFuture};
use ruma::{
DeviceId, OwnedUserId, RoomId, UserId,
api::client::{
- filter::FilterDefinition,
+ filter::{self, FilterDefinition, RoomFilter},
sync::sync_events::{
self, DeviceLists,
v3::{
@@ -39,13 +38,17 @@ use service::{
account_data::AnyRawAccountDataEvent,
rooms::lazy_loading::{self, MemberSet, Options as _},
};
+use wildmatch::WildMatch;
use super::{load_timeline, share_encrypted_room};
use crate::{
Ruma,
client::{
is_ignored_invite,
- sync::v3::{joined::load_joined_room, left::load_left_room},
+ sync::v3::{
+ joined::{load_device_list_updates, load_joined_room},
+ left::load_left_room,
+ },
},
client_ip::ClientIp,
};
@@ -201,9 +204,14 @@ pub(crate) async fn sync_events_route(
.update_device_last_seen(sender_user, Some(sender_device), client_ip)
.await;
- let mut wake_receiver = services.sync.subscribe_to_wake(sender_user).await;
+ let mut wake_receiver = services.sync.subscribe_to_wake(sender_user);
let response = build_sync_events(&services, &body).await?;
- if body.body.full_state
+
+ let timeout_duration = body.body.timeout.unwrap_or_default();
+ // If the timeout is zero, request has full_state=true, or there's
+ // meaningful data to return, do so immediately.
+ if timeout_duration.is_zero()
+ || body.body.full_state
|| !(response.rooms.is_empty()
&& response.presence.is_empty()
&& response.account_data.is_empty()
@@ -213,11 +221,15 @@ pub(crate) async fn sync_events_route(
return Ok(response);
}
- // Hang a few seconds so requests are not spammed
- // Stop hanging if new info arrives
- let default = Duration::from_secs(30);
- let duration = cmp::min(body.body.timeout.unwrap_or(default), default);
- _ = tokio::time::timeout(duration, wake_receiver.changed()).await;
+ // Otherwise, wait for a wake signal to rebuild changes. Cap timeout at 30
+ // seconds (this isn't specced, but a reasonable cap since most clients have
+ // a 30-second polling interval).
+ let duration = timeout_duration.min(Duration::from_secs(30));
+ let mut shutdown_signal = services.server.signal.subscribe();
+ tokio::select! {
+ _ = tokio::time::timeout(duration, wake_receiver.changed()) => {},
+ _ = shutdown_signal.recv() => return Err!(Request(Unknown("Server is shutting down"), SERVICE_UNAVAILABLE)),
+ };
// Retry returning data
build_sync_events(&services, &body).await
@@ -271,34 +283,47 @@ pub(crate) async fn build_sync_events(
.rooms
.state_cache
.rooms_joined(syncing_user)
+ .ready_filter(|room_id| room_selected(&filter.room, room_id))
.broad_filter_map(|room_id| async {
let joined_room = load_joined_room(services, context, room_id.clone()).await;
match joined_room {
- | Ok((room, updates)) => Some((room_id, room, updates)),
+ | Ok(room) => Some((room_id, room)),
| Err(err) => {
error!(?err, %room_id, "error loading joined room");
None
},
}
})
- .ready_fold(
- (BTreeMap::new(), DeviceListUpdates::new()),
- |(mut joined_rooms, mut all_updates), (room_id, joined_room, updates)| {
- all_updates.merge(updates);
+ .ready_fold(BTreeMap::new(), |mut joined_rooms, (room_id, joined_room)| {
+ if !joined_room.is_empty() {
+ joined_rooms.insert(room_id, joined_room);
+ }
- if !joined_room.is_empty() {
- joined_rooms.insert(room_id, joined_room);
- }
+ joined_rooms
+ });
- (joined_rooms, all_updates)
- },
- );
+ // a filtered out room still contributes its device list updates
+ let device_list_updates = services
+ .rooms
+ .state_cache
+ .rooms_joined(syncing_user)
+ .broad_filter_map(|room_id| async move {
+ load_device_list_updates(services, context, &room_id)
+ .await
+ .inspect_err(|err| error!(?err, %room_id, "error loading device list updates"))
+ .ok()
+ })
+ .ready_fold(DeviceListUpdates::new(), |mut all_updates, updates| {
+ all_updates.merge(updates);
+ all_updates
+ });
let left_rooms = services
.rooms
.state_cache
.rooms_left(syncing_user)
+ .ready_filter(|(room_id, _)| room_selected(&filter.room, room_id))
.broad_filter_map(|(room_id, leave_pdu)| async {
let left_room = load_left_room(services, context, room_id.clone(), leave_pdu).await;
@@ -317,6 +342,7 @@ pub(crate) async fn build_sync_events(
.rooms
.state_cache
.rooms_invited(syncing_user)
+ .ready_filter(|(room_id, _)| room_selected(&filter.room, room_id))
.wide_filter_map(async |(room_id, invite_state)| {
if is_ignored_invite(services, syncing_user, &room_id).await {
None
@@ -347,6 +373,7 @@ pub(crate) async fn build_sync_events(
.rooms
.state_cache
.rooms_knocked(syncing_user)
+ .ready_filter(|(room_id, _)| room_selected(&filter.room, room_id))
.fold_default(|mut knocked_rooms: BTreeMap<_, _>, (room_id, knock_state)| async move {
let knock_count = services
.rooms
@@ -376,6 +403,13 @@ pub(crate) async fn build_sync_events(
.account_data
.changes_since(None, syncing_user, last_sync_end_count, Some(current_count))
.ready_filter_map(|e| extract_variant!(e, AnyRawAccountDataEvent::Global))
+ .ready_filter(|event| {
+ event
+ .get_field::("type")
+ .ok()
+ .flatten()
+ .is_some_and(|event_type| type_selected(&filter.account_data, &event_type))
+ })
.collect();
let to_device_events = services
@@ -404,7 +438,8 @@ pub(crate) async fn build_sync_events(
.list_unused_fallback_key_types(syncing_user, syncing_device);
let (
- (joined_rooms, mut device_list_updates),
+ joined_rooms,
+ mut device_list_updates,
left_rooms,
invited_rooms,
knocked_rooms,
@@ -417,6 +452,7 @@ pub(crate) async fn build_sync_events(
) = async {
futures::join!(
joined_rooms,
+ device_list_updates,
left_rooms,
invited_rooms,
knocked_rooms,
@@ -465,6 +501,24 @@ pub(crate) async fn build_sync_events(
Ok(response)
}
+fn room_selected(filter: &RoomFilter, room_id: &RoomId) -> bool {
+ !filter.not_rooms.iter().any(|not_room| not_room == room_id)
+ && filter
+ .rooms
+ .as_ref()
+ .is_none_or(|rooms| rooms.iter().any(|room| room == room_id))
+}
+
+fn type_selected(filter: &filter::Filter, event_type: &str) -> bool {
+ let matches = |pattern: &String| WildMatch::new(pattern).matches(event_type);
+
+ !filter.not_types.iter().any(matches)
+ && filter
+ .types
+ .as_ref()
+ .is_none_or(|types| types.iter().any(matches))
+}
+
#[tracing::instrument(name = "presence", level = "debug", skip_all)]
async fn process_presence_updates(
services: &Services,
@@ -528,3 +582,45 @@ async fn prepare_lazily_loaded_members(
lazily_loaded_members
}
+
+#[cfg(test)]
+mod tests {
+ use ruma::{owned_room_id, room_id};
+
+ use super::*;
+
+ #[test]
+ fn rooms_filter_selects_rooms() {
+ let room_id = room_id!("!a:example.com");
+ let mut filter = RoomFilter::default();
+ assert!(room_selected(&filter, room_id));
+
+ filter.rooms = Some(Vec::new());
+ assert!(!room_selected(&filter, room_id));
+
+ filter.rooms = Some(vec![room_id.to_owned()]);
+ assert!(room_selected(&filter, room_id));
+
+ filter.not_rooms = vec![owned_room_id!("!a:example.com")];
+ assert!(!room_selected(&filter, room_id));
+ }
+
+ #[test]
+ fn types_filter_selects_account_data() {
+ let mut filter = filter::Filter::default();
+ assert!(type_selected(&filter, "m.direct"));
+
+ filter.types = Some(Vec::new());
+ assert!(!type_selected(&filter, "m.direct"));
+
+ filter.types = Some(vec!["m.direct".to_owned()]);
+ assert!(type_selected(&filter, "m.direct"));
+
+ filter.types = Some(vec!["m.*".to_owned()]);
+ assert!(type_selected(&filter, "m.direct"));
+ assert!(!type_selected(&filter, "im.ponies.user_emotes"));
+
+ filter.not_types = vec!["m.direct".to_owned()];
+ assert!(!type_selected(&filter, "m.direct"));
+ }
+}
diff --git a/src/api/client/sync/v5.rs b/src/api/client/sync/v5.rs
index 7f8997aec..0285c8359 100644
--- a/src/api/client/sync/v5.rs
+++ b/src/api/client/sync/v5.rs
@@ -24,7 +24,7 @@ use conduwuit::{
use conduwuit_service::{
Services,
rooms::read_receipt::pack_receipts,
- sync::{SnakeConnectionsKey, into_snake_key},
+ sync::{SnakeConnectionsKey, StickyDelivered, into_snake_key},
};
use futures::{
FutureExt, StreamExt, TryFutureExt,
@@ -34,7 +34,7 @@ use futures::{
use ruma::{
DeviceId, MilliSecondsSinceUnixEpoch, OwnedEventId, OwnedRoomId, RoomId, UInt, UserId,
api::client::sync::sync_events::{
- self, DeviceLists, UnreadNotificationsCount, v5::request::ExtensionRoomConfig,
+ self, DeviceLists, UnreadNotificationsCount, msc4186::request::ExtensionRoomConfig,
},
assign,
directory::RoomTypeFilter,
@@ -63,7 +63,7 @@ use crate::{
client_ip::ClientIp,
};
-type SyncInfo<'a> = (&'a UserId, &'a DeviceId, u64, &'a sync_events::v5::Request);
+type SyncInfo<'a> = (&'a UserId, &'a DeviceId, u64, &'a sync_events::msc4186::Request);
type TodoRooms = BTreeMap, usize, u64)>;
type KnownRooms = BTreeMap>;
type KnownRoomUpdates = BTreeMap>;
@@ -86,8 +86,9 @@ fn num_live_events<'a>(
}
struct SyncCollection {
- response: sync_events::v5::Response,
+ response: sync_events::msc4186::Response,
known_room_updates: KnownRoomUpdates,
+ sticky_delivered: StickyDelivered,
}
/// `POST /_matrix/client/unstable/org.matrix.simplified_msc3575/sync`
@@ -103,8 +104,8 @@ struct SyncCollection {
pub(crate) async fn sync_events_v5_route(
State(ref services): State,
ClientIp(client_ip): ClientIp, // NOTE: Required for updating device metadata
- body: Ruma,
-) -> Result {
+ body: Ruma,
+) -> Result {
let sender_user = body.identity.expect_sender_user()?;
let sender_device = body.identity.expect_sender_device()?;
@@ -142,12 +143,12 @@ pub(crate) async fn sync_events_v5_route(
}
// Get sticky parameters from cache
- let known_rooms =
+ let (known_rooms, sticky_delivered) =
services
.sync
.update_snake_sync_request_with_cache(&snake_key, globalsince, &mut body);
- let mut wake_receiver = services.sync.subscribe_to_wake(sender_user).await;
+ let mut wake_receiver = services.sync.subscribe_to_wake(sender_user);
let mut collection = collect_sync_response(
services,
sender_user,
@@ -155,6 +156,7 @@ pub(crate) async fn sync_events_v5_route(
&body,
globalsince,
&known_rooms,
+ &sticky_delivered,
)
.await?;
@@ -173,6 +175,7 @@ pub(crate) async fn sync_events_v5_route(
&body,
globalsince,
&known_rooms,
+ &sticky_delivered,
)
.await?;
}
@@ -202,13 +205,13 @@ async fn collect_sync_response(
services: &Services,
sender_user: &UserId,
sender_device: &DeviceId,
- body: &sync_events::v5::Request,
+ body: &sync_events::msc4186::Request,
globalsince: u64,
known_rooms: &KnownRooms,
+ sticky_delivered: &StickyDelivered,
) -> Result {
// Bounds every read below and becomes the `pos` returned to the client.
- // Zero would be echoed back as a request for an initial sync.
- let next_batch = services.globals.current_count()?.max(1);
+ let next_batch = services.globals.next_count()?;
let all_joined_rooms = services
.rooms
@@ -262,7 +265,6 @@ async fn collect_sync_response(
let pos = next_batch.to_string();
let mut todo_rooms: TodoRooms = BTreeMap::new();
- let mut sticky_rooms = BTreeSet::new();
let sync_info: SyncInfo<'_> = (sender_user, sender_device, globalsince, body);
@@ -277,16 +279,16 @@ async fn collect_sync_response(
let (account_data, e2ee, to_device, receipts) =
try_join4(account_data, e2ee, to_device, receipts).await?;
- let extensions = assign!(sync_events::v5::response::Extensions::default(), {
+ let extensions = assign!(sync_events::msc4186::response::Extensions::default(), {
account_data,
e2ee,
to_device,
receipts,
- typing: sync_events::v5::response::Typing::default(),
- sticky_events: sync_events::v5::response::StickyEvents::default(),
+ typing: sync_events::msc4186::response::Typing::default(),
+ sticky_events: sync_events::msc4186::response::StickyEvents::default(),
});
- let mut response = assign!(sync_events::v5::Response::new(pos), {
+ let mut response = assign!(sync_events::msc4186::Response::new(pos), {
txn_id: body.txn_id.clone(),
lists: BTreeMap::new(),
rooms: BTreeMap::new(),
@@ -319,7 +321,6 @@ async fn collect_sync_response(
all_rooms,
&direct_rooms,
&mut todo_rooms,
- &mut sticky_rooms,
known_rooms,
&mut response,
)
@@ -329,7 +330,6 @@ async fn collect_sync_response(
"subscriptions".to_owned(),
fetch_subscriptions(services, body, known_rooms, &allowed_rooms, &mut todo_rooms).await,
);
- sticky_rooms.extend(body.room_subscriptions.keys().cloned());
let mut timeline_event_ids = BTreeSet::new();
response.rooms = process_rooms(
@@ -346,25 +346,31 @@ async fn collect_sync_response(
)
.await?;
- response.extensions.sticky_events = collect_sticky_events(
+ let (sticky_events, sticky_delivered) = collect_sticky_events(
services,
sender_user,
body,
- &sticky_rooms,
+ next_batch,
+ sticky_delivered,
+ &known_room_updates,
&joined_room_ids,
- &todo_rooms,
&timeline_event_ids,
)
- .await?;
+ .await;
+ response.extensions.sticky_events = sticky_events;
response.extensions.typing =
collect_typing_events(services, sender_user, body, &todo_rooms, &known_room_updates)
.await?;
- Ok(SyncCollection { response, known_room_updates })
+ Ok(SyncCollection {
+ response,
+ known_room_updates,
+ sticky_delivered,
+ })
}
-fn response_is_empty(response: &sync_events::v5::Response) -> bool {
+fn response_is_empty(response: &sync_events::msc4186::Response) -> bool {
let no_account_data = response.extensions.account_data.global.is_empty()
&& response
.extensions
@@ -395,7 +401,7 @@ async fn commit_sync_collection(
services: &Services,
sender_user: &UserId,
sender_device: &DeviceId,
- body: &sync_events::v5::Request,
+ body: &sync_events::msc4186::Request,
globalsince: u64,
snake_key: &SnakeConnectionsKey,
collection: &SyncCollection,
@@ -408,9 +414,10 @@ async fn commit_sync_collection(
.parse()
.expect("generated sync position"),
collection.known_room_updates.clone(),
+ collection.sticky_delivered.clone(),
);
- if body.extensions.to_device.enabled.unwrap_or(false) {
+ if body.extensions.to_device.enabled {
services
.users
.remove_to_device_events(sender_user, sender_device, globalsince)
@@ -420,7 +427,7 @@ async fn commit_sync_collection(
async fn fetch_subscriptions(
services: &Services,
- body: &sync_events::v5::Request,
+ body: &sync_events::msc4186::Request,
known_rooms: &KnownRooms,
allowed_rooms: &BTreeSet,
todo_rooms: &mut TodoRooms,
@@ -480,15 +487,14 @@ async fn fetch_subscriptions(
async fn handle_lists<'a, Rooms, AllRooms>(
services: &Services,
sender_user: &UserId,
- body: &sync_events::v5::Request,
+ body: &sync_events::msc4186::Request,
all_invited_rooms: Rooms,
all_joined_rooms: Rooms,
all_rooms: AllRooms,
direct_rooms: &HashSet,
todo_rooms: &'a mut TodoRooms,
- sticky_rooms: &mut BTreeSet,
known_rooms: &'a KnownRooms,
- response: &'_ mut sync_events::v5::Response,
+ response: &'_ mut sync_events::msc4186::Response,
) -> KnownRoomUpdates
where
Rooms: Iterator
- + Clone + Send + 'a,
@@ -579,7 +585,6 @@ where
.await;
sort_rooms_by_activity(&mut active_rooms);
let active_rooms: Vec<_> = active_rooms.into_iter().map(at!(0)).collect();
- sticky_rooms.extend(active_rooms.iter().map(|room_id| (*room_id).to_owned()));
let mut new_known_rooms: BTreeSet = BTreeSet::new();
@@ -631,7 +636,7 @@ where
}
response.lists.insert(
list_id.clone(),
- assign!(sync_events::v5::response::List::default(), {
+ assign!(sync_events::msc4186::response::List::default(), {
count: ruma_from_usize(active_rooms.len()),
}),
);
@@ -749,10 +754,10 @@ async fn process_rooms<'a, Rooms>(
all_invited_rooms: Rooms,
all_knocked_rooms: Rooms,
todo_rooms: &TodoRooms,
- response: &mut sync_events::v5::Response,
- body: &sync_events::v5::Request,
+ response: &mut sync_events::msc4186::Response,
+ body: &sync_events::msc4186::Request,
timeline_event_ids: &mut BTreeSet,
-) -> Result>
+) -> Result>
where
Rooms: Iterator
- + Clone + Send + 'a,
{
@@ -787,7 +792,7 @@ where
rooms.insert(
room_id.clone(),
- assign!(sync_events::v5::response::Room::new(), {
+ assign!(sync_events::msc4186::response::Room::new(), {
initial: Some(roomsince == &0),
invite_state,
limited: true,
@@ -821,7 +826,7 @@ where
rooms.insert(
room_id.clone(),
- assign!(sync_events::v5::response::Room::new(), {
+ assign!(sync_events::msc4186::response::Room::new(), {
initial: Some(roomsince == &0),
invite_state: Some(knock_state),
limited: true,
@@ -988,7 +993,7 @@ where
.state_accessor
.get_member(room_id, &user_id)
.map_ok(|member_event| {
- assign!(sync_events::v5::response::Hero::new(user_id.clone()), {
+ assign!(sync_events::msc4186::response::Hero::new(user_id.clone()), {
name: member_event.displayname,
avatar: member_event.avatar_url,
})
@@ -1032,7 +1037,7 @@ where
rooms.insert(
room_id.clone(),
- assign!(sync_events::v5::response::Room::new(), {
+ assign!(sync_events::msc4186::response::Room::new(), {
name: services
.rooms
.state_accessor
@@ -1103,64 +1108,61 @@ where
Ok(rooms)
}
+#[expect(clippy::too_many_arguments)]
async fn collect_sticky_events(
services: &Services,
sender_user: &UserId,
- body: &sync_events::v5::Request,
- sticky_rooms: &BTreeSet,
+ body: &sync_events::msc4186::Request,
+ next_batch: u64,
+ sticky_delivered: &StickyDelivered,
+ known_room_updates: &KnownRoomUpdates,
joined_room_ids: &BTreeSet,
- todo_rooms: &TodoRooms,
timeline_event_ids: &BTreeSet,
-) -> Result {
- if !services.config.allow_sticky_events
- || !body.extensions.sticky_events.enabled.unwrap_or(false)
- {
- return Ok(sync_events::v5::response::StickyEvents::default());
+) -> (sync_events::msc4186::response::StickyEvents, StickyDelivered) {
+ let mut response = sync_events::msc4186::response::StickyEvents::default();
+ let mut delivered = StickyDelivered::new();
+
+ let sticky_events = &body.extensions.sticky_events;
+ if !sticky_events.enabled.unwrap_or(false) {
+ return (response, delivered);
}
- let since = body
- .extensions
- .sticky_events
- .since
- .as_deref()
- .and_then(|token| token.parse::().ok())
- .unwrap_or(0);
- let limit = body
- .extensions
- .sticky_events
+ let scope = extension_scope(
+ sticky_events.lists.as_deref(),
+ sticky_events.rooms.as_deref(),
+ body.lists.keys().map(String::as_str),
+ known_room_updates,
+ );
+ let limit = sticky_events
.limit
.map_or(DEFAULT_STICKY_LIMIT, usize_from_ruma)
.clamp(1, DEFAULT_STICKY_LIMIT);
let now = u64::from(MilliSecondsSinceUnixEpoch::now().get());
let oldest_sticky_ts = now.saturating_sub(sticky::MAX_DURATION_MS);
- let mut backlog = Vec::new();
- let mut stream = Vec::new();
- for room_id in sticky_rooms
- .iter()
- .filter(|room_id| joined_room_ids.contains(*room_id))
- {
- // a room the client has not seen before needs its whole backlog, which
- // a single stream position cannot express
- let initial = todo_rooms
- .get(room_id)
- .is_some_and(|&(_, _, roomsince)| roomsince == 0);
+ for room_id in scope.intersection(joined_room_ids) {
+ let since = sticky_delivered.get(room_id).copied();
+ let mut pending = Vec::new();
let pdus = services.rooms.timeline.pdus_rev(room_id, None).ignore_err();
pin_mut!(pdus);
while let Some((count, pdu)) = pdus.next().await {
- // nothing older than this can still be sticky, and on the stream we
- // have already delivered everything up to `since`
- if u64::from(pdu.origin_server_ts) < oldest_sticky_ts
- || (!initial && count <= PduCount::Normal(since))
- {
- break;
- }
-
let PduCount::Normal(count) = count else {
continue;
};
+ if count > next_batch {
+ continue;
+ }
+
+ // Nothing older than this can still be sticky, and everything up to
+ // `since` has already been delivered
+ if u64::from(pdu.origin_server_ts) < oldest_sticky_ts
+ || since.is_some_and(|since| count <= since)
+ {
+ break;
+ }
+
let is_sticky = pdu
.sticky
.as_deref()
@@ -1177,38 +1179,26 @@ async fn collect_sticky_events(
continue;
}
- if count > since {
- stream.push((count, room_id.clone(), pdu));
- } else {
- backlog.push((room_id.clone(), pdu));
- }
+ pending.push((count, pdu));
}
- }
- stream.sort_by_key(|(count, ..)| *count);
- let mut response = sync_events::v5::response::StickyEvents::default();
+ pending.reverse();
+ let truncated = pending.len() > limit;
+ let mut last_count = next_batch;
+ for (count, pdu) in pending.into_iter().take(limit) {
+ push_sticky_event(services, &mut response, sender_user, room_id.clone(), pdu).await;
+ last_count = count;
+ }
- // MSC4480 lets us ignore the limit for a newly visible room's backlog
- for (room_id, pdu) in backlog {
- push_sticky_event(services, &mut response, sender_user, room_id, pdu).await;
+ delivered.insert(room_id.clone(), if truncated { last_count } else { next_batch });
}
- let mut next_batch = None;
- for (count, room_id, pdu) in stream.into_iter().take(limit) {
- push_sticky_event(services, &mut response, sender_user, room_id, pdu).await;
- next_batch = Some(count);
- }
-
- if !response.rooms.is_empty() {
- response.next_batch = Some(next_batch.unwrap_or(since).to_string());
- }
-
- Ok(response)
+ (response, delivered)
}
async fn push_sticky_event(
services: &Services,
- response: &mut sync_events::v5::response::StickyEvents,
+ response: &mut sync_events::msc4186::response::StickyEvents,
sender_user: &UserId,
room_id: OwnedRoomId,
mut pdu: PduEvent,
@@ -1275,12 +1265,12 @@ async fn collect_required_state(
async fn collect_typing_events(
services: &Services,
sender_user: &UserId,
- body: &sync_events::v5::Request,
+ body: &sync_events::msc4186::Request,
todo_rooms: &TodoRooms,
known_room_updates: &KnownRoomUpdates,
-) -> Result {
+) -> Result {
if !body.extensions.typing.enabled.unwrap_or(false) {
- return Ok(sync_events::v5::response::Typing::default());
+ return Ok(sync_events::msc4186::response::Typing::default());
}
let typing = &body.extensions.typing;
let scope = extension_scope(
@@ -1290,10 +1280,10 @@ async fn collect_typing_events(
known_room_updates,
);
if scope.is_empty() {
- return Ok(sync_events::v5::response::Typing::default());
+ return Ok(sync_events::msc4186::response::Typing::default());
}
- let mut typing_response = sync_events::v5::response::Typing::default();
+ let mut typing_response = sync_events::msc4186::response::Typing::default();
for (room_id, (_, _, roomsince)) in todo_rooms {
if !scope.contains(room_id) {
continue;
@@ -1373,12 +1363,17 @@ fn extension_scope<'a>(
async fn collect_account_data(
services: &Services,
- (sender_user, _, globalsince, body): (&UserId, &DeviceId, u64, &sync_events::v5::Request),
-) -> sync_events::v5::response::AccountData {
- let mut account_data = sync_events::v5::response::AccountData::default();
+ (sender_user, _, globalsince, body): (
+ &UserId,
+ &DeviceId,
+ u64,
+ &sync_events::msc4186::Request,
+ ),
+) -> sync_events::msc4186::response::AccountData {
+ let mut account_data = sync_events::msc4186::response::AccountData::default();
if !body.extensions.account_data.enabled.unwrap_or(false) {
- return sync_events::v5::response::AccountData::default();
+ return sync_events::msc4186::response::AccountData::default();
}
account_data.global = services
@@ -1413,15 +1408,15 @@ async fn collect_e2ee<'a, Rooms>(
&UserId,
&DeviceId,
u64,
- &sync_events::v5::Request,
+ &sync_events::msc4186::Request,
),
all_joined_rooms: Rooms,
-) -> Result
+) -> Result
where
Rooms: Iterator
- + Send + 'a,
{
- if !body.extensions.e2ee.enabled.unwrap_or(false) {
- return Ok(sync_events::v5::response::E2EE::default());
+ if !body.extensions.e2ee.enabled {
+ return Ok(sync_events::msc4186::response::E2EE::default());
}
let mut left_encrypted_users = HashSet::new(); // Users that have left any encrypted rooms the sender was in
let mut device_list_changes = HashSet::new();
@@ -1608,7 +1603,7 @@ where
}
}
- Ok(assign!(sync_events::v5::response::E2EE::default(), {
+ Ok(assign!(sync_events::msc4186::response::E2EE::default(), {
device_unused_fallback_key_types: None,
device_one_time_keys_count: services
@@ -1627,12 +1622,12 @@ async fn collect_to_device(
services: &Services,
(sender_user, sender_device, globalsince, body): SyncInfo<'_>,
next_batch: u64,
-) -> Option {
- if !body.extensions.to_device.enabled.unwrap_or(false) {
+) -> Option {
+ if !body.extensions.to_device.enabled {
return None;
}
- Some(assign!(sync_events::v5::response::ToDevice::default(), {
+ Some(assign!(sync_events::msc4186::response::ToDevice::default(), {
next_batch: next_batch.to_string(),
events: services
.users
@@ -1643,9 +1638,9 @@ async fn collect_to_device(
}))
}
-async fn collect_receipts(_services: &Services) -> sync_events::v5::response::Receipts {
+async fn collect_receipts(_services: &Services) -> sync_events::msc4186::response::Receipts {
// TODO: get explicitly requested read receipts
- sync_events::v5::response::Receipts::default()
+ sync_events::msc4186::response::Receipts::default()
}
#[cfg(test)]
@@ -1658,23 +1653,25 @@ mod tests {
fn custom_room_type() -> RoomTypeFilter { RoomTypeFilter::from(Some("com.example")) }
- fn response() -> sync_events::v5::Response { sync_events::v5::Response::new("1".to_owned()) }
+ fn response() -> sync_events::msc4186::Response {
+ sync_events::msc4186::Response::new("1".to_owned())
+ }
- fn typing_scope_request() -> sync_events::v5::Request {
- let mut request = sync_events::v5::Request::new();
+ fn typing_scope_request() -> sync_events::msc4186::Request {
+ let mut request = sync_events::msc4186::Request::new();
request
.lists
- .insert("first".to_owned(), sync_events::v5::request::List::default());
+ .insert("first".to_owned(), sync_events::msc4186::request::List::default());
request
.lists
- .insert("second".to_owned(), sync_events::v5::request::List::default());
+ .insert("second".to_owned(), sync_events::msc4186::request::List::default());
request.room_subscriptions.insert(
owned_room_id!("!subscription-a:example.com"),
- sync_events::v5::request::RoomSubscription::default(),
+ sync_events::msc4186::request::RoomSubscription::default(),
);
request.room_subscriptions.insert(
owned_room_id!("!subscription-b:example.com"),
- sync_events::v5::request::RoomSubscription::default(),
+ sync_events::msc4186::request::RoomSubscription::default(),
);
request
}
@@ -1768,9 +1765,10 @@ mod tests {
#[test]
fn a_room_with_no_events_is_still_empty() {
let mut response = response();
- response
- .rooms
- .insert(owned_room_id!("!a:example.com"), sync_events::v5::response::Room::default());
+ response.rooms.insert(
+ owned_room_id!("!a:example.com"),
+ sync_events::msc4186::response::Room::default(),
+ );
assert!(response_is_empty(&response));
}
@@ -1781,7 +1779,7 @@ mod tests {
let mut response = response();
response
.rooms
- .insert(room_id.to_owned(), sync_events::v5::response::Room::default());
+ .insert(room_id.to_owned(), sync_events::msc4186::response::Room::default());
response
.extensions
.receipts
@@ -1846,7 +1844,7 @@ mod tests {
#[test]
fn to_device_without_events_is_empty() {
let mut response = response();
- response.extensions.to_device = Some(sync_events::v5::response::ToDevice::default());
+ response.extensions.to_device = Some(sync_events::msc4186::response::ToDevice::default());
assert!(response_is_empty(&response));
}
diff --git a/src/api/client/unversioned.rs b/src/api/client/unversioned.rs
index 814ee0d9e..39862673b 100644
--- a/src/api/client/unversioned.rs
+++ b/src/api/client/unversioned.rs
@@ -27,12 +27,7 @@ pub(crate) async fn get_supported_versions_route(
State(services): State,
_body: Ruma,
) -> Result {
- let mut unstable_features = unstable_features();
-
- if services.config.allow_sticky_events {
- // sticky events (https://github.com/matrix-org/matrix-spec-proposals/pull/4354)
- unstable_features.insert("org.matrix.msc4354".to_owned(), true);
- }
+ let unstable_features = unstable_features(&services.config.experiments);
Ok(assign!(get_supported_versions::Response::new(versions()), {
unstable_features
@@ -64,7 +59,7 @@ pub(crate) async fn continuwuity_local_user_count(
.stream_local_users()
.filter_map(async |user_id| {
if !services.users.status(&user_id).await.is_active()
- || services.appservice.is_exclusive_user_id(&user_id).await
+ || services.appservice.is_exclusive_user_id(&user_id)
{
None
} else {
diff --git a/src/api/client/user_directory.rs b/src/api/client/user_directory.rs
index 7d8a9a9c4..a8eb613d6 100644
--- a/src/api/client/user_directory.rs
+++ b/src/api/client/user_directory.rs
@@ -5,9 +5,7 @@ use conduwuit::{
};
use futures::{FutureExt, StreamExt, pin_mut};
use ruma::{
- api::client::user_directory::search_users::{self},
- assign,
- events::room::join_rules::JoinRule,
+ api::client::user_directory::search_users, assign, events::room::join_rules::JoinRule,
};
use crate::Ruma;
diff --git a/src/api/client/well_known.rs b/src/api/client/well_known.rs
index 749571f99..9e2552307 100644
--- a/src/api/client/well_known.rs
+++ b/src/api/client/well_known.rs
@@ -43,9 +43,9 @@ pub(crate) async fn well_known_client(
/// homeserver, implementing MSC4143.
pub(crate) async fn get_rtc_transports(
State(services): State,
- _body: Ruma,
-) -> Result {
- Ok(ruma::api::client::rtc::transports::v1::Response::new(
+ _body: Ruma,
+) -> Result {
+ Ok(ruma::api::client::rtc::transports::msc4143::Response::new(
services.config.matrix_rtc.foci.clone(),
))
}
diff --git a/src/api/mod.rs b/src/api/mod.rs
index c2e71ba8c..df050e7be 100644
--- a/src/api/mod.rs
+++ b/src/api/mod.rs
@@ -16,6 +16,3 @@ pub mod client_ip;
pub mod admin;
pub(crate) use self::router::{Ruma, RumaResponse, State};
-
-conduwuit::mod_ctor! {}
-conduwuit::mod_dtor! {}
diff --git a/src/api/router.rs b/src/api/router.rs
index ac0a2267b..e966939ba 100644
--- a/src/api/router.rs
+++ b/src/api/router.rs
@@ -8,9 +8,9 @@ use std::str::FromStr;
use axum::{
Router,
response::{IntoResponse, Redirect},
- routing::{any, get, post},
+ routing::{any, get},
};
-use conduwuit::err;
+use conduwuit::{config::experiments::ToggledExperiment, err};
pub(super) use conduwuit_service::state::State;
use http::{Uri, uri};
@@ -52,6 +52,7 @@ pub fn build(router: Router, state: State) -> Router {
.ruma_route(&client::set_pushrule_actions_route)
.ruma_route(&client::delete_pushrule_route)
.ruma_route(&client::get_room_event_route)
+ .ruma_route(&client::get_event_by_timestamp_route)
.ruma_route(&client::get_room_aliases_route)
.ruma_route(&client::get_filter_route)
.ruma_route(&client::create_filter_route)
@@ -162,10 +163,6 @@ pub fn build(router: Router, state: State) -> Router {
.ruma_route(&client::update_device_route)
.ruma_route(&client::delete_device_route)
.ruma_route(&client::delete_devices_route)
- .ruma_route(&client::put_dehydrated_device_route)
- .ruma_route(&client::delete_dehydrated_device_route)
- .ruma_route(&client::get_dehydrated_device_route)
- .ruma_route(&client::get_dehydrated_events_route)
.ruma_route(&client::get_tags_route)
.ruma_route(&client::update_tag_route)
.ruma_route(&client::delete_tag_route)
@@ -193,11 +190,26 @@ pub fn build(router: Router, state: State) -> Router {
.ruma_route(&client::well_known_policy_server)
.ruma_route(&client::get_rtc_transports)
.ruma_route(&client::room_initial_sync_route)
+ .ruma_route(&client::discover_rendezvous_route)
+ .ruma_route(&client::create_rendezvous_session_route)
+ .ruma_route(&client::update_rendezvous_session_route)
+ .ruma_route(&client::get_rendezvous_session_route)
+ .ruma_route(&client::delete_rendezvous_session_route)
.ruma_route(&client::get_authorization_server_metadata_route)
.merge(client::oauth::router(state))
.route("/_continuwuity/server_version", get(client::continuwuity_server_version))
.ruma_route(&admin::rooms::ban::ban_room)
.ruma_route(&admin::rooms::list::list_rooms);
+ if config.experiments.msc3814.is_enabled() {
+ router = router
+ .ruma_route(&client::put_dehydrated_device_route)
+ .ruma_route(&client::delete_dehydrated_device_route)
+ .ruma_route(&client::get_dehydrated_device_route)
+ .ruma_route(&client::get_dehydrated_events_route);
+ }
+ if config.experiments.msc4560.is_enabled() {
+ router = router.ruma_route(&client::get_stripped_state_route);
+ }
if config.allow_prometheus_metrics {
router = router.route("/_continuwuity/metrics", get(client::continuwuity_metrics));
@@ -236,6 +248,9 @@ pub fn build(router: Router, state: State) -> Router {
.ruma_route(&server::get_content_route)
.ruma_route(&server::get_content_thumbnail_route)
.route("/_continuwuity/local_user_count", get(client::continuwuity_local_user_count));
+ if config.experiments.msc4560.is_enabled() {
+ router = router.ruma_route(&server::get_stripped_state_route);
+ }
} else {
router = router
.route("/_matrix/federation/{*path}", any(federation_disabled))
@@ -248,45 +263,16 @@ pub fn build(router: Router, state: State) -> Router {
// and other functionality will continue to work
router = router.ruma_route(&server::get_openid_userinfo_route);
- if config.allow_legacy_media {
- router = router
- .ruma_route(&client::get_media_config_legacy_route)
- .ruma_route(&client::get_media_preview_legacy_route)
- .ruma_route(&client::get_content_legacy_route)
- .ruma_route(&client::get_content_as_filename_legacy_route)
- .ruma_route(&client::get_content_thumbnail_legacy_route)
- .route("/_matrix/media/v1/config", get(client::get_media_config_legacy_legacy_route))
- .route("/_matrix/media/v1/upload", post(client::create_content_legacy_route))
- .route(
- "/_matrix/media/v1/preview_url",
- get(client::get_media_preview_legacy_legacy_route),
- )
- .route(
- "/_matrix/media/v1/download/{server_name}/{media_id}",
- get(client::get_content_legacy_legacy_route),
- )
- .route(
- "/_matrix/media/v1/download/{server_name}/{media_id}/{file_name}",
- get(client::get_content_as_filename_legacy_legacy_route),
- )
- .route(
- "/_matrix/media/v1/thumbnail/{server_name}/{media_id}",
- get(client::get_content_thumbnail_legacy_legacy_route),
- );
- } else {
- router = router
- .route("/_matrix/media/v1/{*path}", any(legacy_media_disabled))
- .route("/_matrix/media/v3/config", any(legacy_media_disabled))
- .route("/_matrix/media/v3/download/{*path}", any(legacy_media_disabled))
- .route("/_matrix/media/v3/thumbnail/{*path}", any(legacy_media_disabled))
- .route("/_matrix/media/v3/preview_url", any(redirect_legacy_preview))
- .route("/_matrix/media/r0/config", any(legacy_media_disabled))
- .route("/_matrix/media/r0/download/{*path}", any(legacy_media_disabled))
- .route("/_matrix/media/r0/thumbnail/{*path}", any(legacy_media_disabled))
- .route("/_matrix/media/r0/preview_url", any(redirect_legacy_preview));
- }
-
router
+ .route("/_matrix/media/v1/{*path}", any(legacy_media_disabled))
+ .route("/_matrix/media/v3/config", any(legacy_media_disabled))
+ .route("/_matrix/media/v3/download/{*path}", any(legacy_media_disabled))
+ .route("/_matrix/media/v3/thumbnail/{*path}", any(legacy_media_disabled))
+ .route("/_matrix/media/v3/preview_url", any(redirect_legacy_preview))
+ .route("/_matrix/media/r0/config", any(legacy_media_disabled))
+ .route("/_matrix/media/r0/download/{*path}", any(legacy_media_disabled))
+ .route("/_matrix/media/r0/thumbnail/{*path}", any(legacy_media_disabled))
+ .route("/_matrix/media/r0/preview_url", any(redirect_legacy_preview))
}
async fn redirect_legacy_preview(uri: Uri) -> impl IntoResponse {
@@ -307,7 +293,7 @@ async fn redirect_legacy_preview(uri: Uri) -> impl IntoResponse {
}
async fn legacy_media_disabled() -> impl IntoResponse {
- err!(Request(Forbidden("Unauthenticated media is disabled.")))
+ err!(Request(NotFound("Unauthenticated media is disabled.")))
}
async fn federation_disabled() -> impl IntoResponse {
diff --git a/src/api/router/args.rs b/src/api/router/args.rs
index beee4a3d0..cc18438c0 100644
--- a/src/api/router/args.rs
+++ b/src/api/router/args.rs
@@ -1,18 +1,21 @@
-use std::ops::Deref;
+use std::{
+ net::{IpAddr, Ipv4Addr},
+ ops::Deref,
+};
use axum::{
RequestExt, RequestPartsExt,
body::Body,
extract::{FromRequest, Path, Query},
};
-use conduwuit::{Error, Result, err};
+use conduwuit::{Error, Result, err, error};
use ruma::{
CanonicalJsonObject,
api::{IncomingRequest, IncomingRequestExt, auth_scheme::AuthScheme},
};
use serde::Deserialize;
-use crate::{State, router::auth::CheckAuth};
+use crate::{State, client_ip::ClientIp, router::auth::CheckAuth};
/// Query parameters needed to authenticate requests
#[derive(Deserialize)]
@@ -87,6 +90,11 @@ where
let Path(path): Path> = parts.extract().await?;
let borrowed_path: Vec<_> = path.iter().map(String::as_str).collect();
let Query(auth_query): Query = parts.extract().await?;
+ let ClientIp(ip) = parts
+ .extract_with_state(services)
+ .await
+ .inspect_err(|err| error!("Failed to extract client IP: {err:?}"))
+ .unwrap_or(ClientIp(IpAddr::V4(Ipv4Addr::UNSPECIFIED)));
// Assemble a new request from the read body and parts
let request = hyper::Request::from_parts(parts, body.as_ref());
@@ -102,7 +110,8 @@ where
})?;
let identity =
- R::Authentication::check::(services, &request, authentication, auth_query).await?;
+ R::Authentication::check::(services, &request, ip, authentication, auth_query)
+ .await?;
// Deserialize the body
let body = R::try_from_http_request(request, &borrowed_path)
diff --git a/src/api/router/auth.rs b/src/api/router/auth.rs
index cac270ee0..0569ebfbf 100644
--- a/src/api/router/auth.rs
+++ b/src/api/router/auth.rs
@@ -1,10 +1,13 @@
use std::{
any::{Any, TypeId},
collections::BTreeSet,
+ net::IpAddr,
};
use conduwuit::{
- Err, Error, Result, err,
+ Err, Error, Result,
+ config::experiments::ToggledExperiment,
+ err,
utils::{IterStream, millis_since_unix_epoch},
};
use http::StatusCode;
@@ -18,7 +21,10 @@ use ruma::{
AuthScheme, NoAccessToken, NoAuthentication,
},
client,
- error::{ErrorKind, InsufficientUserAuthenticationErrorData, UnknownTokenErrorData},
+ error::{
+ ErrorKind, InsufficientUserAuthenticationErrorData, LimitExceededErrorData,
+ UnknownTokenErrorData,
+ },
federation::authentication::ServerSignatures,
},
assign,
@@ -90,6 +96,7 @@ pub(crate) trait CheckAuth: AuthScheme {
fn check + Any>(
services: &Services,
incoming_request: &hyper::Request<&[u8]>,
+ request_ip: IpAddr,
authentication: Self::Output,
query: AuthQueryParams,
) -> impl Future