diff --git a/.cargo/audit.toml b/.cargo/audit.toml deleted file mode 100644 index 37148cfb..00000000 --- a/.cargo/audit.toml +++ /dev/null @@ -1,27 +0,0 @@ -[advisories] -ignore = ["RUSTSEC-2024-0436", "RUSTSEC-2025-0014"] # advisory IDs to ignore e.g. ["RUSTSEC-2019-0001", ...] -informational_warnings = [] # warn for categories of informational advisories -severity_threshold = "none" # CVSS severity ("none", "low", "medium", "high", "critical") - -# Advisory Database Configuration -[database] -path = "~/.cargo/advisory-db" # Path where advisory git repo will be cloned -url = "https://github.com/RustSec/advisory-db.git" # URL to git repo -fetch = true # Perform a `git fetch` before auditing (default: true) -stale = false # Allow stale advisory DB (i.e. no commits for 90 days, default: false) - -# Output Configuration -[output] -deny = ["warnings", "unmaintained", "unsound", "yanked"] # exit on error if unmaintained dependencies are found -format = "terminal" # "terminal" (human readable report) or "json" -quiet = false # Only print information on error -show_tree = true # Show inverse dependency trees along with advisories (default: true) - -# Target Configuration -[target] -arch = ["x86_64", "aarch64"] # Ignore advisories for CPU architectures other than these -os = ["linux", "windows", "macos"] # Ignore advisories for operating systems other than these - -[yanked] -enabled = true # Warn for yanked crates in Cargo.lock (default: true) -update_index = true # Auto-update the crates.io index (default: true) diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 35049cbc..00000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[alias] -xtask = "run --package xtask --" diff --git a/.dockerignore b/.dockerignore index 5054844f..35d35e1b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,9 +1,9 @@ # Local build and dev artifacts -target/ +target +tests # Docker files Dockerfile* -docker/ # IDE files .vscode @@ -11,11 +11,10 @@ docker/ *.iml # Git folder -# .git +.git .gitea .gitlab .github -.forgejo # Dot files .env diff --git a/.editorconfig b/.editorconfig index 95843e73..dba82b95 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,22 +11,5 @@ indent_style = space insert_final_newline = true max_line_length = 120 -[*.{md,txt}] -indent_style = space -indent_size = 4 -max_line_length = 80 - [*.nix] -indent_size = 2 - -[*.rs] -indent_style = tab -max_line_length = 98 - -[*.yml] -indent_size = 2 -indent_style = space - -[*.json] -indent_size = 4 -indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.envrc b/.envrc index 172993c4..e080e228 100644 --- a/.envrc +++ b/.envrc @@ -1,9 +1,7 @@ #!/usr/bin/env bash -dotenv_if_exists - -if [ -f /etc/os-release ] && grep -q '^ID=nixos' /etc/os-release; then - use flake ".#${DIRENV_DEVSHELL:-default}" -fi +use flake PATH_add bin + +dotenv_if_exists diff --git a/.forgejo/actions/detect-runner-os/action.yml b/.forgejo/actions/detect-runner-os/action.yml deleted file mode 100644 index be8f9b0a..00000000 --- a/.forgejo/actions/detect-runner-os/action.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: detect-runner-os -description: | - Detect the actual OS name and version of the runner. - Provides separate outputs for name, version, and a combined slug. - -outputs: - name: - description: 'OS name (e.g. Ubuntu, Debian)' - value: ${{ steps.detect.outputs.name }} - version: - description: 'OS version (e.g. 22.04, 11)' - value: ${{ steps.detect.outputs.version }} - slug: - description: 'Combined OS slug (e.g. Ubuntu-22.04)' - value: ${{ steps.detect.outputs.slug }} - node_major: - description: 'Major version of Node.js if available (e.g. 22)' - value: ${{ steps.detect.outputs.node_major }} - node_version: - description: 'Full Node.js version if available (e.g. 22.19.0)' - value: ${{ steps.detect.outputs.node_version }} - -runs: - using: composite - steps: - - name: Detect runner OS - id: detect - shell: bash - run: | - # Detect OS version (try lsb_release first, fall back to /etc/os-release) - OS_VERSION=$(lsb_release -rs 2>/dev/null || grep VERSION_ID /etc/os-release | cut -d'"' -f2) - - # Detect OS name and capitalise (try lsb_release first, fall back to /etc/os-release) - OS_NAME=$(lsb_release -is 2>/dev/null || grep "^ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"' | sed 's/\b\(.\)/\u\1/g') - - # Create combined slug - OS_SLUG="${OS_NAME}-${OS_VERSION}" - - # Detect Node.js version if available - if command -v node >/dev/null 2>&1; then - NODE_VERSION=$(node --version | sed 's/v//') - NODE_MAJOR=$(echo $NODE_VERSION | cut -d. -f1) - echo "node_version=${NODE_VERSION}" >> $GITHUB_OUTPUT - echo "node_major=${NODE_MAJOR}" >> $GITHUB_OUTPUT - echo "๐Ÿ” Detected Node.js: v${NODE_VERSION}" - else - echo "node_version=" >> $GITHUB_OUTPUT - echo "node_major=" >> $GITHUB_OUTPUT - echo "๐Ÿ” Node.js not found" - fi - - # Set OS outputs - echo "name=${OS_NAME}" >> $GITHUB_OUTPUT - echo "version=${OS_VERSION}" >> $GITHUB_OUTPUT - echo "slug=${OS_SLUG}" >> $GITHUB_OUTPUT - - # Log detection results - echo "๐Ÿ” Detected Runner OS: ${OS_NAME} ${OS_VERSION}" diff --git a/.forgejo/actions/rust-toolchain/action.yml b/.forgejo/actions/rust-toolchain/action.yml deleted file mode 100644 index ae5cfcee..00000000 --- a/.forgejo/actions/rust-toolchain/action.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: rust-toolchain -description: | - Install a Rust toolchain using rustup. - See https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification - for more information about toolchains. -inputs: - toolchain: - description: | - Rust toolchain name. - See https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification - required: false - target: - description: Target triple to install for this toolchain - required: false - components: - description: Space-separated list of components to be additionally installed for a new toolchain - required: false -outputs: - rustc_version: - description: The rustc version installed - value: ${{ steps.rustc-version.outputs.version }} - rustup_version: - description: The rustup version installed - value: ${{ steps.rustup-version.outputs.version }} - -runs: - using: composite - steps: - - name: Check if rustup is already installed - shell: bash - id: rustup-version - run: | - echo "version=$(rustup --version)" >> $GITHUB_OUTPUT - - name: Cache rustup toolchains - if: steps.rustup-version.outputs.version == '' - uses: actions/cache@v3 - with: - path: | - ~/.rustup - !~/.rustup/tmp - !~/.rustup/downloads - # Requires repo to be cloned if toolchain is not specified - key: ${{ runner.os }}-rustup-${{ inputs.toolchain || hashFiles('**/rust-toolchain.toml') }} - - name: Install Rust toolchain - if: steps.rustup-version.outputs.version == '' - shell: bash - run: | - if ! command -v rustup &> /dev/null ; then - curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y - echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH - fi - - shell: bash - run: | - set -x - ${{ inputs.toolchain && format('rustup override set {0}', inputs.toolchain) }} - ${{ inputs.target && format('rustup target add {0}', inputs.target) }} - ${{ inputs.components && format('rustup component add {0}', inputs.components) }} - cargo --version - rustc --version - - id: rustc-version - shell: bash - run: | - echo "version=$(rustc --version)" >> $GITHUB_OUTPUT diff --git a/.forgejo/actions/sccache/action.yml b/.forgejo/actions/sccache/action.yml deleted file mode 100644 index b2441109..00000000 --- a/.forgejo/actions/sccache/action.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: sccache -description: | - Install sccache for caching builds in GitHub Actions. - - -runs: - using: composite - steps: - - name: Install sccache - uses: https://git.tomfos.tr/tom/sccache-action@v1 - - name: Configure sccache - uses: https://github.com/actions/github-script@v7 - with: - script: | - core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - shell: bash - run: | - echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV - echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV - echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV - echo "CMAKE_CUDA_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV diff --git a/.forgejo/actions/setup-llvm-with-apt/action.yml b/.forgejo/actions/setup-llvm-with-apt/action.yml deleted file mode 100644 index eb421e4f..00000000 --- a/.forgejo/actions/setup-llvm-with-apt/action.yml +++ /dev/null @@ -1,167 +0,0 @@ -name: setup-llvm-with-apt -description: | - Set up LLVM toolchain with APT package management and smart caching. - Supports cross-compilation architectures and additional package installation. - - Creates symlinks in /usr/bin: clang, clang++, lld, llvm-ar, llvm-ranlib - -inputs: - dpkg-arch: - description: 'Debian architecture for cross-compilation (e.g. arm64)' - required: false - default: '' - extra-packages: - description: 'Additional APT packages to install (space-separated)' - required: false - default: '' - llvm-version: - description: 'LLVM version to install' - required: false - default: '20' - -outputs: - llvm-version: - description: 'Installed LLVM version' - value: ${{ steps.configure.outputs.version }} - -runs: - using: composite - steps: - - name: Detect runner OS - id: runner-os - uses: ./.forgejo/actions/detect-runner-os - - - name: Configure cross-compilation architecture - if: inputs.dpkg-arch != '' - shell: bash - run: | - echo "๐Ÿ—๏ธ Adding ${{ inputs.dpkg-arch }} architecture" - sudo dpkg --add-architecture ${{ inputs.dpkg-arch }} - - # Restrict default sources to amd64 - sudo sed -i 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list - sudo sed -i 's/^deb https/deb [arch=amd64] https/g' /etc/apt/sources.list - - # Add ports sources for foreign architecture - sudo tee /etc/apt/sources.list.d/${{ inputs.dpkg-arch }}.list > /dev/null <> $GITHUB_OUTPUT - else - echo "๐Ÿ“ฆ LLVM ${{ inputs.llvm-version }} not found or incomplete - installing..." - - echo "::group::๐Ÿ”ง Installing LLVM ${{ inputs.llvm-version }}" - wget -O - https://apt.llvm.org/llvm.sh | bash -s -- ${{ inputs.llvm-version }} - echo "::endgroup::" - - if [ ! -f "/usr/bin/clang-${{ inputs.llvm-version }}" ]; then - echo "โŒ Failed to install LLVM ${{ inputs.llvm-version }}" - exit 1 - fi - - echo "โœ… Installed LLVM ${{ inputs.llvm-version }}" - echo "needs-install=true" >> $GITHUB_OUTPUT - fi - - - name: Prepare for additional packages - if: inputs.extra-packages != '' - shell: bash - run: | - # Update APT if LLVM was cached (installer script already does apt-get update) - if [[ "${{ steps.llvm-setup.outputs.needs-install }}" != "true" ]]; then - echo "::group::๐Ÿ“ฆ Running apt-get update (LLVM cached, extra packages needed)" - sudo apt-get update - echo "::endgroup::" - fi - echo "::group::๐Ÿ“ฆ Installing additional packages" - - - name: Install additional packages - if: inputs.extra-packages != '' - uses: https://github.com/awalsh128/cache-apt-pkgs-action@latest - with: - packages: ${{ inputs.extra-packages }} - version: 1.0 - - - name: End package installation group - if: inputs.extra-packages != '' - shell: bash - run: echo "::endgroup::" - - - name: Configure LLVM environment - id: configure - shell: bash - run: | - echo "::group::๐Ÿ”ง Configuring LLVM ${{ inputs.llvm-version }} environment" - - # Create symlinks - sudo ln -sf "/usr/bin/clang-${{ inputs.llvm-version }}" /usr/bin/clang - sudo ln -sf "/usr/bin/clang++-${{ inputs.llvm-version }}" /usr/bin/clang++ - sudo ln -sf "/usr/bin/lld-${{ inputs.llvm-version }}" /usr/bin/lld - sudo ln -sf "/usr/bin/llvm-ar-${{ inputs.llvm-version }}" /usr/bin/llvm-ar - sudo ln -sf "/usr/bin/llvm-ranlib-${{ inputs.llvm-version }}" /usr/bin/llvm-ranlib - echo " โœ“ Created symlinks" - - # Setup library paths - LLVM_LIB_PATH="/usr/lib/llvm-${{ inputs.llvm-version }}/lib" - if [ -d "$LLVM_LIB_PATH" ]; then - echo "LD_LIBRARY_PATH=${LLVM_LIB_PATH}:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV - echo "LIBCLANG_PATH=${LLVM_LIB_PATH}" >> $GITHUB_ENV - - echo "$LLVM_LIB_PATH" | sudo tee "/etc/ld.so.conf.d/llvm-${{ inputs.llvm-version }}.conf" > /dev/null - sudo ldconfig - echo " โœ“ Configured library paths" - else - # Fallback to standard library location - if [ -d "/usr/lib/x86_64-linux-gnu" ]; then - echo "LIBCLANG_PATH=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV - echo " โœ“ Using fallback library path" - fi - fi - - # Set output - echo "version=${{ inputs.llvm-version }}" >> $GITHUB_OUTPUT - echo "::endgroup::" - echo "โœ… LLVM ready: $(clang --version | head -1)" diff --git a/.forgejo/actions/setup-rust/action.yml b/.forgejo/actions/setup-rust/action.yml deleted file mode 100644 index a8736a75..00000000 --- a/.forgejo/actions/setup-rust/action.yml +++ /dev/null @@ -1,226 +0,0 @@ -name: setup-rust -description: | - Set up Rust toolchain with sccache for compilation caching. - Respects rust-toolchain.toml by default or accepts explicit version override. - -inputs: - cache-key-suffix: - description: 'Optional suffix for cache keys (e.g. platform identifier)' - required: false - default: '' - rust-components: - description: 'Additional Rust components to install (space-separated)' - required: false - default: '' - rust-target: - description: 'Rust target triple (e.g. x86_64-unknown-linux-gnu)' - required: false - default: '' - rust-version: - description: 'Rust version to install (e.g. nightly). Defaults to 1.87.0' - required: false - default: '1.87.0' - sccache-cache-limit: - description: 'Maximum size limit for sccache local cache (e.g. 2G, 500M)' - required: false - default: '2G' - github-token: - description: 'GitHub token for downloading sccache from GitHub releases' - required: false - default: '' - -outputs: - rust-version: - description: 'Installed Rust version' - value: ${{ steps.rust-setup.outputs.version }} - -runs: - using: composite - steps: - - name: Detect runner OS - id: runner-os - uses: ./.forgejo/actions/detect-runner-os - - - name: Configure Cargo environment - shell: bash - run: | - # Use workspace-relative paths for better control and consistency - echo "CARGO_HOME=${{ github.workspace }}/.cargo" >> $GITHUB_ENV - echo "CARGO_TARGET_DIR=${{ github.workspace }}/target" >> $GITHUB_ENV - echo "SCCACHE_DIR=${{ github.workspace }}/.sccache" >> $GITHUB_ENV - echo "RUSTUP_HOME=${{ github.workspace }}/.rustup" >> $GITHUB_ENV - - # Limit binstall resolution timeout to avoid GitHub rate limit delays - echo "BINSTALL_MAXIMUM_RESOLUTION_TIMEOUT=10" >> $GITHUB_ENV - - # Ensure directories exist for first run - mkdir -p "${{ github.workspace }}/.cargo" - mkdir -p "${{ github.workspace }}/.sccache" - mkdir -p "${{ github.workspace }}/target" - mkdir -p "${{ github.workspace }}/.rustup" - - - name: Start cache restore group - shell: bash - run: echo "::group::๐Ÿ“ฆ Restoring caches (registry, toolchain, build artifacts)" - - - name: Cache Cargo registry and git - id: registry-cache - uses: https://github.com/actions/cache@v4 - with: - path: | - .cargo/registry/index - .cargo/registry/cache - .cargo/git/db - # Registry cache saved per workflow, restored from any workflow's cache - # Each workflow maintains its own registry that accumulates its needed crates - key: cargo-registry-${{ steps.runner-os.outputs.slug }}-${{ github.workflow }} - restore-keys: | - cargo-registry-${{ steps.runner-os.outputs.slug }}- - - - name: Cache toolchain binaries - id: toolchain-cache - uses: https://github.com/actions/cache@v4 - with: - path: | - .cargo/bin - .rustup/toolchains - .rustup/update-hashes - # Shared toolchain cache across all Rust versions - key: toolchain-${{ steps.runner-os.outputs.slug }} - - - - name: Setup sccache - uses: https://git.tomfos.tr/tom/sccache-action@v1 - - - name: Cache build artifacts - id: build-cache - uses: https://github.com/actions/cache@v4 - with: - path: | - target/**/deps - !target/**/deps/*.rlib - target/**/build - target/**/.fingerprint - target/**/incremental - target/**/*.d - /timelord/ - # Build artifacts - cache per code change, restore from deps when code changes - key: >- - build-${{ steps.runner-os.outputs.slug }}-${{ inputs.rust-version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}-${{ hashFiles('rust-toolchain.toml', '**/Cargo.lock') }}-${{ hashFiles('**/*.rs', '**/Cargo.toml') }} - restore-keys: | - build-${{ steps.runner-os.outputs.slug }}-${{ inputs.rust-version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}-${{ hashFiles('rust-toolchain.toml', '**/Cargo.lock') }}- - - - name: End cache restore group - shell: bash - run: echo "::endgroup::" - - - name: Setup Rust toolchain - shell: bash - run: | - # Install rustup if not already cached - if ! command -v rustup &> /dev/null; then - echo "::group::๐Ÿ“ฆ Installing rustup" - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain none - source "$CARGO_HOME/env" - echo "::endgroup::" - else - echo "โœ… rustup already available" - fi - - # Setup the appropriate Rust version - if [[ -n "${{ inputs.rust-version }}" ]]; then - echo "::group::๐Ÿ“ฆ Setting up Rust ${{ inputs.rust-version }}" - # Set override first to prevent rust-toolchain.toml from auto-installing - rustup override set ${{ inputs.rust-version }} 2>/dev/null || true - - # Check if we need to install/update the toolchain - if rustup toolchain list | grep -q "^${{ inputs.rust-version }}-"; then - rustup update ${{ inputs.rust-version }} - else - rustup toolchain install ${{ inputs.rust-version }} --profile minimal -c cargo,clippy,rustfmt - fi - else - echo "::group::๐Ÿ“ฆ Setting up Rust from rust-toolchain.toml" - rustup show - fi - echo "::endgroup::" - - - name: Configure PATH and install tools - shell: bash - env: - GITHUB_TOKEN: ${{ inputs.github-token }} - run: | - # Add .cargo/bin to PATH permanently for all subsequent steps - echo "${{ github.workspace }}/.cargo/bin" >> $GITHUB_PATH - - # For this step only, we need to add it to PATH since GITHUB_PATH takes effect in the next step - export PATH="${{ github.workspace }}/.cargo/bin:$PATH" - - # Install cargo-binstall for fast binary installations - if command -v cargo-binstall &> /dev/null; then - echo "โœ… cargo-binstall already available" - else - echo "::group::๐Ÿ“ฆ Installing cargo-binstall" - curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - echo "::endgroup::" - fi - - if command -v prek &> /dev/null; then - echo "โœ… prek already available" - else - echo "::group::๐Ÿ“ฆ Installing prek" - # prek isn't regularly published to crates.io, so we use git source - cargo-binstall -y --no-symlinks --git https://github.com/j178/prek prek - echo "::endgroup::" - fi - - if command -v timelord &> /dev/null; then - echo "โœ… timelord already available" - else - echo "::group::๐Ÿ“ฆ Installing timelord" - cargo-binstall -y --no-symlinks timelord-cli - echo "::endgroup::" - fi - - - name: Configure sccache environment - shell: bash - run: | - echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV - echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV - echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV - echo "CMAKE_CUDA_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV - echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - - # Configure incremental compilation GC - # If we restored from old cache (partial hit), clean up aggressively - if [[ "${{ steps.build-cache.outputs.cache-hit }}" != "true" ]]; then - echo "โ™ป๏ธ Partial cache hit - enabling cache cleanup" - echo "CARGO_INCREMENTAL_GC_THRESHOLD=5" >> $GITHUB_ENV - fi - - - name: Install Rust components - if: inputs.rust-components != '' - shell: bash - run: | - echo "๐Ÿ“ฆ Installing components: ${{ inputs.rust-components }}" - rustup component add ${{ inputs.rust-components }} - - - name: Install Rust target - if: inputs.rust-target != '' - shell: bash - run: | - echo "๐Ÿ“ฆ Installing target: ${{ inputs.rust-target }}" - rustup target add ${{ inputs.rust-target }} - - - name: Output version and summary - id: rust-setup - shell: bash - run: | - RUST_VERSION=$(rustc --version | cut -d' ' -f2) - echo "version=$RUST_VERSION" >> $GITHUB_OUTPUT - - echo "๐Ÿ“‹ Setup complete:" - echo " Rust: $(rustc --version)" - echo " Cargo: $(cargo --version)" - echo " prek: $(prek --version 2>/dev/null || echo 'installed')" - echo " timelord: $(timelord --version 2>/dev/null || echo 'installed')" diff --git a/.forgejo/actions/timelord/action.yml b/.forgejo/actions/timelord/action.yml deleted file mode 100644 index 40c6d0a6..00000000 --- a/.forgejo/actions/timelord/action.yml +++ /dev/null @@ -1,99 +0,0 @@ -name: timelord -description: | - Use timelord to set file timestamps with git-warp-time fallback for cache misses -inputs: - key: - description: | - The key to use for caching the timelord data. - required: false - default: '' - path: - description: | - The path to the directory to be timestamped. - required: false - default: '' - -outputs: - database-path: - description: Path to timelord database - value: '${{ env.TIMELORD_CACHE_PATH }}' - -runs: - using: composite - steps: - - name: Set defaults - shell: bash - run: | - echo "TIMELORD_KEY=${{ inputs.key || format('timelord-v1-{0}-{1}', github.repository, hashFiles('**/*.rs', '**/Cargo.toml', '**/Cargo.lock')) }}" >> $GITHUB_ENV - echo "TIMELORD_PATH=${{ inputs.path || '.' }}" >> $GITHUB_ENV - echo "TIMELORD_CACHE_PATH=$HOME/.cache/timelord" >> $GITHUB_ENV - - - name: Restore binary cache - id: binary-cache - uses: actions/cache/restore@v4 - with: - path: /usr/share/rust/.cargo/bin - key: timelord-binaries-v1 - - - name: Check if binaries need installation - shell: bash - id: check-binaries - run: | - NEED_INSTALL=false - if [ ! -e /usr/share/rust/.cargo/bin/timelord ]; then - echo "timelord-cli not found at /usr/share/rust/.cargo/bin/timelord, needs installation" - NEED_INSTALL=true - fi - if [ ! -e /usr/share/rust/.cargo/bin/git-warp-time ]; then - echo "git-warp-time not found at /usr/share/rust/.cargo/bin/git-warp-time, needs installation" - NEED_INSTALL=true - fi - echo "need-install=$NEED_INSTALL" >> $GITHUB_OUTPUT - - - name: Install timelord-cli and git-warp-time - if: steps.check-binaries.outputs.need-install == 'true' - uses: https://github.com/taiki-e/install-action@v2 - with: - tool: git-warp-time,timelord-cli@3.0.1 - - - name: Save binary cache - if: steps.check-binaries.outputs.need-install == 'true' - uses: actions/cache/save@v4 - with: - path: /usr/share/rust/.cargo/bin - key: timelord-binaries-v1 - - - - name: Restore timelord cache with fallbacks - id: timelord-restore - uses: actions/cache/restore@v4 - with: - path: ${{ env.TIMELORD_CACHE_PATH }} - key: ${{ env.TIMELORD_KEY }} - restore-keys: | - timelord-v1-${{ github.repository }}- - - - name: Initialize timestamps on complete cache miss - if: steps.timelord-restore.outputs.cache-hit != 'true' - shell: bash - run: | - echo "Complete timelord cache miss - running git-warp-time" - git fetch --unshallow - if [ "${{ env.TIMELORD_PATH }}" = "." ]; then - /usr/share/rust/.cargo/bin/git-warp-time --quiet - else - /usr/share/rust/.cargo/bin/git-warp-time --quiet ${{ env.TIMELORD_PATH }} - fi - echo "Git timestamps restored" - - - name: Run timelord sync - shell: bash - run: | - mkdir -p ${{ env.TIMELORD_CACHE_PATH }} - /usr/share/rust/.cargo/bin/timelord sync --source-dir ${{ env.TIMELORD_PATH }} --cache-dir ${{ env.TIMELORD_CACHE_PATH }} - - - name: Save updated timelord cache immediately - uses: actions/cache/save@v4 - with: - path: ${{ env.TIMELORD_CACHE_PATH }} - key: ${{ env.TIMELORD_KEY }} diff --git a/.forgejo/regsync/regsync.yml b/.forgejo/regsync/regsync.yml deleted file mode 100644 index 941c0f93..00000000 --- a/.forgejo/regsync/regsync.yml +++ /dev/null @@ -1,55 +0,0 @@ -version: 1 - -x-source: &source forgejo.ellis.link/continuwuation/continuwuity - -x-tags: - releases: &tags-releases - tags: - allow: - - "latest" - - "v[0-9]+\\.[0-9]+\\.[0-9]+(-[a-z0-9\\.]+)?" - - "v[0-9]+\\.[0-9]+" - - "v[0-9]+" - main: &tags-main - tags: - allow: - - "latest" - - "v[0-9]+\\.[0-9]+\\.[0-9]+(-[a-z0-9\\.]+)?" - - "v[0-9]+\\.[0-9]+" - - "v[0-9]+" - - "main" - commits: &tags-commits - tags: - allow: - - "latest" - - "v[0-9]+\\.[0-9]+\\.[0-9]+(-[a-z0-9\\.]+)?" - - "v[0-9]+\\.[0-9]+" - - "v[0-9]+" - - "main" - - "sha-[a-f0-9]+" - all: &tags-all - tags: - allow: - - ".*" - -# Registry credentials -creds: - - registry: forgejo.ellis.link - user: "{{env \"BUILTIN_REGISTRY_USER\"}}" - pass: "{{env \"BUILTIN_REGISTRY_PASSWORD\"}}" - - registry: registry.gitlab.com - user: "{{env \"GITLAB_USERNAME\"}}" - pass: "{{env \"GITLAB_TOKEN\"}}" - -# Global defaults -defaults: - parallel: 3 - interval: 2h - digestTags: true - -# Sync configuration - each registry gets different image sets -sync: - - source: *source - target: registry.gitlab.com/continuwuity/continuwuity - type: repository - <<: *tags-main diff --git a/.forgejo/workflows/documentation.yml b/.forgejo/workflows/documentation.yml deleted file mode 100644 index 67c8a30c..00000000 --- a/.forgejo/workflows/documentation.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Documentation - -on: - pull_request: - push: - branches: - - main - tags: - - "v*" - workflow_dispatch: - -concurrency: - group: "pages-${{ github.ref }}" - cancel-in-progress: true - -jobs: - docs: - name: Build and Deploy Documentation - runs-on: ubuntu-latest - if: secrets.CLOUDFLARE_API_TOKEN != '' - - steps: - - name: Sync repository - uses: https://github.com/actions/checkout@v4 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Setup mdBook - uses: https://github.com/peaceiris/actions-mdbook@v2 - with: - mdbook-version: "latest" - - - name: Build mdbook - run: mdbook build - - - name: Prepare static files for deployment - run: | - mkdir -p ./public/.well-known/matrix - mkdir -p ./public/.well-known/continuwuity - mkdir -p ./public/schema - # Copy the Matrix .well-known files - cp ./docs/static/server ./public/.well-known/matrix/server - cp ./docs/static/client ./public/.well-known/matrix/client - cp ./docs/static/client ./public/.well-known/matrix/support - cp ./docs/static/announcements.json ./public/.well-known/continuwuity/announcements - cp ./docs/static/announcements.schema.json ./public/schema/announcements.schema.json - # Copy the custom headers file - cp ./docs/static/_headers ./public/_headers - echo "Copied .well-known files and _headers to ./public" - - - name: Detect runner environment - id: runner-env - uses: ./.forgejo/actions/detect-runner-os - - - 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@v4 - with: - node-version: 22 - - - name: Cache npm dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ steps.runner-env.outputs.slug }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ steps.runner-env.outputs.slug }}-node- - - - name: Install dependencies - run: npm install --save-dev wrangler@latest - - - name: Deploy to Cloudflare Pages (Production) - if: github.ref == 'refs/heads/main' && vars.CLOUDFLARE_PROJECT_NAME != '' - uses: https://github.com/cloudflare/wrangler-action@v3 - with: - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - command: pages deploy ./public --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@v3 - with: - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - command: pages deploy ./public --branch="${{ github.head_ref || github.ref_name }}" --commit-dirty=true --project-name="${{ vars.CLOUDFLARE_PROJECT_NAME }}" diff --git a/.forgejo/workflows/element.yml b/.forgejo/workflows/element.yml deleted file mode 100644 index 0199e8b6..00000000 --- a/.forgejo/workflows/element.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: Deploy Element Web - -on: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -concurrency: - group: "element-${{ github.ref }}" - cancel-in-progress: true - -jobs: - build-and-deploy: - name: ๐Ÿ—๏ธ Build and Deploy - runs-on: ubuntu-latest - - steps: - - name: ๐Ÿ“ฆ Setup Node.js - uses: https://github.com/actions/setup-node@v4 - with: - node-version: "22" - - - name: ๐Ÿ”จ Clone, setup, and build Element Web - run: | - echo "Cloning Element Web..." - git clone https://github.com/maunium/element-web - cd element-web - git checkout develop - git pull - - echo "Cloning matrix-js-sdk..." - git clone https://github.com/matrix-org/matrix-js-sdk.git - - echo "Installing Yarn..." - npm install -g yarn - - echo "Installing dependencies..." - yarn install - - echo "Preparing build environment..." - mkdir -p .home - - echo "Cleaning up specific node_modules paths..." - rm -rf node_modules/@types/eslint-scope/ matrix-*-sdk/node_modules/@types/eslint-scope || echo "Cleanup paths not found, continuing." - - echo "Getting matrix-js-sdk commit hash..." - cd matrix-js-sdk - jsver=$(git rev-parse HEAD) - jsver=${jsver:0:12} - cd .. - echo "matrix-js-sdk version hash: $jsver" - - echo "Getting element-web commit hash..." - ver=$(git rev-parse HEAD) - ver=${ver:0:12} - echo "element-web version hash: $ver" - - chmod +x ./build-sh - - export VERSION="$ver-js-$jsver" - echo "Building Element Web version: $VERSION" - ./build-sh - - echo "Checking for build output..." - ls -la webapp/ - - - name: โš™๏ธ Create config.json - run: | - cat < ./element-web/webapp/config.json - { - "default_server_name": "continuwuity.org", - "default_server_config": { - "m.homeserver": { - "base_url": "https://matrix.continuwuity.org" - } - }, - "default_country_code": "GB", - "default_theme": "dark", - "mobile_guide_toast": false, - "show_labs_settings": true, - "room_directory": [ - "continuwuity.org", - "matrixrooms.info" - ], - "settings_defaults": { - "UIFeature.urlPreviews": true, - "UIFeature.feedback": false, - "UIFeature.voip": false, - "UIFeature.shareQrCode": false, - "UIFeature.shareSocial": false, - "UIFeature.locationSharing": false, - "enableSyntaxHighlightLanguageDetection": true - }, - "features": { - "feature_pinning": true, - "feature_custom_themes": true - } - } - EOF - echo "Created ./element-web/webapp/config.json" - cat ./element-web/webapp/config.json - - - name: ๐Ÿ“ค Upload Artifact - uses: https://code.forgejo.org/actions/upload-artifact@v3 - with: - name: element-web - path: ./element-web/webapp/ - retention-days: 14 - - - name: ๐Ÿ› ๏ธ Install Wrangler - run: npm install --save-dev wrangler@latest - - - name: ๐Ÿš€ Deploy to Cloudflare Pages - if: vars.CLOUDFLARE_PROJECT_NAME != '' - id: deploy - uses: https://github.com/cloudflare/wrangler-action@v3 - with: - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - command: >- - pages deploy ./element-web/webapp - --branch="${{ github.ref == 'refs/heads/main' && 'main' || github.head_ref || github.ref_name }}" - --commit-dirty=true - --project-name="${{ vars.CLOUDFLARE_PROJECT_NAME }}-element" diff --git a/.forgejo/workflows/mirror-images.yml b/.forgejo/workflows/mirror-images.yml deleted file mode 100644 index 198832db..00000000 --- a/.forgejo/workflows/mirror-images.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Mirror Container Images - -on: - schedule: - # Run every 2 hours - - cron: "0 */2 * * *" - workflow_dispatch: - inputs: - dry_run: - description: 'Dry run (check only, no actual mirroring)' - required: false - default: false - type: boolean - -concurrency: - group: "mirror-images" - cancel-in-progress: true - -jobs: - mirror-images: - runs-on: ubuntu-latest - env: - BUILTIN_REGISTRY_USER: ${{ vars.BUILTIN_REGISTRY_USER }} - BUILTIN_REGISTRY_PASSWORD: ${{ secrets.BUILTIN_REGISTRY_PASSWORD }} - GITLAB_USERNAME: ${{ vars.GITLAB_USERNAME }} - GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Install regctl - uses: https://forgejo.ellis.link/continuwuation/regclient-actions/regctl-installer@main - with: - binary: regsync - - - name: Check what images need mirroring - run: | - echo "Checking images that need mirroring..." - regsync check -c .forgejo/regsync/regsync.yml -v info - - - name: Mirror images - if: ${{ !inputs.dry_run }} - run: | - echo "Starting image mirroring..." - regsync once -c .forgejo/regsync/regsync.yml -v info diff --git a/.forgejo/workflows/prek-checks.yml b/.forgejo/workflows/prek-checks.yml deleted file mode 100644 index 45288bef..00000000 --- a/.forgejo/workflows/prek-checks.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Checks / Prek - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -permissions: - contents: read - -jobs: - fast-checks: - name: Pre-commit & Formatting - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Setup Rust nightly - uses: ./.forgejo/actions/setup-rust - with: - rust-version: nightly - github-token: ${{ secrets.GH_PUBLIC_RO }} - - - name: Run prek - run: | - prek run \ - --all-files \ - --hook-stage manual \ - --show-diff-on-failure \ - --color=always \ - -v - - - name: Check Rust formatting - run: | - cargo +nightly fmt --all -- --check && \ - echo "โœ… Formatting check passed" || \ - exit 1 - - clippy-and-tests: - name: Clippy and Cargo Tests - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Setup LLVM - uses: ./.forgejo/actions/setup-llvm-with-apt - with: - extra-packages: liburing-dev liburing2 - - - name: Setup Rust with caching - uses: ./.forgejo/actions/setup-rust - with: - github-token: ${{ secrets.GH_PUBLIC_RO }} - - - name: Run Clippy lints - run: | - cargo clippy \ - --workspace \ - --features full \ - --locked \ - --no-deps \ - --profile test \ - -- \ - -D warnings - - - name: Run Cargo tests - run: | - cargo test \ - --workspace \ - --features full \ - --locked \ - --profile test \ - --all-targets \ - --no-fail-fast diff --git a/.forgejo/workflows/release-image.yml b/.forgejo/workflows/release-image.yml deleted file mode 100644 index 8505aa18..00000000 --- a/.forgejo/workflows/release-image.yml +++ /dev/null @@ -1,332 +0,0 @@ -name: Release Docker Image -concurrency: - group: "release-image-${{ github.ref }}" - -on: - pull_request: - paths-ignore: - - "*.md" - - "**/*.md" - - ".gitlab-ci.yml" - - ".gitignore" - - "renovate.json" - - "pkg/**" - - "docs/**" - push: - branches: - - main - paths-ignore: - - "*.md" - - "**/*.md" - - ".gitlab-ci.yml" - - ".gitignore" - - "renovate.json" - - "pkg/**" - - "docs/**" - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -env: - BUILTIN_REGISTRY: forgejo.ellis.link - BUILTIN_REGISTRY_ENABLED: "${{ ((vars.BUILTIN_REGISTRY_USER && secrets.BUILTIN_REGISTRY_PASSWORD) || (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)) && 'true' || 'false' }}" - -jobs: - define-variables: - runs-on: ubuntu-latest - - outputs: - images: ${{ steps.var.outputs.images }} - images_list: ${{ steps.var.outputs.images_list }} - build_matrix: ${{ steps.var.outputs.build_matrix }} - - steps: - - name: Setting variables - uses: https://github.com/actions/github-script@v7 - id: var - with: - script: | - const githubRepo = '${{ github.repository }}'.toLowerCase() - const repoId = githubRepo.split('/')[1] - - core.setOutput('github_repository', githubRepo) - const builtinImage = '${{ env.BUILTIN_REGISTRY }}/' + githubRepo - let images = [] - if (process.env.BUILTIN_REGISTRY_ENABLED === "true") { - images.push(builtinImage) - } else { - // Fallback to official registry for forks/PRs without credentials - images.push('forgejo.ellis.link/continuwuation/continuwuity') - } - core.setOutput('images', images.join("\n")) - core.setOutput('images_list', images.join(",")) - const platforms = ['linux/amd64', 'linux/arm64'] - core.setOutput('build_matrix', JSON.stringify({ - platform: platforms, - target_cpu: ['base'], - include: platforms.map(platform => { return { - platform, - slug: platform.replace('/', '-') - }}) - })) - - build-image: - runs-on: dind - needs: define-variables - permissions: - contents: read - packages: write - attestations: write - id-token: write - strategy: - matrix: - { - "target_cpu": ["base"], - "profile": ["release"], - "include": - [ - { "platform": "linux/amd64", "slug": "linux-amd64" }, - { "platform": "linux/arm64", "slug": "linux-arm64" }, - ], - "platform": ["linux/amd64", "linux/arm64"], - } - - steps: - - name: Echo strategy - run: echo '${{ toJSON(fromJSON(needs.define-variables.outputs.build_matrix)) }}' - - name: Echo matrix - run: echo '${{ toJSON(matrix) }}' - - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - name: Install rust - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - id: rust-toolchain - uses: ./.forgejo/actions/rust-toolchain - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - # Use persistent BuildKit if BUILDKIT_ENDPOINT is set (e.g. tcp://buildkit:8125) - driver: ${{ env.BUILDKIT_ENDPOINT != '' && 'remote' || 'docker-container' }} - endpoint: ${{ env.BUILDKIT_ENDPOINT || '' }} - - name: Set up QEMU - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - uses: docker/setup-qemu-action@v3 - # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - - name: Login to builtin registry - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: docker/login-action@v3 - with: - registry: ${{ env.BUILTIN_REGISTRY }} - username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }} - password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }} - - # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - - name: Extract metadata (labels, annotations) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{needs.define-variables.outputs.images}} - # default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509 - env: - DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index - - # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. - # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. - # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - # It will not push images generated from a pull request - - name: Get short git commit SHA - id: sha - run: | - calculatedSha=$(git rev-parse --short ${{ github.sha }}) - echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV - echo "Short SHA: $calculatedSha" - - name: Get Git commit timestamps - run: | - timestamp=$(git log -1 --pretty=%ct) - echo "TIMESTAMP=$timestamp" >> $GITHUB_ENV - echo "Commit timestamp: $timestamp" - - - uses: ./.forgejo/actions/timelord - id: timelord - - - name: Cache Rust registry - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - uses: actions/cache@v3 - with: - path: | - .cargo/git - .cargo/git/checkouts - .cargo/registry - .cargo/registry/src - key: rust-registry-image-${{hashFiles('**/Cargo.lock') }} - - name: Cache cargo target - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - id: cache-cargo-target - uses: actions/cache@v3 - with: - path: | - cargo-target-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} - key: cargo-target-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }}-${{hashFiles('**/Cargo.lock') }}-${{steps.rust-toolchain.outputs.rustc_version}} - - name: Cache apt cache - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - id: cache-apt - uses: actions/cache@v3 - with: - path: | - var-cache-apt-${{ matrix.slug }} - key: var-cache-apt-${{ matrix.slug }} - - name: Cache apt lib - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - id: cache-apt-lib - uses: actions/cache@v3 - with: - path: | - var-lib-apt-${{ matrix.slug }} - key: var-lib-apt-${{ matrix.slug }} - - name: inject cache into docker - if: ${{ env.BUILDKIT_ENDPOINT == '' }} - uses: https://github.com/reproducible-containers/buildkit-cache-dance@v3.3.0 - with: - cache-map: | - { - ".cargo/registry": "/usr/local/cargo/registry", - ".cargo/git/db": "/usr/local/cargo/git/db", - "cargo-target-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }}": { - "target": "/app/target", - "id": "cargo-target-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }}" - }, - "var-cache-apt-${{ matrix.slug }}": "/var/cache/apt", - "var-lib-apt-${{ matrix.slug }}": "/var/lib/apt", - "{{ steps.timelord.outputs.database-path }}":"/timelord" - } - skip-extraction: ${{ steps.cache.outputs.cache-hit }} - - - name: Build and push Docker image by digest - id: build - uses: docker/build-push-action@v6 - with: - context: . - file: "docker/Dockerfile" - build-args: | - GIT_COMMIT_HASH=${{ github.sha }} - GIT_COMMIT_HASH_SHORT=${{ env.COMMIT_SHORT_SHA }} - GIT_REMOTE_URL=${{github.event.repository.html_url }} - GIT_REMOTE_COMMIT_URL=${{github.event.head_commit.url }} - CARGO_INCREMENTAL=${{ env.BUILDKIT_ENDPOINT != '' && '1' || '0' }} - platforms: ${{ matrix.platform }} - labels: ${{ steps.meta.outputs.labels }} - annotations: ${{ steps.meta.outputs.annotations }} - cache-from: type=gha - # cache-to: type=gha,mode=max - sbom: true - outputs: | - ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' && format('type=image,"name={0}",push-by-digest=true,name-canonical=true,push=true', needs.define-variables.outputs.images_list) || format('type=image,"name={0}",push=false', needs.define-variables.outputs.images_list) }} - type=local,dest=/tmp/binaries - env: - SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }} - - # For publishing multi-platform manifests - - name: Export digest - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - run: | - mkdir -p /tmp/digests - digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" - - # Binary extracted via local output for all builds - - name: Rename extracted binary - run: mv /tmp/binaries/sbin/conduwuit /tmp/binaries/conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} - - - name: Upload binary artifact - uses: forgejo/upload-artifact@v4 - with: - name: conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} - path: /tmp/binaries/conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} - if-no-files-found: error - - - name: Upload digest - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: forgejo/upload-artifact@v4 - with: - name: digests-${{ matrix.slug }} - path: /tmp/digests/* - if-no-files-found: error - retention-days: 5 - - merge: - runs-on: dind - needs: [define-variables, build-image] - steps: - - name: Download digests - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: forgejo/download-artifact@v4 - with: - path: /tmp/digests - pattern: digests-* - merge-multiple: true - # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - - name: Login to builtin registry - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: docker/login-action@v3 - with: - registry: ${{ env.BUILTIN_REGISTRY }} - username: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }} - password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }} - - - name: Set up Docker Buildx - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: docker/setup-buildx-action@v3 - with: - # Use persistent BuildKit if BUILDKIT_ENDPOINT is set (e.g. tcp://buildkit:8125) - driver: ${{ env.BUILDKIT_ENDPOINT != '' && 'remote' || 'docker-container' }} - endpoint: ${{ env.BUILDKIT_ENDPOINT || '' }} - - - name: Extract metadata (tags) for Docker - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - id: meta - uses: docker/metadata-action@v5 - with: - tags: | - type=semver,pattern={{version}},prefix=v - type=semver,pattern={{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') }},prefix=v - type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }},prefix=v - type=ref,event=branch,prefix=${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref && 'branch-' || '' }} - type=ref,event=pr - type=sha,format=long - type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }} - images: ${{needs.define-variables.outputs.images}} - # default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509 - env: - DOCKER_METADATA_ANNOTATIONS_LEVELS: index - - - name: Create manifest list and push - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - working-directory: /tmp/digests - env: - IMAGES: ${{needs.define-variables.outputs.images}} - shell: bash - run: | - IFS=$'\n' - IMAGES_LIST=($IMAGES) - ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS) - TAGS_LIST=($DOCKER_METADATA_OUTPUT_TAGS) - for REPO in "${IMAGES_LIST[@]}"; do - docker buildx imagetools create \ - $(for tag in "${TAGS_LIST[@]}"; do echo "--tag"; echo "$tag"; done) \ - $(for annotation in "${ANNOTATIONS_LIST[@]}"; do echo "--annotation"; echo "$annotation"; done) \ - $(for reference in *; do printf "$REPO@sha256:%s\n" $reference; done) - done - - - name: Inspect image - if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - env: - IMAGES: ${{needs.define-variables.outputs.images}} - shell: bash - run: | - IMAGES_LIST=($IMAGES) - for REPO in "${IMAGES_LIST[@]}"; do - docker buildx imagetools inspect $REPO:${{ steps.meta.outputs.version }} - done diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml deleted file mode 100644 index c5e1146d..00000000 --- a/.forgejo/workflows/renovate.yml +++ /dev/null @@ -1,132 +0,0 @@ -name: Maintenance / Renovate - -enable-email-notifications: true - -on: - schedule: - # Run at 5am UTC daily to avoid late-night dev - - cron: '0 5 * * *' - - workflow_dispatch: - inputs: - dryRun: - description: 'Dry run mode' - required: false - default: '' - type: choice - options: - - '' - - 'extract' - - 'lookup' - - 'full' - logLevel: - description: 'Log level' - required: false - default: 'info' - type: choice - options: - - 'debug' - - 'info' - - 'warning' - - 'critical' - - push: - branches: - - main - paths: - # Re-run when config changes - - '.forgejo/workflows/renovate.yml' - - 'renovate.json' - -jobs: - renovate: - name: Renovate - runs-on: ubuntu-latest - container: - image: ghcr.io/renovatebot/renovate:41.97.9@sha256:cd501f1d3ce46e43f6928cc50193215a5fe44501ca5b49a6c64c3551e4409c2d - options: --tmpfs /tmp:exec - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - show-progress: false - - - name: print node heap - run: /usr/local/renovate/node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)' - - - name: Restore renovate repo cache - uses: actions/cache/restore@v4 - with: - path: | - /tmp/renovate/cache/renovate/repository - key: repo-cache-${{ github.run_id }} - restore-keys: | - repo-cache- - - - name: Restore renovate package cache - uses: actions/cache/restore@v4 - with: - path: | - /tmp/renovate/cache/renovate/renovate-cache-sqlite - key: package-cache-${{ github.run_id }} - restore-keys: | - package-cache- - - - name: Restore renovate OSV cache - uses: actions/cache/restore@v4 - with: - path: | - /tmp/osv - key: osv-cache-${{ github.run_id }} - restore-keys: | - osv-cache- - - - name: Self-hosted Renovate - run: renovate - env: - LOG_LEVEL: ${{ inputs.logLevel || 'info' }} - RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }} - - RENOVATE_PLATFORM: forgejo - RENOVATE_ENDPOINT: ${{ github.server_url }} - RENOVATE_AUTODISCOVER: 'false' - RENOVATE_REPOSITORIES: '["${{ github.repository }}"]' - - RENOVATE_GIT_TIMEOUT: 60000 - - RENOVATE_REQUIRE_CONFIG: 'required' - RENOVATE_ONBOARDING: 'false' - RENOVATE_INHERIT_CONFIG: 'true' - - RENOVATE_GITHUB_TOKEN_WARN: 'false' - RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} - GITHUB_COM_TOKEN: ${{ secrets.GH_PUBLIC_RO || secrets.GH_TOKEN }} - - RENOVATE_REPOSITORY_CACHE: 'enabled' - RENOVATE_X_SQLITE_PACKAGE_CACHE: 'true' - OSV_OFFLINE_ROOT_DIR: /tmp/osv - - - name: Save renovate repo cache - if: always() - uses: - actions/cache/save@v4 - with: - path: | - /tmp/renovate/cache/renovate/repository - key: repo-cache-${{ github.run_id }} - - - name: Save renovate package cache - if: always() - uses: actions/cache/save@v4 - with: - path: | - /tmp/renovate/cache/renovate/renovate-cache-sqlite - key: package-cache-${{ github.run_id }} - - - name: Save renovate OSV cache - if: always() - uses: actions/cache/save@v4 - with: - path: | - /tmp/osv - key: osv-cache-${{ github.run_id }} diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ddfc0568..33f738f3 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -5,5 +5,3 @@ f419c64aca300a338096b4e0db4c73ace54f23d0 # use chain_width 60 162948313c212193965dece50b816ef0903172ba 5998a0d883d31b866f7c8c46433a8857eae51a89 -# trailing whitespace and newlines -46c193e74b2ce86c48ce802333a0aabce37fd6e9 diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index a1a845b6..00000000 --- a/.gitattributes +++ /dev/null @@ -1,87 +0,0 @@ -# taken from https://github.com/gitattributes/gitattributes/blob/46a8961ad73f5bd4d8d193708840fbc9e851d702/Rust.gitattributes -# Auto detect text files and perform normalization -* text=auto - -*.rs text diff=rust -*.toml text diff=toml -Cargo.lock text - -# taken from https://github.com/gitattributes/gitattributes/blob/46a8961ad73f5bd4d8d193708840fbc9e851d702/Common.gitattributes -# Documents -*.bibtex text diff=bibtex -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain -*.md text diff=markdown -*.mdx text diff=markdown -*.tex text diff=tex -*.adoc text -*.textile text -*.mustache text -*.csv text eol=crlf -*.tab text -*.tsv text -*.txt text -*.sql text -*.epub diff=astextplain - -# Graphics -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.tif binary -*.tiff binary -*.ico binary -# SVG treated as text by default. -*.svg text -*.eps binary - -# Scripts -*.bash text eol=lf -*.fish text eol=lf -*.ksh text eol=lf -*.sh text eol=lf -*.zsh text eol=lf -# These are explicitly windows files and should use crlf -*.bat text eol=crlf -*.cmd text eol=crlf -*.ps1 text eol=crlf - -# Serialisation -*.json text -*.toml text -*.xml text -*.yaml text -*.yml text - -# Archives -*.7z binary -*.bz binary -*.bz2 binary -*.bzip2 binary -*.gz binary -*.lz binary -*.lzma binary -*.rar binary -*.tar binary -*.taz binary -*.tbz binary -*.tbz2 binary -*.tgz binary -*.tlz binary -*.txz binary -*.xz binary -*.Z binary -*.zip binary -*.zst binary - -# Text files where line endings should be preserved -*.patch -text diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..4210554b --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,8 @@ + + + +----------------------------------------------------------------------------- + +- [ ] I ran `cargo fmt`, `cargo clippy`, and `cargo test` +- [ ] I agree to release my code and all other changes of this MR under the Apache-2.0 license + diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 841427b7..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,4 +0,0 @@ -github: [JadedBlueEyes, nexy7574] -custom: - - https://ko-fi.com/nexy7574 - - https://ko-fi.com/JadedBlueEyes diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..143dfc56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,350 @@ +name: CI and Artifacts + +on: + pull_request: + push: + # documentation workflow deals with this or is not relevant for this workflow + paths-ignore: + - '*.md' + - 'conduwuit-example.toml' + - 'book.toml' + - '.gitlab-ci.yml' + - '.gitignore' + - 'renovate.json' + - 'docs/**' + - 'debian/**' + - 'docker/**' + branches: + - main + tags: + - '*' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +env: + # Required to make some things output color + TERM: ansi + # Publishing to my nix binary cache + ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }} + # Just in case incremental is still being set to true, speeds up CI + CARGO_INCREMENTAL: 0 + # Custom nix binary cache if fork is being used + ATTIC_ENDPOINT: ${{ vars.ATTIC_ENDPOINT }} + ATTIC_PUBLIC_KEY: ${{ vars.ATTIC_PUBLIC_KEY }} + +permissions: + packages: write + contents: read + +jobs: + tests: + name: Test + runs-on: ubuntu-latest + steps: + - name: Sync repository + uses: actions/checkout@v4 + + - name: Tag comparison check + if: startsWith(github.ref, 'refs/tags/v') + run: | + # Tag mismatch with latest repo tag check to prevent potential downgrades + LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) + + if [ $LATEST_TAG != ${{ github.ref_name }} ]; then + echo '# WARNING: Attempting to run this workflow for a tag that is not the latest repo tag. Aborting.' + echo '# WARNING: Attempting to run this workflow for a tag that is not the latest repo tag. Aborting.' >> $GITHUB_STEP_SUMMARY + exit 1 + fi + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Enable Cachix binary cache + run: | + nix profile install nixpkgs#cachix + cachix use crane + cachix use nix-community + + - name: Configure Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Apply Nix binary cache configuration + run: | + sudo tee -a /etc/nix/nix.conf > /dev/null < /dev/null < "$HOME/.direnvrc" + nix profile install --impure --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv + direnv allow + nix develop --command true + + - name: Run CI tests + run: | + direnv exec . engage > >(tee -a test_output.log) + + - name: Sync Complement repository + uses: actions/checkout@v4 + with: + repository: 'matrix-org/complement' + path: complement_src + + - name: Run Complement tests + run: | + direnv exec . bin/complement 'complement_src' 'complement_test_logs.jsonl' 'complement_test_results.jsonl' + cp -v -f result complement_oci_image.tar.gz + + - name: Upload Complement OCI image + uses: actions/upload-artifact@v4 + with: + name: complement_oci_image.tar.gz + path: complement_oci_image.tar.gz + if-no-files-found: error + + - name: Upload Complement logs + uses: actions/upload-artifact@v4 + with: + name: complement_test_logs.jsonl + path: complement_test_logs.jsonl + if-no-files-found: error + + - name: Upload Complement results + uses: actions/upload-artifact@v4 + with: + name: complement_test_results.jsonl + path: complement_test_results.jsonl + if-no-files-found: error + + - name: Diff Complement results with checked-in repo results + # TODO: figure out why our complement results are not 100% consistent so we don't need to allow failures + continue-on-error: true + run: | + diff -u --color=always tests/test_results/complement/test_results.jsonl complement_test_results.jsonl > >(tee -a complement_test_output.log) + + - name: Add Complement diff result to Job Summary + run: | + echo '# Complement diff results' >> $GITHUB_STEP_SUMMARY + echo '```diff' >> $GITHUB_STEP_SUMMARY + tail -n 100 complement_test_output.log | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + + - name: Update Job Summary + if: success() || failure() + run: | + if [ ${{ job.status }} == 'success' ]; then + echo '# โœ… completed suwuccessfully' >> $GITHUB_STEP_SUMMARY + else + echo '```' >> $GITHUB_STEP_SUMMARY + tail -n 20 test_output.log | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + fi + + build: + name: Build + runs-on: ubuntu-latest + needs: tests + if: github.event.pull_request.draft != true + strategy: + matrix: + include: + - target: aarch64-unknown-linux-musl + - target: aarch64-unknown-linux-musl-jemalloc + - target: x86_64-unknown-linux-musl + - target: x86_64-unknown-linux-musl-jemalloc + steps: + - name: Sync repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Install and enable Cachix binary cache + run: | + nix profile install nixpkgs#cachix + cachix use crane + cachix use nix-community + + - name: Configure Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Apply Nix binary cache configuration + run: | + sudo tee -a /etc/nix/nix.conf > /dev/null < /dev/null < "$HOME/.direnvrc" + nix profile install --impure --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv + direnv allow + nix develop --command true + + - name: Build static ${{ matrix.target }} + run: | + CARGO_DEB_TARGET_TUPLE=$(echo ${{ matrix.target }} | grep -o -E '^([^-]*-){3}[^-]*') + + bin/nix-build-and-cache just .#static-${{ matrix.target }} + mkdir -v -p target/release/ + mkdir -v -p target/$CARGO_DEB_TARGET_TUPLE/release/ + cp -v -f result/bin/conduit target/release/conduwuit + cp -v -f result/bin/conduit target/$CARGO_DEB_TARGET_TUPLE/release/conduwuit + direnv exec . cargo deb --verbose --no-build --no-strip --target=$CARGO_DEB_TARGET_TUPLE --output target/release/${{ matrix.target }}.deb + mv -v target/release/conduwuit static-${{ matrix.target }} + mv -v target/release/${{ matrix.target }}.deb ${{ matrix.target }}.deb + + - name: Upload static-${{ matrix.target }} + uses: actions/upload-artifact@v4 + with: + name: static-${{ matrix.target }} + path: static-${{ matrix.target }} + if-no-files-found: error + + - name: Upload deb ${{ matrix.target }} + uses: actions/upload-artifact@v4 + with: + name: deb-${{ matrix.target }} + path: ${{ matrix.target }}.deb + if-no-files-found: error + compression-level: 0 + + - name: Build OCI image ${{ matrix.target }} + run: | + bin/nix-build-and-cache just .#oci-image-${{ matrix.target }} + cp -v -f result oci-image-${{ matrix.target }}.tar.gz + + - name: Upload OCI image ${{ matrix.target }} + uses: actions/upload-artifact@v4 + with: + name: oci-image-${{ matrix.target }} + path: oci-image-${{ matrix.target }}.tar.gz + if-no-files-found: error + compression-level: 0 + + docker: + name: Docker publish + runs-on: ubuntu-latest + needs: build + if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || (github.event.pull_request.draft != true)) && (vars.DOCKER_USERNAME != '') && (vars.GITLAB_USERNAME != '') + env: + DOCKER_ARM64: docker.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-arm64v8 + DOCKER_AMD64: docker.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-amd64 + DOCKER_TAG: docker.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }} + DOCKER_BRANCH: docker.io/${{ github.repository }}:${{ (startsWith(github.ref, 'refs/tags/v') && 'latest') || (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }} + GHCR_ARM64: ghcr.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-arm64v8 + GHCR_AMD64: ghcr.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-amd64 + GHCR_TAG: ghcr.io/${{ github.repository }}:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }} + GHCR_BRANCH: ghcr.io/${{ github.repository }}:${{ (startsWith(github.ref, 'refs/tags/v') && 'latest') || (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }} + GLCR_ARM64: registry.gitlab.com/conduwuit/conduwuit:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-arm64v8 + GLCR_AMD64: registry.gitlab.com/conduwuit/conduwuit:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }}-amd64 + GLCR_TAG: registry.gitlab.com/conduwuit/conduwuit:${{ (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }}-${{ github.sha }} + GLCR_BRANCH: registry.gitlab.com/conduwuit/conduwuit:${{ (startsWith(github.ref, 'refs/tags/v') && 'latest') || (github.head_ref != '' && format('merge-{0}-{1}', github.event.number, github.event.pull_request.user.login)) || github.ref_name }} + + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} + steps: + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Login to Docker Hub + if: ${{ (vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }} + uses: docker/login-action@v3 + with: + registry: docker.io + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Login to GitLab Container Registry + if: ${{ (vars.GITLAB_USERNAME != '') && (env.GITLAB_TOKEN != '') }} + uses: docker/login-action@v3 + with: + registry: registry.gitlab.com + username: ${{ vars.GITLAB_USERNAME }} + password: ${{ secrets.GITLAB_TOKEN }} + + - name: Download artifacts + uses: actions/download-artifact@v4 + + - name: Move OCI images into position + run: | + mv -v oci-image-x86_64-*-jemalloc/*.tar.gz oci-image-amd64.tar.gz + mv -v oci-image-aarch64-*-jemalloc/*.tar.gz oci-image-arm64v8.tar.gz + + - name: Load and push amd64 image + if: ${{ (vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }} + run: | + docker load -i oci-image-amd64.tar.gz + docker tag $(docker images -q conduit:main) ${{ env.DOCKER_AMD64 }} + docker tag $(docker images -q conduit:main) ${{ env.GHCR_AMD64 }} + docker tag $(docker images -q conduit:main) ${{ env.GLCR_AMD64 }} + docker push ${{ env.DOCKER_AMD64 }} + docker push ${{ env.GHCR_AMD64 }} + docker push ${{ env.GLCR_AMD64 }} + + - name: Load and push arm64 image + if: ${{ (vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }} + run: | + docker load -i oci-image-arm64v8.tar.gz + docker tag $(docker images -q conduit:main) ${{ env.DOCKER_ARM64 }} + docker tag $(docker images -q conduit:main) ${{ env.GHCR_ARM64 }} + docker tag $(docker images -q conduit:main) ${{ env.GLCR_ARM64 }} + docker push ${{ env.DOCKER_ARM64 }} + docker push ${{ env.GHCR_ARM64 }} + docker push ${{ env.GLCR_ARM64 }} + + - name: Create Docker combined manifests + run: | + # Dockerhub Container Registry + docker manifest create ${{ env.DOCKER_TAG }} --amend ${{ env.DOCKER_ARM64 }} --amend ${{ env.DOCKER_AMD64 }} + docker manifest create ${{ env.DOCKER_BRANCH }} --amend ${{ env.DOCKER_ARM64 }} --amend ${{ env.DOCKER_AMD64 }} + # GitHub Container Registry + docker manifest create ${{ env.GHCR_TAG }} --amend ${{ env.GHCR_ARM64 }} --amend ${{ env.GHCR_AMD64 }} + docker manifest create ${{ env.GHCR_BRANCH }} --amend ${{ env.GHCR_ARM64 }} --amend ${{ env.GHCR_AMD64 }} + # GitLab Container Registry + docker manifest create ${{ env.GLCR_TAG }} --amend ${{ env.GLCR_ARM64 }} --amend ${{ env.GCCR_AMD64 }} + docker manifest create ${{ env.GLCR_BRANCH }} --amend ${{ env.GLCR_ARM64 }} --amend ${{ env.GLCR_AMD64 }} + + - name: Push manifests to Docker registries + if: ${{ (vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }} + run: | + docker manifest push ${{ env.DOCKER_TAG }} + docker manifest push ${{ env.DOCKER_BRANCH }} + docker manifest push ${{ env.GHCR_TAG }} + docker manifest push ${{ env.GHCR_BRANCH }} + docker manifest push ${{ env.GLCR_TAG }} + docker manifest push ${{ env.GLCR_BRANCH }} + + - name: Add Image Links to Job Summary + if: ${{ (vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }} + run: | + echo "- \`docker pull ${{ env.DOCKER_TAG }}\`" >> $GITHUB_STEP_SUMMARY + echo "- \`docker pull ${{ env.GHCR_TAG }}\`" >> $GITHUB_STEP_SUMMARY + echo "- \`docker pull ${{ env.GLCR_TAG }}\`" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..f8f01d2b --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,117 @@ +name: Documentation and GitHub Pages + +on: + pull_request: + push: + branches: + - main + tags: + - '*' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +env: + # Required to make some things output color + TERM: ansi + # Publishing to my nix binary cache + ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }} + # Custom nix binary cache if fork is being used + ATTIC_ENDPOINT: ${{ vars.ATTIC_ENDPOINT }} + ATTIC_PUBLIC_KEY: ${{ vars.ATTIC_PUBLIC_KEY }} + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + docs: + name: Documentation and GitHub Pages + + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Sync repository + uses: actions/checkout@v4 + + - name: Setup GitHub Pages + if: github.event_name != 'pull_request' + uses: actions/configure-pages@v5 + + - name: Install Nix (with flakes and nix-command enabled) + uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + + # Add `nix-community`, Crane, upstream Conduit, and conduwuit binary caches + extra_nix_config: | + experimental-features = nix-command flakes + extra-substituters = https://nix-community.cachix.org + extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= + extra-substituters = https://crane.cachix.org + extra-trusted-public-keys = crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk= + extra-substituters = https://attic.kennel.juneis.dog/conduit + extra-trusted-public-keys = conduit:Isq8FGyEC6FOXH6nD+BOeAA+bKp6X6UIbupSlGEPuOg= + extra-substituters = https://attic.kennel.juneis.dog/conduwuit + extra-trusted-public-keys = conduwuit:lYPVh7o1hLu1idH4Xt2QHaRa49WRGSAqzcfFd94aOTw= + + - name: Add alternative Nix binary caches if specified + if: ${{ (env.ATTIC_ENDPOINT != '') && (env.ATTIC_PUBLIC_KEY != '') }} + run: | + echo "extra-substituters = ${{ env.ATTIC_ENDPOINT }}" >> /etc/nix/nix.conf + echo "extra-trusted-public-keys = ${{ env.ATTIC_PUBLIC_KEY }}" >> /etc/nix/nix.conf + + - name: Pop/push Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Configure `nix-direnv` + run: | + echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc" + + - name: Install `direnv` and `nix-direnv` + run: nix-env -f "" -iA direnv -iA nix-direnv + + # Do this to shorten the logs for the real CI step + - name: Populate `/nix/store` + run: nix develop --command true + + - name: Allow direnv + run: direnv allow + + - name: Cache CI dependencies + run: | + ./bin/nix-build-and-cache ci + + - name: Build documentation (book) + run: | + ./bin/nix-build-and-cache just .#book + cp -r --dereference result public + - name: Upload generated documentation (book) as normal artifact + uses: actions/upload-artifact@v4 + with: + name: public + path: public + if-no-files-found: error + # don't compress again + compression-level: 0 + + - name: Upload generated documentation (book) as GitHub Pages artifact + if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 + with: + path: public + + - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml new file mode 100644 index 00000000..881d18f7 --- /dev/null +++ b/.github/workflows/trivy.yml @@ -0,0 +1,42 @@ +name: Trivy code and vulnerability scanning + +on: + pull_request: + push: + branches: + - main + tags: + - '*' + schedule: + - cron: '00 12 * * *' + +permissions: + contents: read + +jobs: + trivy-scan: + name: Trivy Scan + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run Trivy code and vulnerability scanner on repo + uses: aquasecurity/trivy-action@0.20.0 + with: + scan-type: repo + format: sarif + output: trivy-results.sarif + severity: CRITICAL,HIGH,MEDIUM,LOW + + - name: Run Trivy code and vulnerability scanner on filesystem + uses: aquasecurity/trivy-action@0.20.0 + with: + scan-type: fs + format: sarif + output: trivy-results.sarif + severity: CRITICAL,HIGH,MEDIUM,LOW diff --git a/.gitignore b/.gitignore index b5fea66b..cf366522 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ modules.xml .nfs* # Rust -/target +/target/ ### vscode ### .vscode/* diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..e0d6eb79 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,144 @@ +stages: + - ci + - artifacts + - publish + +variables: + # Makes some things print in color + TERM: ansi + # Faster cache and artifact compression / decompression + FF_USE_FASTZIP: true + # Print progress reports for cache and artifact transfers + TRANSFER_METER_FREQUENCY: 5s + +# Avoid duplicate pipelines +# See: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never + - if: $CI + +before_script: + # Enable nix-command and flakes + - if command -v nix > /dev/null; then echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf; fi + + # Add conduwuit binary cache + - if command -v nix > /dev/null; then echo "extra-substituters = https://attic.kennel.juneis.dog/conduwuit" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null; then echo "extra-trusted-public-keys = conduwuit:lYPVh7o1hLu1idH4Xt2QHaRa49WRGSAqzcfFd94aOTw=" >> /etc/nix/nix.conf; fi + + - if command -v nix > /dev/null; then echo "extra-substituters = https://attic.kennel.juneis.dog/conduit" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null; then echo "extra-trusted-public-keys = conduit:Isq8FGyEC6FOXH6nD+BOeAA+bKp6X6UIbupSlGEPuOg=" >> /etc/nix/nix.conf; fi + + # Add alternate binary cache + - if command -v nix > /dev/null && [ -n "$ATTIC_ENDPOINT" ]; then echo "extra-substituters = $ATTIC_ENDPOINT" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null && [ -n "$ATTIC_PUBLIC_KEY" ]; then echo "extra-trusted-public-keys = $ATTIC_PUBLIC_KEY" >> /etc/nix/nix.conf; fi + + # Add Lix binary cache + - if command -v nix > /dev/null; then echo "extra-substituters = https://cache.lix.systems" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null; then echo "extra-trusted-public-keys = cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" >> /etc/nix/nix.conf; fi + + # Add crane binary cache + - if command -v nix > /dev/null; then echo "extra-substituters = https://crane.cachix.org" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null; then echo "extra-trusted-public-keys = crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk=" >> /etc/nix/nix.conf; fi + + # Add nix-community binary cache + - if command -v nix > /dev/null; then echo "extra-substituters = https://nix-community.cachix.org" >> /etc/nix/nix.conf; fi + - if command -v nix > /dev/null; then echo "extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" >> /etc/nix/nix.conf; fi + + # Install direnv and nix-direnv + - if command -v nix > /dev/null; then nix-env -iA nixpkgs.direnv nixpkgs.nix-direnv; fi + + # Allow .envrc + - if command -v nix > /dev/null; then direnv allow; fi + + # Set CARGO_HOME to a cacheable path + - export CARGO_HOME="$(git rev-parse --show-toplevel)/.gitlab-ci.d/cargo" + +ci: + stage: ci + image: nixos/nix:2.22.1 + script: + # Cache CI dependencies + - ./bin/nix-build-and-cache ci + + - direnv exec . engage + cache: + key: nix + paths: + - target + - .gitlab-ci.d + rules: + # CI on upstream runners (only available for maintainers) + - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $IS_UPSTREAM_CI == "true" + # Manual CI on unprotected branches that are not MRs + - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_REF_PROTECTED == "false" + when: manual + # Manual CI on forks + - if: $IS_UPSTREAM_CI != "true" + when: manual + - if: $CI + interruptible: true + +artifacts: + stage: artifacts + image: nixos/nix:2.22.1 + script: + - ./bin/nix-build-and-cache just .#static-x86_64-unknown-linux-musl + - cp result/bin/conduit x86_64-unknown-linux-musl + + - mkdir -p target/release + - cp result/bin/conduit target/release + - direnv exec . cargo deb --no-build --no-strip + - mv target/debian/*.deb x86_64-unknown-linux-musl.deb + + # Since the OCI image package is based on the binary package, this has the + # fun side effect of uploading the normal binary too. Conduit users who are + # deploying with Nix can leverage this fact by adding our binary cache to + # their systems. + # + # Note that although we have an `oci-image-x86_64-unknown-linux-musl` + # output, we don't build it because it would be largely redundant to this + # one since it's all containerized anyway. + - ./bin/nix-build-and-cache just .#oci-image + - cp result oci-image-amd64.tar.gz + + - ./bin/nix-build-and-cache just .#static-aarch64-unknown-linux-musl + - cp result/bin/conduit aarch64-unknown-linux-musl + + - ./bin/nix-build-and-cache just .#oci-image-aarch64-unknown-linux-musl + - cp result oci-image-arm64v8.tar.gz + + - ./bin/nix-build-and-cache just .#book + # We can't just copy the symlink, we need to dereference it https://gitlab.com/gitlab-org/gitlab/-/issues/19746 + - cp -r --dereference result public + artifacts: + paths: + - x86_64-unknown-linux-musl + - aarch64-unknown-linux-musl + - x86_64-unknown-linux-musl.deb + - oci-image-amd64.tar.gz + - oci-image-arm64v8.tar.gz + - public + rules: + # CI required for all MRs + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + # Optional CI on forks + - if: $IS_UPSTREAM_CI != "true" + when: manual + allow_failure: true + - if: $CI + interruptible: true + +pages: + stage: publish + dependencies: + - artifacts + only: + - next + script: + - "true" + artifacts: + paths: + - public diff --git a/.gitlab/merge_request_templates/MR.md b/.gitlab/merge_request_templates/MR.md new file mode 100644 index 00000000..4210554b --- /dev/null +++ b/.gitlab/merge_request_templates/MR.md @@ -0,0 +1,8 @@ + + + +----------------------------------------------------------------------------- + +- [ ] I ran `cargo fmt`, `cargo clippy`, and `cargo test` +- [ ] I agree to release my code and all other changes of this MR under the Apache-2.0 license + diff --git a/.gitlab/route-map.yml b/.gitlab/route-map.yml new file mode 100644 index 00000000..cf31bd18 --- /dev/null +++ b/.gitlab/route-map.yml @@ -0,0 +1,3 @@ +# Docs: Map markdown to html files +- source: /docs/(.+)\.md/ + public: '\1.html' diff --git a/.mailmap b/.mailmap deleted file mode 100644 index 7c25737d..00000000 --- a/.mailmap +++ /dev/null @@ -1,16 +0,0 @@ -AlexPewMaster <68469103+AlexPewMaster@users.noreply.github.com> -Daniel Wiesenberg -Devin Ragotzy -Devin Ragotzy -Jonas Platte -Jonas Zohren -Jonathan de Jong -June Clementine Strawberry -June Clementine Strawberry -June Clementine Strawberry -Olivia Lee -Rudi Floren -Tamara Schmitz <15906939+tamara-schmitz@users.noreply.github.com> -Timo Kรถsters -x4u <14617923-x4u@users.noreply.gitlab.com> -Ginger <75683114+gingershaped@users.noreply.github.com> diff --git a/.markdownlintignore b/.markdownlintignore deleted file mode 120000 index 3e4e48b0..00000000 --- a/.markdownlintignore +++ /dev/null @@ -1 +0,0 @@ -.gitignore \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index da594310..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,47 +0,0 @@ -default_install_hook_types: - - pre-commit - - commit-msg -default_stages: - - pre-commit - - manual - -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 - hooks: - - id: fix-byte-order-marker - - id: check-case-conflict - - id: check-symlinks - - id: destroyed-symlinks - - id: check-yaml - - id: check-json - - id: check-toml - - id: end-of-file-fixer - - id: trailing-whitespace - - id: mixed-line-ending - - id: check-merge-conflict - - id: check-added-large-files - - - repo: https://github.com/crate-ci/typos - rev: v1.26.0 - hooks: - - id: typos - - id: typos - name: commit-msg-typos - stages: [commit-msg] - - - repo: https://github.com/crate-ci/committed - rev: v1.1.7 - hooks: - - id: committed - - - repo: local - hooks: - - id: cargo-fmt - name: cargo fmt - entry: cargo +nightly fmt -- - language: system - types: [rust] - pass_filenames: false - stages: - - pre-commit diff --git a/.typos.toml b/.typos.toml deleted file mode 100644 index 6ddb802e..00000000 --- a/.typos.toml +++ /dev/null @@ -1,26 +0,0 @@ -[files] -extend-exclude = ["*.csr", "*.lock", "pnpm-lock.yaml"] - -[default] - -extend-ignore-re = [ - "(?Rm)^.*(#|//|)$", # Ignore a line by making it trail with a `spellchecker:disable-line` comment - "^[0-9a-f]{7,}$", # Commit hashes - - # some heuristics for base64 strings - "[A-Za-z0-9+=]{72,}", - "([A-Za-z0-9+=]|\\\\\\s\\*){72,}", - "[0-9+][A-Za-z0-9+]{30,}[a-z0-9+]", - "\\$[A-Z0-9+][A-Za-z0-9+]{6,}[a-z0-9+]", - "\\b[a-z0-9+/=][A-Za-z0-9+/=]{7,}[a-z0-9+/=][A-Z]\\b", - - # In the renovate config - ".ontainer" -] - -[default.extend-words] -"allocatedp" = "allocatedp" -"conduwuit" = "conduwuit" -"continuwuity" = "continuwuity" -"continuwity" = "continuwuity" -"execuse" = "execuse" diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 82162ff7..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "cSpell.words": [ - "Forgejo", - "appservice", - "appservices", - "conduwuit", - "continuwuity", - "homeserver", - "homeservers" - ], - "rust-analyzer.cargo.features": ["full"] -} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 02df953f..a8682537 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,4 @@ + # Contributor Covenant Code of Conduct ## Our Pledge @@ -59,7 +60,8 @@ representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement over Matrix at [#continuwuity:continuwuity.org](https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) or email at , and respectively. +reported to the community leaders responsible for enforcement over email at +strawberry@puppygock.gay or over Matrix at @strawberry:puppygock.gay. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the @@ -129,3 +131,4 @@ For answers to common questions about this code of conduct, see the FAQ at [Mozilla CoC]: https://github.com/mozilla/diversity [FAQ]: https://www.contributor-covenant.org/faq [translations]: https://www.contributor-covenant.org/translations + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5ecf38a..2a32c0ec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,173 +1,92 @@ # Contributing guide -This page is about contributing to Continuwuity. The -[development](./development.md) and [code style guide](./development/code_style.md) pages may be of interest for you as well. +This page is for about contributing to conduwuit. The [development](docs/development.md) page may be of interest for you as well. -If you would like to work on an [issue][issues] that is not assigned, preferably -ask in the Matrix room first at [#continuwuity:continuwuity.org][continuwuity-matrix], -and comment on it. +If you would like to work on an [issue][issues] that is not assigned, preferably ask in the Matrix room first at [#conduwuit:puppygock.gay][conduwuit-matrix], and comment on it. -### Code Style +### Linting and Formatting -Please review and follow the [code style guide](./development/code_style.md) for formatting, linting, naming conventions, and other code standards. +It is mandatory all your changes satisfy the lints (clippy, rustc, rustdoc, etc) and your code is formatted via the **nightly** `cargo fmt`. A lot of the `rustfmt.toml` features depend on nightly toolchain. It would be ideal if they weren't nightly-exclusive features, but they currently still are. CI's rustfmt uses nightly. -### Pre-commit Checks +If you need to allow a lint, please make sure it's either obvious as to why (e.g. clippy saying redundant clone but it's actually required) or it has a comment saying why. Do not write inefficient code for the sake of satisfying lints. If a lint is wrong and provides a more inefficient solution or suggestion, allow the lint and mention that in a comment. -Continuwuity uses pre-commit hooks to enforce various coding standards and catch common issues before they're committed. These checks include: +### Running CI tests locally -- Code formatting and linting -- Typo detection (both in code and commit messages) -- Checking for large files -- Ensuring proper line endings and no trailing whitespace -- Validating YAML, JSON, and TOML files -- Checking for merge conflicts +conduwuit's CI for tests, linting, formatting, audit, etc use [`engage`][engage]. engage can be installed from nixpkgs or `cargo install engage`. conduwuit's Nix flake devshell has the nixpkgs engage with `direnv`. Use `engage --help` for more usage details. -You can run these checks locally by installing [prefligit](https://github.com/j178/prefligit): +To test, format, lint, etc that CI would do, install engage, allow the `.envrc` file using `direnv allow`, and run `engage`. +All of the tasks are defined at the [engage.toml][engage.toml] file. You can view all of them neatly by running `engage list` -```bash -# Requires UV: https://docs.astral.sh/uv/getting-started/installation/ -# Mac/linux: curl -LsSf https://astral.sh/uv/install.sh | sh -# Windows: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" +If you would like to run only a specific engage task group, use `just`: +- `engage just ` +- Example: `engage just lints` -# Install prefligit using cargo-binstall -cargo binstall prefligit +If you would like to run a specific engage task in a specific group, use `just [TASK]`: `engage just lints cargo-fmt` -# Install git hooks to run checks automatically -prefligit install +The following binaries are used in [`engage.toml`][engage.toml]: -# Run all checks -prefligit --all-files -``` - -Alternatively, you can use [pre-commit](https://pre-commit.com/): -```bash -# Requires python - -# Install pre-commit -pip install pre-commit - -# Install the hooks -pre-commit install - -# Run all checks manually -pre-commit run --all-files -``` - -These same checks are run in CI via the prefligit-checks workflow to ensure consistency. These must pass before the PR is merged. - -### Running tests locally - -Tests, compilation, and linting can be run with standard Cargo commands: - -```bash -# Run tests -cargo test - -# Check compilation -cargo check --workspace --features full - -# Run lints -cargo clippy --workspace --features full -# Auto-fix: cargo clippy --workspace --features full --fix --allow-staged; - -# Format code (must use nightly) -cargo +nightly fmt -``` +- [`engage`][engage] +- `nix` +- [`direnv`][direnv] +- `rustc` +- `cargo` +- `cargo-fmt` +- `rustdoc` +- `cargo-clippy` +- [`cargo-audit`][cargo-audit] +- [`cargo-deb`][cargo-deb] +- [`lychee`][lychee] ### Matrix tests -Continuwuity uses [Complement][complement] for Matrix protocol compliance testing. Complement tests are run manually by developers, and documentation on how to run these tests locally is currently being developed. +CI runs [Complement][complement], but currently does not fail if results from the checked-in results differ with the new results. If your changes are done to fix Matrix tests, note that in your pull request. If more Complement tests start failing from your changes, please review the logs (they are uploaded as artifacts) and determine if they're intended or not. -If your changes are done to fix Matrix tests, please note that in your pull request. If more Complement tests start failing from your changes, please review the logs and determine if they're intended or not. +If you'd like to run Complement locally using Nix, see the [testing](docs/development/testing.md) page. -[Sytest][sytest] is currently unsupported. +[Sytest][sytest] support will come soon. ### Writing documentation -Continuwuity's website uses [`mdbook`][mdbook] and is deployed via CI using Cloudflare Pages -in the [`documentation.yml`][documentation.yml] workflow file. All documentation is in the `docs/` -directory at the top level. +conduwuit's website uses [`mdbook`][mdbook] and deployed via CI using GitHub Pages in the [`documentation.yml`][documentation.yml] workflow file with Nix's mdbook in the devshell. All documentation is in the `docs/` directory at the top level. The compiled mdbook website is also uploaded as an artifact. -To build the documentation locally: +To build the documentation using Nix, run: `bin/nix-build-and-cache just .#book` -1. Install mdbook if you don't have it already: - ```bash - cargo install mdbook # or cargo binstall, or another method - ``` +The output of the mdbook generation is in `result/`. mdbooks can be opened in your browser from the individual HTML files without any web server needed. -2. Build the documentation: - ```bash - mdbook build - ``` +### Inclusivity and Diversity -The output of the mdbook generation is in `public/`. You can open the HTML files directly in your browser without needing a web server. +All **MUST** code and write with inclusivity and diversity in mind. See the [following page by Google on writing inclusive code and documentation](https://developers.google.com/style/inclusive-documentation). +This **EXPLICITLY** forbids usage of terms like "blacklist"/"whitelist" and "master"/"slave", [forbids gender-specific words and phrases](https://developers.google.com/style/pronouns#gender-neutral-pronouns), forbids ableist language like "sanity-check", "cripple", or "insane", and forbids culture-specific language (e.g. US-only holidays or cultures). -### Commit Messages +No exceptions are allowed. Dependencies that may use these terms are allowed but [do not replicate the name in your functions or variables](https://developers.google.com/style/inclusive-documentation#write-around). -Continuwuity follows the [Conventional Commits](https://www.conventionalcommits.org/) specification for commit messages. This provides a standardized format that makes the commit history more readable and enables automated tools to generate changelogs. +In addition to language, write and code with the user experience in mind. This is software that intends to be used by everyone, so make it easy and comfortable for everyone to use. ๐Ÿณ๏ธโ€โšง๏ธ -The basic structure is: +### Variable, comment, function, etc standards -``` -[(optional scope)]: - -[optional body] - -[optional footer(s)] -``` - -The allowed types for commits are: -- `fix`: Bug fixes -- `feat`: New features -- `docs`: Documentation changes -- `style`: Changes that don't affect the meaning of the code (formatting, etc.) -- `refactor`: Code changes that neither fix bugs nor add features -- `perf`: Performance improvements -- `test`: Adding or fixing tests -- `build`: Changes to the build system or dependencies -- `ci`: Changes to CI configuration -- `chore`: Other changes that don't modify source or test files - -Examples: -``` -feat: add user authentication -fix(database): resolve connection pooling issue -docs: update installation instructions -``` - -The project uses the `committed` hook to validate commit messages in pre-commit. This ensures all commits follow the conventional format. +Rust's default style and standards with regards to [function names, variable names, comments](https://rust-lang.github.io/api-guidelines/naming.html), etc applies here. ### Creating pull requests -Please try to keep contributions to the Forgejo Instance. While the mirrors of continuwuity -allow for pull/merge requests, there is no guarantee the maintainers will see them in a timely -manner. Additionally, please mark WIP or unfinished or incomplete PRs as drafts. -This prevents us from having to ping once in a while to double check the status -of it, especially when the CI completed successfully and everything so it -*looks* done. +Please try to keep contributions to the GitHub. While the mirrors of conduwuit allow for pull/merge requests, there is no guarantee I will see them in a timely manner. Additionally, please mark WIP or unfinished or incomplete PRs as drafts. This prevents me from having to ping once in a while to double check the status of it, especially when the CI completed successfully and everything so it *looks* done. -Before submitting a pull request, please ensure: -1. Your code passes all CI checks (formatting, linting, typo detection, etc.) -2. Your code follows the [code style guide](./development/code_style.md) -3. Your commit messages follow the conventional commits format -4. Tests are added for new functionality -5. Documentation is updated if needed +If you open a pull request on one of the mirrors, it is your responsibility to inform me about its existence. In the future I may try to solve this with more repo bots in the conduwuit Matrix room. There is no mailing list or email-patch support on the sr.ht mirror, but if you'd like to email me a git patch you can do so at `strawberry@puppygock.gay`. Direct all PRs/MRs to the `main` branch. -By sending a pull request or patch, you are agreeing that your changes are -allowed to be licenced under the Apache-2.0 licence and all of your conduct is -in line with the Contributor's Covenant, and continuwuity's Code of Conduct. +By sending a pull request or patch, you are agreeing that your changes are allowed to be licenced under the Apache-2.0 licence and all of your conduct is in line with the Contributor's Covenant. -Contribution by users who violate either of these code of conducts may not have -their contributions accepted. This includes users who have been banned from -continuwuity Matrix rooms for Code of Conduct violations. - -[issues]: https://forgejo.ellis.link/continuwuation/continuwuity/issues -[continuwuity-matrix]: https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org +[issues]: https://github.com/girlbossceo/conduwuit/issues +[conduwuit-matrix]: https://matrix.to/#/#conduwuit:puppygock.gay [complement]: https://github.com/matrix-org/complement/ +[engage.toml]: https://github.com/girlbossceo/conduwuit/blob/main/engage.toml +[engage]: https://charles.page.computer.surgery/engage/ [sytest]: https://github.com/matrix-org/sytest/ +[cargo-deb]: https://github.com/kornelski/cargo-deb +[lychee]: https://github.com/lycheeverse/lychee +[cargo-audit]: https://github.com/RustSec/rustsec/tree/main/cargo-audit +[direnv]: https://direnv.net/ [mdbook]: https://rust-lang.github.io/mdBook/ -[documentation.yml]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/.forgejo/workflows/documentation.yml +[documentation.yml]: https://github.com/girlbossceo/conduwuit/blob/main/.github/workflows/documentation.yml diff --git a/Cargo.lock b/Cargo.lock index 9c91c8fb..a7934719 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,21 +1,33 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 4 +version = 3 [[package]] name = "addr2line" -version = "0.24.2" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ "gimli", ] [[package]] -name = "adler2" -version = "2.0.1" +name = "adler" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] [[package]] name = "aho-corasick" @@ -26,15 +38,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "aligned-vec" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" -dependencies = [ - "equator", -] - [[package]] name = "alloc-no-stdlib" version = "2.0.4" @@ -50,67 +53,17 @@ dependencies = [ "alloc-no-stdlib", ] -[[package]] -name = "anstream" -version = "0.6.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", -] - [[package]] name = "anstyle" -version = "1.0.11" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" - -[[package]] -name = "anstyle-parse" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" -dependencies = [ - "windows-sys 0.60.2", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a" -dependencies = [ - "anstyle", - "once_cell_polyfill", - "windows-sys 0.60.2", -] +checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" [[package]] name = "anyhow" -version = "1.0.99" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100" - -[[package]] -name = "arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" +checksum = "25bdb32cbbdce2b519a9cd7df3a678443100e265d5e25ca763b7572a5104f5f3" [[package]] name = "arc-swap" @@ -118,17 +71,6 @@ version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" -[[package]] -name = "arg_enum_proc_macro" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - [[package]] name = "argon2" version = "0.5.3" @@ -141,101 +83,11 @@ dependencies = [ "password-hash", ] -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" -dependencies = [ - "serde", -] - [[package]] name = "as_variant" -version = "1.3.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dbc3a507a82b17ba0d98f6ce8fd6954ea0c8152e98009d36a40d8dcc8ce078a" - -[[package]] -name = "askama" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f75363874b771be265f4ffe307ca705ef6f3baa19011c149da8674a87f1b75c4" -dependencies = [ - "askama_derive", - "itoa", - "percent-encoding", - "serde", - "serde_json", -] - -[[package]] -name = "askama_derive" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "129397200fe83088e8a68407a8e2b1f826cf0086b21ccdb866a722c8bcd3a94f" -dependencies = [ - "askama_parser", - "basic-toml", - "memchr", - "proc-macro2", - "quote", - "rustc-hash", - "serde", - "serde_derive", - "syn 2.0.106", -] - -[[package]] -name = "askama_parser" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6ab5630b3d5eaf232620167977f95eb51f3432fc76852328774afbd242d4358" -dependencies = [ - "memchr", - "serde", - "serde_derive", - "winnow", -] - -[[package]] -name = "asn1-rs" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" -dependencies = [ - "asn1-rs-derive", - "asn1-rs-impl", - "displaydoc", - "nom", - "num-traits", - "rusticata-macros", - "thiserror 1.0.69", - "time", -] - -[[package]] -name = "asn1-rs-derive" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "synstructure 0.12.6", -] - -[[package]] -name = "asn1-rs-impl" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] +checksum = "f38fa22307249f86fb7fad906fcae77f2564caeb56d7209103c551cd1cf4798f" [[package]] name = "assign" @@ -243,35 +95,27 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f093eed78becd229346bf859eec0aa4dd7ddde0757287b2b4107a1f09c80002" -[[package]] -name = "async-channel" -version = "2.3.1" -source = "git+https://forgejo.ellis.link/continuwuation/async-channel?rev=92e5e74063bf2a3b10414bcc8a0d68b235644280#92e5e74063bf2a3b10414bcc8a0d68b235644280" -dependencies = [ - "concurrent-queue", - "event-listener-strategy", - "futures-core", - "pin-project-lite", -] - [[package]] name = "async-compression" -version = "0.4.30" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "977eb15ea9efd848bb8a4a1a2500347ed7f0bf794edf0dc3ddcf439f43d36b23" +checksum = "9c90a406b4495d129f00461241616194cb8a032c8d1c53c657f0961d5f8e0498" dependencies = [ - "compression-codecs", - "compression-core", + "brotli", + "flate2", "futures-core", + "memchr", "pin-project-lite", "tokio", + "zstd", + "zstd-safe", ] [[package]] name = "async-stream" -version = "0.3.6" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" dependencies = [ "async-stream-impl", "futures-core", @@ -280,107 +124,83 @@ dependencies = [ [[package]] name = "async-stream-impl" -version = "0.3.6" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "async-trait" -version = "0.1.89" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "atomic" -version = "0.6.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89cbf775b137e9b968e67227ef7f775587cde3fd31b0d8599dbd0f598a48340" +checksum = "8d818003e740b63afc82337e3160717f4f63078720a810b7b903e70a5d1d2994" dependencies = [ "bytemuck", ] -[[package]] -name = "atomic-waker" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" - [[package]] name = "autocfg" -version = "1.5.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] -name = "av1-grain" -version = "0.2.4" +name = "axum" +version = "0.6.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3efb2ca85bc610acfa917b5aaa36f3fcbebed5b3182d7f877b02531c4b80c8" +checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" dependencies = [ - "anyhow", - "arrayvec", - "log", - "nom", - "num-rational", - "v_frame", -] - -[[package]] -name = "avif-serialize" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47c8fbc0f831f4519fe8b810b6a7a91410ec83031b8233f730a0480029f6a23f" -dependencies = [ - "arrayvec", -] - -[[package]] -name = "aws-lc-rs" -version = "1.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b8ff6c09cd57b16da53641caa860168b88c172a5ee163b0288d3d6eea12786" -dependencies = [ - "aws-lc-sys", - "zeroize", -] - -[[package]] -name = "aws-lc-sys" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e44d16778acaf6a9ec9899b92cebd65580b83f685446bf2e1f5d3d732f99dcd" -dependencies = [ - "bindgen", - "cc", - "cmake", - "dunce", - "fs_extra", + "async-trait", + "axum-core 0.3.4", + "bitflags 1.3.2", + "bytes", + "futures-util", + "http 0.2.12", + "http-body 0.4.6", + "hyper 0.14.28", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "rustversion", + "serde", + "sync_wrapper 0.1.2", + "tower", + "tower-layer", + "tower-service", ] [[package]] name = "axum" -version = "0.7.9" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" +checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf" dependencies = [ "async-trait", - "axum-core", + "axum-core 0.4.3", "bytes", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.0", "http-body-util", - "hyper", + "hyper 1.3.1", "hyper-util", "itoa", "matchit", @@ -393,104 +213,107 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_urlencoded", - "sync_wrapper", - "tokio", - "tower 0.5.2", + "sync_wrapper 1.0.1", + "tower", "tower-layer", "tower-service", - "tracing", -] - -[[package]] -name = "axum-client-ip" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eefda7e2b27e1bda4d6fa8a06b50803b8793769045918bc37ad062d48a6efac" -dependencies = [ - "axum", - "forwarded-header-value", - "serde", ] [[package]] name = "axum-core" -version = "0.4.5" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" +checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" dependencies = [ "async-trait", "bytes", "futures-util", - "http", - "http-body", + "http 0.2.12", + "http-body 0.4.6", + "mime", + "rustversion", + "tower-layer", + "tower-service", +] + +[[package]] +name = "axum-core" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a15c63fd72d41492dc4f497196f5da1fb04fb7529e631d73630d1b491e47a2e3" +dependencies = [ + "async-trait", + "bytes", + "futures-util", + "http 1.1.0", + "http-body 1.0.0", "http-body-util", "mime", "pin-project-lite", "rustversion", - "sync_wrapper", + "sync_wrapper 0.1.2", "tower-layer", "tower-service", - "tracing", ] [[package]] name = "axum-extra" -version = "0.9.6" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c794b30c904f0a1c2fb7740f7df7f7972dfaa14ef6f57cb6178dc63e5dca2f04" +checksum = "0be6ea09c9b96cb5076af0de2e383bd2bc0c18f827cf1967bdd353e0b910d733" dependencies = [ - "axum", - "axum-core", + "axum 0.7.5", + "axum-core 0.4.3", "bytes", "futures-util", "headers", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.0", "http-body-util", "mime", "pin-project-lite", "serde", - "tower 0.5.2", + "tower", "tower-layer", "tower-service", ] [[package]] name = "axum-server" -version = "0.7.2" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "495c05f60d6df0093e8fb6e74aa5846a0ad06abaf96d76166283720bf740f8ab" +checksum = "c1ad46c3ec4e12f4a4b6835e173ba21c25e484c9d02b49770bf006ce5367c036" dependencies = [ "arc-swap", "bytes", - "fs-err", - "http", - "http-body", - "hyper", + "futures-util", + "http 1.1.0", + "http-body 1.0.0", + "http-body-util", + "hyper 1.3.1", "hyper-util", "pin-project-lite", - "rustls 0.23.31", - "rustls-pemfile 2.2.0", - "rustls-pki-types", + "rustls 0.21.12", + "rustls-pemfile", "tokio", - "tokio-rustls 0.26.2", + "tokio-rustls 0.24.1", + "tower", "tower-service", ] [[package]] name = "axum-server-dual-protocol" -version = "0.7.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2164551db024e87f20316d164eab9f5ad342d8188b08051ceb15ca92a60ea7b7" +checksum = "7ea4cd08ae2a5f075d28fa31190163c8106a1d2d3189442494bae22b39040a0d" dependencies = [ "axum-server", "bytes", - "http", + "http 1.1.0", "http-body-util", "pin-project", - "rustls 0.23.31", "tokio", - "tokio-rustls 0.26.2", + "tokio-rustls 0.24.1", "tokio-util", "tower-layer", "tower-service", @@ -498,17 +321,17 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.75" +version = "0.3.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" +checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" dependencies = [ "addr2line", + "cc", "cfg-if", "libc", "miniz_oxide", "object", "rustc-demangle", - "windows-targets 0.52.6", ] [[package]] @@ -525,56 +348,41 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "base64ct" -version = "1.8.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba" - -[[package]] -name = "basic-toml" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a" -dependencies = [ - "serde", -] +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bindgen" -version = "0.72.1" +version = "0.69.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" +checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" dependencies = [ - "bitflags", + "bitflags 2.5.0", "cexpr", "clang-sys", - "itertools 0.13.0", - "log", - "prettyplease", + "itertools", + "lazy_static", + "lazycell", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] -name = "bit_field" -version = "0.10.3" +name = "bitflags" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.9.4" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" - -[[package]] -name = "bitstream-io" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6099cdc01846bc367c4e7dd630dc5966dccf36b652fae7a74e17b640411a91b2" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "blake2" @@ -594,20 +402,11 @@ dependencies = [ "generic-array", ] -[[package]] -name = "blurhash" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79769241dcd44edf79a732545e8b5cec84c247ac060f5252cd51885d093a8fc" -dependencies = [ - "image", -] - [[package]] name = "brotli" -version = "8.0.2" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", @@ -616,37 +415,25 @@ dependencies = [ [[package]] name = "brotli-decompressor" -version = "5.0.0" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +checksum = "e6221fe77a248b9117d431ad93761222e1cf8ff282d9d1d5d9f53d6299a1cf76" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", ] -[[package]] -name = "built" -version = "0.7.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b" - -[[package]] -name = "built" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64" - [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytemuck" -version = "1.23.2" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3995eaeebcdf32f91f980d360f78732ddc061097ab4e39991ae7a6ace9194677" +checksum = "78834c15cb5d5efe3452d58b1e8ba890dd62d21907f867f383358198e56ebca5" [[package]] name = "byteorder" @@ -662,46 +449,30 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.10.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" - -[[package]] -name = "bytesize" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3c8f83209414aacf0eeae3cf730b18d6981697fba62f200fcfb92b9f082acba" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "bzip2-sys" -version = "0.1.13+1.0.8" +version = "0.1.11+1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" dependencies = [ "cc", + "libc", "pkg-config", ] -[[package]] -name = "cargo_toml" -version = "0.22.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" -dependencies = [ - "serde", - "toml 0.9.5", -] - [[package]] name = "cc" -version = "1.2.36" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5252b3d2648e5eedbc1a6f501e3c795e07025c1e93bbf8bbdd6eef7f447a6d54" +checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4" dependencies = [ - "find-msvc-tools", "jobserver", "libc", - "shlex", + "once_cell", ] [[package]] @@ -713,51 +484,32 @@ dependencies = [ "nom", ] -[[package]] -name = "cfg-expr" -version = "0.15.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" -dependencies = [ - "smallvec", - "target-lexicon", -] - [[package]] name = "cfg-if" -version = "1.0.3" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfg_aliases" -version = "0.2.1" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - -[[package]] -name = "checked_ops" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b491d76efc1d99d74de3c8529bee64c62312c275c7eb124f9185291de45801d5" -dependencies = [ - "num-traits", -] +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" [[package]] name = "chrono" -version = "0.4.42" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "num-traits", ] [[package]] name = "clang-sys" -version = "1.8.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1" dependencies = [ "glob", "libc", @@ -766,71 +518,41 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.47" +version = "4.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eac00902d9d136acd712710d71823fb8ac8004ca445a89e73a41d45aa712931" +checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" dependencies = [ "clap_builder", "clap_derive", ] -[[package]] -name = "clap-markdown" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a2617956a06d4885b490697b5307ebb09fec10b088afc18c81762d848c2339" -dependencies = [ - "clap", -] - [[package]] name = "clap_builder" -version = "4.5.47" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ad9bbf750e73b5884fb8a211a9424a1906c1e156724260fdae972f31d70e1d6" +checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" dependencies = [ - "anstream", "anstyle", "clap_lex", - "strsim", ] [[package]] name = "clap_derive" -version = "4.5.47" +version = "4.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbfd7eae0b0f1a6e63d4b13c9c478de77c2eb546fba158ad50b4203dc24b9f9c" +checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "clap_lex" -version = "0.7.5" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675" - -[[package]] -name = "clap_mangen" -version = "0.2.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b4c3c54b30f0d9adcb47f25f61fcce35c4dd8916638c6b82fbd5f4fb4179e2" -dependencies = [ - "clap", - "roff", -] - -[[package]] -name = "cmake" -version = "0.1.54" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7caa3f9de89ddbe2c607f4101924c5abec803763ae9534e4f4d7d8f84aa81f0" -dependencies = [ - "cc", -] +checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "color_quant" @@ -839,331 +561,101 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] -name = "colorchoice" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" - -[[package]] -name = "compression-codecs" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "485abf41ac0c8047c07c87c72c8fb3eb5197f6e9d7ded615dfd1a00ae00a0f64" -dependencies = [ - "brotli", - "compression-core", - "flate2", - "memchr", - "zstd", - "zstd-safe", -] - -[[package]] -name = "compression-core" -version = "0.4.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e47641d3deaf41fb1538ac1f54735925e275eaf3bf4d55c81b137fba797e5cbb" - -[[package]] -name = "concurrent-queue" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "conduwuit" -version = "0.5.0-rc.7" -dependencies = [ - "clap", - "conduwuit_admin", - "conduwuit_api", - "conduwuit_core", - "conduwuit_database", - "conduwuit_router", - "conduwuit_service", - "console-subscriber", - "const-str", - "ctor", - "hardened_malloc-rs", - "log", - "opentelemetry", - "opentelemetry-jaeger-propagator", - "opentelemetry-otlp", - "opentelemetry_sdk", - "sentry", - "sentry-tower", - "sentry-tracing", - "tokio", - "tokio-metrics", - "tracing", - "tracing-flame", - "tracing-journald", - "tracing-opentelemetry", - "tracing-subscriber", -] - -[[package]] -name = "conduwuit_admin" -version = "0.5.0-rc.7" -dependencies = [ - "clap", - "conduwuit_api", - "conduwuit_core", - "conduwuit_database", - "conduwuit_macros", - "conduwuit_service", - "const-str", - "ctor", - "futures", - "log", - "ruma", - "serde_json", - "serde_yaml", - "tokio", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "conduwuit_api" -version = "0.5.0-rc.7" -dependencies = [ - "async-trait", - "axum", - "axum-client-ip", - "axum-extra", - "base64 0.22.1", - "bytes", - "conduwuit_core", - "conduwuit_service", - "const-str", - "ctor", - "futures", - "hmac", - "http", - "http-body-util", - "hyper", - "ipaddress", - "itertools 0.14.0", - "log", - "rand 0.8.5", - "reqwest", - "ruma", - "serde", - "serde_html_form", - "serde_json", - "sha1", - "tokio", - "tracing", -] - -[[package]] -name = "conduwuit_build_metadata" -version = "0.5.0-rc.7" -dependencies = [ - "built 0.8.0", -] - -[[package]] -name = "conduwuit_core" -version = "0.5.0-rc.7" +name = "conduit" +version = "0.3.4" dependencies = [ "argon2", - "arrayvec", - "axum", + "async-trait", + "axum 0.7.5", "axum-extra", + "axum-server", + "axum-server-dual-protocol", + "base64 0.22.1", "bytes", - "bytesize", - "cargo_toml", - "checked_ops", "chrono", "clap", - "conduwuit_build_metadata", - "conduwuit_macros", - "const-str", - "core_affinity", - "ctor", + "console-subscriber", "cyborgtime", "either", "figment", - "futures", + "futures-util", "hardened_malloc-rs", - "http", + "hickory-resolver", + "hmac", + "hot-lib-reloader", + "http 1.1.0", "http-body-util", + "hyper 1.3.1", + "hyper-util", + "image", + "infer", "ipaddress", - "itertools 0.14.0", - "libc", - "libloading", - "lock_api", + "itertools", + "jsonwebtoken", + "libz-sys", "log", - "maplit", + "loole", + "lru-cache", "nix", - "num-traits", + "num_cpus", + "opentelemetry", + "opentelemetry-jaeger", + "opentelemetry_sdk", "parking_lot", - "rand 0.8.5", + "rand", "regex", "reqwest", - "ring 0.17.14", + "ring", "ruma", - "sanitize-filename", - "serde", - "serde_json", - "serde_regex", - "serde_yaml", - "smallstr", - "smallvec", - "thiserror 2.0.16", - "tikv-jemalloc-ctl", - "tikv-jemalloc-sys", - "tikv-jemallocator", - "tokio", - "tokio-metrics", - "toml 0.9.5", - "tracing", - "tracing-core", - "tracing-subscriber", - "url", -] - -[[package]] -name = "conduwuit_database" -version = "0.5.0-rc.7" -dependencies = [ - "async-channel", - "conduwuit_core", - "const-str", - "ctor", - "futures", - "log", - "minicbor", - "minicbor-serde", + "ruma-identifiers-validation", + "rusqlite", "rust-rocksdb", - "serde", - "serde_json", - "tokio", - "tracing", -] - -[[package]] -name = "conduwuit_macros" -version = "0.5.0-rc.7" -dependencies = [ - "itertools 0.14.0", - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "conduwuit_router" -version = "0.5.0-rc.7" -dependencies = [ - "axum", - "axum-client-ip", - "axum-server", - "axum-server-dual-protocol", - "bytes", - "conduwuit_admin", - "conduwuit_api", - "conduwuit_core", - "conduwuit_service", - "conduwuit_web", - "const-str", - "ctor", - "futures", - "http", - "http-body-util", - "hyper", - "hyper-util", - "log", - "ruma", - "rustls 0.23.31", + "sanitize-filename", "sd-notify", "sentry", "sentry-tower", "sentry-tracing", + "serde", + "serde_html_form", "serde_json", + "serde_regex", + "serde_yaml", + "sha-1", + "sha2", + "thiserror", + "thread_local", + "tikv-jemalloc-ctl", + "tikv-jemalloc-sys", + "tikv-jemallocator", "tokio", - "tower 0.5.2", + "tower", "tower-http", "tracing", -] - -[[package]] -name = "conduwuit_service" -version = "0.5.0-rc.7" -dependencies = [ - "async-trait", - "base64 0.22.1", - "blurhash", - "bytes", - "conduwuit_core", - "conduwuit_database", - "const-str", - "ctor", - "either", - "futures", - "hickory-resolver 0.25.2", - "http", - "image", - "ipaddress", - "itertools 0.14.0", - "ldap3", - "log", - "loole", - "lru-cache", - "rand 0.8.5", - "recaptcha-verify", - "regex", - "reqwest", - "ruma", - "rustyline-async", - "serde", - "serde_json", - "serde_yaml", - "sha2", - "termimad", - "tokio", - "tracing", + "tracing-flame", + "tracing-opentelemetry", + "tracing-subscriber", "url", "webpage", ] -[[package]] -name = "conduwuit_web" -version = "0.5.0-rc.7" -dependencies = [ - "askama", - "axum", - "conduwuit_build_metadata", - "conduwuit_service", - "futures", - "rand 0.8.5", - "thiserror 2.0.16", - "tracing", -] - [[package]] name = "console-api" -version = "0.8.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8030735ecb0d128428b64cd379809817e620a40e5001c54465b99ec5feec2857" +checksum = "fd326812b3fd01da5bb1af7d340d0d555fd3d4b641e7f1dfcf5962a902952787" dependencies = [ "futures-core", "prost", "prost-types", - "tonic 0.12.3", + "tonic", "tracing-core", ] [[package]] name = "console-subscriber" -version = "0.4.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6539aa9c6a4cd31f4b1c040f860a1eac9aa80e7df6b05d506a6e7179936d6a01" +checksum = "7481d4c57092cd1c19dd541b92bdce883de840df30aa5d03fd48a3935c01842e" dependencies = [ "console-api", "crossbeam-channel", @@ -1171,15 +663,13 @@ dependencies = [ "futures-task", "hdrhistogram", "humantime", - "hyper-util", - "prost", "prost-types", "serde", "serde_json", "thread_local", "tokio", "tokio-stream", - "tonic 0.12.3", + "tonic", "tracing", "tracing-core", "tracing-subscriber", @@ -1191,38 +681,11 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" -[[package]] -name = "const-str" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "451d0640545a0553814b4c646eb549343561618838e9b42495f466131fe3ad49" - [[package]] name = "const_panic" -version = "0.2.14" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb8a602185c3c95b52f86dc78e55a6df9a287a7a93ddbcf012509930880cf879" -dependencies = [ - "typewit", -] - -[[package]] -name = "convert_case" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb402b8d4c85569410425650ce3eddc7d698ed96d39a73f941b08fb63082f1e7" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "coolor" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "980c2afde4af43d6a05c5be738f9eae595cff86dce1f38f88b95058a98c027f3" -dependencies = [ - "crossterm", -] +checksum = "6051f239ecec86fde3410901ab7860d458d160371533842974fc61f96d15879b" [[package]] name = "core-foundation" @@ -1234,171 +697,44 @@ dependencies = [ "libc", ] -[[package]] -name = "core-foundation" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "core-foundation-sys" -version = "0.8.7" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - -[[package]] -name = "core_affinity" -version = "0.8.1" -source = "git+https://forgejo.ellis.link/continuwuation/core_affinity_rs?rev=9c8e51510c35077df888ee72a36b4b05637147da#9c8e51510c35077df888ee72a36b4b05637147da" -dependencies = [ - "libc", - "num_cpus", - "winapi", -] +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cpufeatures" -version = "0.2.17" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] [[package]] name = "crc32fast" -version = "1.5.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" dependencies = [ "cfg-if", ] -[[package]] -name = "critical-section" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" - -[[package]] -name = "crokey" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51360853ebbeb3df20c76c82aecf43d387a62860f1a59ba65ab51f00eea85aad" -dependencies = [ - "crokey-proc_macros", - "crossterm", - "once_cell", - "serde", - "strict", -] - -[[package]] -name = "crokey-proc_macros" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf1a727caeb5ee5e0a0826a97f205a9cf84ee964b0b48239fef5214a00ae439" -dependencies = [ - "crossterm", - "proc-macro2", - "quote", - "strict", - "syn 2.0.106", -] - -[[package]] -name = "crossbeam" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1137cd7e7fc0fb5d3c5a8678be38ec56e819125d8d7907411fe24ccb943faca8" -dependencies = [ - "crossbeam-channel", - "crossbeam-deque", - "crossbeam-epoch", - "crossbeam-queue", - "crossbeam-utils", -] - [[package]] name = "crossbeam-channel" -version = "0.5.15" +version = "0.5.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-queue" -version = "0.3.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" +checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.21" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" - -[[package]] -name = "crossterm" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b" -dependencies = [ - "bitflags", - "crossterm_winapi", - "derive_more", - "document-features", - "futures-core", - "mio", - "parking_lot", - "rustix", - "signal-hook", - "signal-hook-mio", - "winapi", -] - -[[package]] -name = "crossterm_winapi" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" -dependencies = [ - "winapi", -] - -[[package]] -name = "crunchy" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" [[package]] name = "crypto-common" @@ -1410,33 +746,18 @@ dependencies = [ "typenum", ] -[[package]] -name = "ctor" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67773048316103656a637612c4a62477603b777d91d9c62ff2290f9cde178fdb" -dependencies = [ - "ctor-proc-macro", - "dtor", -] - -[[package]] -name = "ctor-proc-macro" -version = "0.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2931af7e13dc045d8e9d26afccc6fa115d64e115c9c84b1166288b46f6782c2" - [[package]] name = "curve25519-dalek" -version = "4.1.3" +version = "4.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest", "fiat-crypto", + "platforms", "rustc_version", "subtle", "zeroize", @@ -1450,7 +771,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] @@ -1461,9 +782,9 @@ checksum = "817fa642fb0ee7fe42e95783e00e0969927b96091bdd4b9b1af082acd943913b" [[package]] name = "data-encoding" -version = "2.9.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" [[package]] name = "date_header" @@ -1483,58 +804,23 @@ dependencies = [ [[package]] name = "der" -version = "0.7.10" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", "zeroize", ] -[[package]] -name = "der-parser" -version = "8.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" -dependencies = [ - "asn1-rs", - "displaydoc", - "nom", - "num-bigint", - "num-traits", - "rusticata-macros", -] - [[package]] name = "deranged" -version = "0.5.3" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d630bccd429a5bb5a64b5e94f693bfc48c9f8566418fda4c494cc94f911f87cc" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ "powerfmt", ] -[[package]] -name = "derive_more" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678" -dependencies = [ - "derive_more-impl", -] - -[[package]] -name = "derive_more-impl" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3" -dependencies = [ - "convert_case", - "proc-macro2", - "quote", - "syn 2.0.106", -] - [[package]] name = "digest" version = "0.10.7" @@ -1546,47 +832,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "displaydoc" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "document-features" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95249b50c6c185bee49034bcb378a49dc2b5dff0be90ff6616d31d64febab05d" -dependencies = [ - "litrs", -] - -[[package]] -name = "dtor" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e58a0764cddb55ab28955347b45be00ade43d4d6f3ba4bf3dc354e4ec9432934" -dependencies = [ - "dtor-proc-macro", -] - -[[package]] -name = "dtor-proc-macro" -version = "0.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" - -[[package]] -name = "dunce" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" - [[package]] name = "ed25519" version = "2.2.3" @@ -1599,13 +844,13 @@ dependencies = [ [[package]] name = "ed25519-dalek" -version = "2.2.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", - "rand_core 0.6.4", + "rand_core", "serde", "sha2", "subtle", @@ -1614,121 +859,48 @@ dependencies = [ [[package]] name = "either" -version = "1.15.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" +checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" dependencies = [ "serde", ] [[package]] name = "enum-as-inner" -version = "0.6.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" +checksum = "5ffccbb6966c05b32ef8fbac435df276c4ae4d3dc55a8cd0eb9745e6c12f546a" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.106", -] - -[[package]] -name = "equator" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" -dependencies = [ - "equator-macro", -] - -[[package]] -name = "equator-macro" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "equivalent" -version = "1.0.2" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] -name = "errno" -version = "0.3.14" +name = "fallible-iterator" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" -dependencies = [ - "libc", - "windows-sys 0.61.0", -] +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" [[package]] -name = "event-listener" -version = "5.3.1" -source = "git+https://forgejo.ellis.link/continuwuation/event-listener?rev=fe4aebeeaae435af60087ddd56b573a2e0be671d#fe4aebeeaae435af60087ddd56b573a2e0be671d" -dependencies = [ - "concurrent-queue", - "parking", - "pin-project-lite", -] - -[[package]] -name = "event-listener-strategy" -version = "0.5.4" +name = "fallible-streaming-iterator" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" -dependencies = [ - "event-listener", - "pin-project-lite", -] - -[[package]] -name = "exr" -version = "1.73.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83197f59927b46c04a183a619b7c29df34e63e63c7869320862268c0ef687e0" -dependencies = [ - "bit_field", - "half", - "lebe", - "miniz_oxide", - "rayon-core", - "smallvec", - "zune-inflate", -] - -[[package]] -name = "fax" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab" -dependencies = [ - "fax_derive", -] - -[[package]] -name = "fax_derive" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" [[package]] name = "fdeflate" -version = "0.3.7" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645" dependencies = [ "simd-adler32", ] @@ -1748,16 +920,31 @@ dependencies = [ "atomic", "pear", "serde", - "toml 0.8.23", + "toml", "uncased", "version_check", ] [[package]] -name = "find-msvc-tools" -version = "0.1.1" +name = "file-id" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d" +checksum = "6584280525fb2059cba3db2c04abf947a1a29a45ddae89f3870f8281704fafc9" +dependencies = [ + "windows-sys 0.48.0", +] + +[[package]] +name = "filetime" +version = "0.2.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.4.1", + "windows-sys 0.52.0", +] [[package]] name = "findshlibs" @@ -1771,17 +958,11 @@ dependencies = [ "winapi", ] -[[package]] -name = "fixedbitset" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" - [[package]] name = "flate2" -version = "1.1.2" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ "crc32fast", "miniz_oxide", @@ -1795,39 +976,22 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] [[package]] -name = "forwarded-header-value" -version = "0.1.1" +name = "fsevent-sys" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835f84f38484cc86f110a805655697908257fb9a7af005234060891557198e9" +checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" dependencies = [ - "nonempty", - "thiserror 1.0.69", + "libc", ] -[[package]] -name = "fs-err" -version = "3.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d7be93788013f265201256d58f04936a8079ad5dc898743aa20525f503b683" -dependencies = [ - "autocfg", - "tokio", -] - -[[package]] -name = "fs_extra" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" - [[package]] name = "futf" version = "0.1.5" @@ -1838,26 +1002,11 @@ dependencies = [ "new_debug_unreachable", ] -[[package]] -name = "futures" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", "futures-sink", @@ -1865,15 +1014,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-executor" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" dependencies = [ "futures-core", "futures-task", @@ -1882,40 +1031,39 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-macro" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "futures-sink" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-util" -version = "0.3.31" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ - "futures-channel", "futures-core", "futures-io", "futures-macro", @@ -1927,20 +1075,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generator" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "605183a538e3e2a9c1038635cc5c2d194e2ee8fd0d1b66b8349fad7dbacce5a2" -dependencies = [ - "cc", - "cfg-if", - "libc", - "log", - "rustversion", - "windows", -] - [[package]] name = "generic-array" version = "0.14.7" @@ -1953,36 +1087,22 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.16" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.1+wasi-snapshot-preview1", - "wasm-bindgen", -] - -[[package]] -name = "getrandom" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "r-efi", - "wasi 0.14.5+wasi-0.2.4", + "wasi", "wasm-bindgen", ] [[package]] name = "gif" -version = "0.13.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae047235e33e2829703574b54fdec96bfbad892062d97fed2f76022287de61b" +checksum = "3fb2d69b19215e18bb912fa30f7ce15846e301408695e44e0ef719f1da9e19f2" dependencies = [ "color_quant", "weezl", @@ -1990,29 +1110,29 @@ dependencies = [ [[package]] name = "gimli" -version = "0.31.1" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "glob" -version = "0.3.3" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "h2" -version = "0.4.12" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ - "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "http", - "indexmap 2.11.1", + "futures-util", + "http 0.2.12", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -2020,13 +1140,22 @@ dependencies = [ ] [[package]] -name = "half" -version = "2.6.0" +name = "h2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9" +checksum = "816ec7294445779408f36fe57bc5b7fc1cf59664059096c65f905c1c61f58069" dependencies = [ - "cfg-if", - "crunchy", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 1.1.0", + "indexmap 2.2.6", + "slab", + "tokio", + "tokio-util", + "tracing", ] [[package]] @@ -2043,9 +1172,21 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hashbrown" -version = "0.15.5" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashlink" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +dependencies = [ + "hashbrown 0.14.5", +] [[package]] name = "hdrhistogram" @@ -2062,14 +1203,14 @@ dependencies = [ [[package]] name = "headers" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" +checksum = "322106e6bd0cba2d5ead589ddb8150a13d7c4217cf80d7c4f682ca994ccc6aa9" dependencies = [ - "base64 0.22.1", + "base64 0.21.7", "bytes", "headers-core", - "http", + "http 1.1.0", "httpdate", "mime", "sha1", @@ -2081,9 +1222,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" dependencies = [ - "http", + "http 1.1.0", ] +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + [[package]] name = "heck" version = "0.5.0" @@ -2092,9 +1239,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.5.2" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "hex" @@ -2104,9 +1251,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hickory-proto" -version = "0.24.4" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92652067c9ce6f66ce53cc38d1169daa36e6e7eb7dd3b63b5103bd9d97117248" +checksum = "07698b8420e2f0d6447a436ba999ec85d8fbf2a398bbd737b82cac4a2e96e512" dependencies = [ "async-trait", "cfg-if", @@ -2115,37 +1262,11 @@ dependencies = [ "futures-channel", "futures-io", "futures-util", - "idna", + "idna 0.4.0", "ipnet", "once_cell", - "rand 0.8.5", - "thiserror 1.0.69", - "tinyvec", - "tokio", - "tracing", - "url", -] - -[[package]] -name = "hickory-proto" -version = "0.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8a6fe56c0038198998a6f217ca4e7ef3a5e51f46163bd6dd60b5c71ca6c6502" -dependencies = [ - "async-trait", - "cfg-if", - "data-encoding", - "enum-as-inner", - "futures-channel", - "futures-io", - "futures-util", - "idna", - "ipnet", - "once_cell", - "rand 0.9.2", - "ring 0.17.14", - "serde", - "thiserror 2.0.16", + "rand", + "thiserror", "tinyvec", "tokio", "tracing", @@ -2154,43 +1275,21 @@ dependencies = [ [[package]] name = "hickory-resolver" -version = "0.24.4" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbb117a1ca520e111743ab2f6688eddee69db4e0ea242545a604dce8a66fd22e" +checksum = "28757f23aa75c98f254cf0405e6d8c25b831b32921b050a66692427679b1f243" dependencies = [ "cfg-if", "futures-util", - "hickory-proto 0.24.4", + "hickory-proto", "ipconfig", "lru-cache", "once_cell", "parking_lot", - "rand 0.8.5", + "rand", "resolv-conf", "smallvec", - "thiserror 1.0.69", - "tokio", - "tracing", -] - -[[package]] -name = "hickory-resolver" -version = "0.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc62a9a99b0bfb44d2ab95a7208ac952d31060efc16241c87eaf36406fecf87a" -dependencies = [ - "cfg-if", - "futures-util", - "hickory-proto 0.25.2", - "ipconfig", - "moka", - "once_cell", - "parking_lot", - "rand 0.9.2", - "resolv-conf", - "serde", - "smallvec", - "thiserror 2.0.16", + "thiserror", "tokio", "tracing", ] @@ -2206,13 +1305,50 @@ dependencies = [ [[package]] name = "hostname" -version = "0.4.1" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56f203cd1c76362b69e3863fd987520ac36cf70a8c92627449b2f64a8cf7d65" +checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" +dependencies = [ + "libc", + "match_cfg", + "winapi", +] + +[[package]] +name = "hostname" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9c7c7c8ac16c798734b8a24560c1362120597c40d5e1459f09498f8f6c8f2ba" dependencies = [ "cfg-if", "libc", - "windows-link 0.1.3", + "windows", +] + +[[package]] +name = "hot-lib-reloader" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda706fdb8bcf5279ce95754dd86a23eab0a81ad2823d5402c2e10a4dd3283c2" +dependencies = [ + "crc32fast", + "hot-lib-reloader-macro", + "libloading", + "log", + "notify", + "notify-debouncer-full", + "thiserror", +] + +[[package]] +name = "hot-lib-reloader-macro" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f01c6c25eabdd8e2de50ccdb7e13186ba2ac0f69ebd8bd5f96ae235414180800" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -2226,14 +1362,14 @@ dependencies = [ "markup5ever", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "http" -version = "1.3.1" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -2241,42 +1377,55 @@ dependencies = [ ] [[package]] -name = "http-auth" -version = "0.1.10" +name = "http" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "150fa4a9462ef926824cf4519c84ed652ca8f4fbae34cb8af045b5cbcaf98822" +checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" dependencies = [ - "memchr", + "bytes", + "fnv", + "itoa", ] [[package]] name = "http-body" -version = "1.0.1" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", - "http", + "http 0.2.12", + "pin-project-lite", +] + +[[package]] +name = "http-body" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643" +dependencies = [ + "bytes", + "http 1.1.0", ] [[package]] name = "http-body-util" -version = "0.1.3" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d" dependencies = [ "bytes", "futures-core", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.0", "pin-project-lite", ] [[package]] name = "httparse" -version = "1.10.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" @@ -2286,28 +1435,50 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" -version = "2.2.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "1.7.0" +version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e" +checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ - "atomic-waker", "bytes", "futures-channel", "futures-core", - "h2", - "http", - "http-body", + "futures-util", + "h2 0.3.26", + "http 0.2.12", + "http-body 0.4.6", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "h2 0.4.4", + "http 1.1.0", + "http-body 1.0.0", "httparse", "httpdate", "itoa", "pin-project-lite", - "pin-utils", "smallvec", "tokio", "want", @@ -2315,201 +1486,100 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.7" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" dependencies = [ - "http", - "hyper", + "futures-util", + "http 1.1.0", + "hyper 1.3.1", "hyper-util", - "rustls 0.23.31", - "rustls-native-certs 0.8.1", + "rustls 0.22.4", "rustls-pki-types", "tokio", - "tokio-rustls 0.26.2", + "tokio-rustls 0.25.0", "tower-service", - "webpki-roots 1.0.2", ] [[package]] name = "hyper-timeout" -version = "0.5.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" dependencies = [ - "hyper", - "hyper-util", + "hyper 0.14.28", "pin-project-lite", "tokio", - "tower-service", + "tokio-io-timeout", ] [[package]] name = "hyper-util" -version = "0.1.11" -source = "git+https://forgejo.ellis.link/continuwuation/hyper-util?rev=e4ae7628fe4fcdacef9788c4c8415317a4489941#e4ae7628fe4fcdacef9788c4c8415317a4489941" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa" dependencies = [ "bytes", "futures-channel", "futures-util", - "http", - "http-body", - "hyper", - "libc", + "http 1.1.0", + "http-body 1.0.0", + "hyper 1.3.1", "pin-project-lite", - "socket2 0.5.10", + "socket2", "tokio", + "tower", "tower-service", "tracing", ] [[package]] -name = "icu_collections" -version = "2.0.0" +name = "idna" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ - "displaydoc", - "potential_utf", - "yoke", - "zerofrom", - "zerovec", -] - -[[package]] -name = "icu_locale_core" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" -dependencies = [ - "displaydoc", - "litemap", - "tinystr", - "writeable", - "zerovec", -] - -[[package]] -name = "icu_normalizer" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979" -dependencies = [ - "displaydoc", - "icu_collections", - "icu_normalizer_data", - "icu_properties", - "icu_provider", - "smallvec", - "zerovec", -] - -[[package]] -name = "icu_normalizer_data" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3" - -[[package]] -name = "icu_properties" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b" -dependencies = [ - "displaydoc", - "icu_collections", - "icu_locale_core", - "icu_properties_data", - "icu_provider", - "potential_utf", - "zerotrie", - "zerovec", -] - -[[package]] -name = "icu_properties_data" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632" - -[[package]] -name = "icu_provider" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af" -dependencies = [ - "displaydoc", - "icu_locale_core", - "stable_deref_trait", - "tinystr", - "writeable", - "yoke", - "zerofrom", - "zerotrie", - "zerovec", + "unicode-bidi", + "unicode-normalization", ] [[package]] name = "idna" -version = "1.1.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ - "idna_adapter", - "smallvec", - "utf8_iter", -] - -[[package]] -name = "idna_adapter" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" -dependencies = [ - "icu_normalizer", - "icu_properties", + "unicode-bidi", + "unicode-normalization", ] [[package]] name = "image" -version = "0.25.8" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "529feb3e6769d234375c4cf1ee2ce713682b8e76538cb13f9fc23e1400a591e7" +checksum = "fd54d660e773627692c524beaad361aca785a4f9f5730ce91f42aabe5bce3d11" dependencies = [ "bytemuck", - "byteorder-lite", + "byteorder", "color_quant", - "exr", "gif", "image-webp", - "moxcms", "num-traits", "png", - "qoi", - "ravif", - "rayon", - "rgb", - "tiff", "zune-core", "zune-jpeg", ] [[package]] name = "image-webp" -version = "0.2.4" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +checksum = "d730b085583c4d789dfd07fdcf185be59501666a90c97c40162b37e4fdad272d" dependencies = [ "byteorder-lite", - "quick-error", + "thiserror", ] -[[package]] -name = "imgref" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408" - [[package]] name = "indexmap" version = "1.9.3" @@ -2522,15 +1592,21 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.11.1" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206a8042aec68fa4a62e8d3f7aa4ceb508177d9324faf261e1959e495b7a1921" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.15.5", + "hashbrown 0.14.5", "serde", ] +[[package]] +name = "infer" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb33622da908807a06f9513c19b3c1ad50fab3e4137d82a78107d502075aa199" + [[package]] name = "inlinable_string" version = "0.1.15" @@ -2538,27 +1614,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8fae54786f62fb2918dcfae3d568594e50eb9b5c25bf04371af6fe7516452fb" [[package]] -name = "interpolate_name" -version = "0.2.4" +name = "inotify" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" +checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", + "bitflags 1.3.2", + "inotify-sys", + "libc", ] [[package]] -name = "io-uring" -version = "0.7.10" +name = "inotify-sys" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b" +checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" dependencies = [ - "bitflags", - "cfg-if", "libc", ] +[[package]] +name = "integer-encoding" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bb03732005da905c88227371639bf1ad885cc712789c011c31c5fb3ab3ccf02" + [[package]] name = "ipaddress" version = "0.1.3" @@ -2579,23 +1659,17 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.10", + "socket2", "widestring", "windows-sys 0.48.0", - "winreg", + "winreg 0.50.0", ] [[package]] name = "ipnet" -version = "2.11.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" - -[[package]] -name = "is_terminal_polyfill" -version = "1.70.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itertools" @@ -2606,47 +1680,27 @@ 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" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" -dependencies = [ - "either", -] - [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.34" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ - "getrandom 0.3.3", "libc", ] [[package]] name = "js-sys" -version = "0.3.78" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ - "once_cell", "wasm-bindgen", ] @@ -2669,10 +1723,25 @@ dependencies = [ ] [[package]] -name = "konst" -version = "0.3.16" +name = "jsonwebtoken" +version = "9.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4381b9b00c55f251f2ebe9473aef7c117e96828def1a7cb3bd3f0f903c6894e9" +checksum = "b9ae10193d25051e74945f1ea2d0b42e03cc3b890f7e4cc5faa44997d808193f" +dependencies = [ + "base64 0.21.7", + "js-sys", + "pem", + "ring", + "serde", + "serde_json", + "simple_asn1", +] + +[[package]] +name = "konst" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50a0ba6de5f7af397afff922f22c149ff605c766cd3269cf6c1cd5e466dbe3b9" dependencies = [ "const_panic", "konst_kernel", @@ -2681,118 +1750,79 @@ dependencies = [ [[package]] name = "konst_kernel" -version = "0.3.15" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4b1eb7788f3824c629b1116a7a9060d6e898c358ebff59070093d51103dcc3c" +checksum = "be0a455a1719220fd6adf756088e1c69a85bf14b6a9e24537a5cc04f503edb2b" dependencies = [ "typewit", ] [[package]] -name = "lazy-regex" -version = "3.4.1" +name = "kqueue" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60c7310b93682b36b98fa7ea4de998d3463ccbebd94d935d6b48ba5b6ffa7126" +checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" dependencies = [ - "lazy-regex-proc_macros", - "once_cell", - "regex", + "kqueue-sys", + "libc", ] [[package]] -name = "lazy-regex-proc_macros" -version = "3.4.1" +name = "kqueue-sys" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ba01db5ef81e17eb10a5e0f2109d1b3a3e29bac3070fdbd7d156bf7dbd206a1" +checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" dependencies = [ - "proc-macro2", - "quote", - "regex", - "syn 2.0.106", + "bitflags 1.3.2", + "libc", ] [[package]] name = "lazy_static" -version = "1.5.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] -name = "lber" -version = "0.4.2" +name = "lazycell" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2df7f9fd9f64cf8f59e1a4a0753fe7d575a5b38d3d7ac5758dcee9357d83ef0a" -dependencies = [ - "bytes", - "nom", -] - -[[package]] -name = "ldap3" -version = "0.11.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "166199a8207874a275144c8a94ff6eed5fcbf5c52303e4d9b4d53a0c7ac76554" -dependencies = [ - "async-trait", - "bytes", - "futures", - "futures-util", - "lazy_static", - "lber", - "log", - "nom", - "percent-encoding", - "ring 0.16.20", - "rustls 0.21.12", - "rustls-native-certs 0.6.3", - "thiserror 1.0.69", - "tokio", - "tokio-rustls 0.24.1", - "tokio-stream", - "tokio-util", - "url", - "x509-parser", -] - -[[package]] -name = "lebe" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.175" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" - -[[package]] -name = "libfuzzer-sys" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404" -dependencies = [ - "arbitrary", - "cc", -] +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libloading" -version = "0.8.8" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" +checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-targets 0.53.3", + "windows-targets 0.52.5", +] + +[[package]] +name = "libsqlite3-sys" +version = "0.28.0" +source = "git+https://github.com/rusqlite/rusqlite?rev=e00b626e2b1c67347d789fb7f600281705c89381#e00b626e2b1c67347d789fb7f600281705c89381" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", ] [[package]] name = "libz-sys" -version = "1.1.22" +version = "1.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b70e7a7df205e92a1a4cd9aaae7898dac0aa555503cc0a649494d0d60e7651d" +checksum = "5e143b5e666b2695d28f6bca6497720813f699c9602dd7f5cac91008b8ada7f9" dependencies = [ "cc", + "libc", "pkg-config", "vcpkg", ] @@ -2803,29 +1833,11 @@ version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" -[[package]] -name = "linux-raw-sys" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" - -[[package]] -name = "litemap" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" - -[[package]] -name = "litrs" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed" - [[package]] name = "lock_api" -version = "0.4.13" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -2833,41 +1845,15 @@ dependencies = [ [[package]] name = "log" -version = "0.4.28" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "loole" -version = "0.4.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a3932a13b27d6b2d37efec3e4047017d59a8c9f2283a29bde29151d22f00fe9" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "loom" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "419e0dc8046cb947daa77eb95ae174acfbddb7673b4151f56d1eed8e93fbfaca" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "loop9" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" -dependencies = [ - "imgref", -] +checksum = "c6725f0feab07fcf90f6de5417c06d7fef976fa6e5912fa9e21cb5e4dc6ae5da" [[package]] name = "lru-cache" @@ -2878,17 +1864,11 @@ dependencies = [ "linked-hash-map", ] -[[package]] -name = "lru-slab" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" - [[package]] name = "lz4-sys" -version = "1.11.1+lz4-1.10.0" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bd8c0d6c6ed0cd30b3652886bb8711dc4bb01d637a68105a3d5158039b418e6" +checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900" dependencies = [ "cc", "libc", @@ -2932,6 +1912,12 @@ dependencies = [ "xml5ever", ] +[[package]] +name = "match_cfg" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" + [[package]] name = "matchers" version = "0.1.0" @@ -2947,21 +1933,11 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" -[[package]] -name = "maybe-rayon" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" -dependencies = [ - "cfg-if", - "rayon", -] - [[package]] name = "memchr" -version = "2.7.5" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "mime" @@ -2969,45 +1945,6 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" -[[package]] -name = "minicbor" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f182275033b808ede9427884caa8e05fa7db930801759524ca7925bd8aa7a82" -dependencies = [ - "minicbor-derive", -] - -[[package]] -name = "minicbor-derive" -version = "0.18.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b17290c95158a760027059fe3f511970d6857e47ff5008f9e09bffe3d3e1c6af" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "minicbor-serde" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bbf243b8cc68a7a76473b14328d3546fb002ae3d069227794520e9181003de9" -dependencies = [ - "minicbor", - "serde", -] - -[[package]] -name = "minimad" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c5d708226d186590a7b6d4a9780e2bdda5f689e0d58cd17012a298efd745d2" -dependencies = [ - "once_cell", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -3016,53 +1953,24 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.8.9" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ - "adler2", + "adler", "simd-adler32", ] [[package]] name = "mio" -version = "1.0.4" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "log", - "wasi 0.11.1+wasi-snapshot-preview1", - "windows-sys 0.59.0", -] - -[[package]] -name = "moka" -version = "0.12.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9321642ca94a4282428e6ea4af8cc2ca4eac48ac7a6a4ea8f33f76d0ce70926" -dependencies = [ - "crossbeam-channel", - "crossbeam-epoch", - "crossbeam-utils", - "loom", - "parking_lot", - "portable-atomic", - "rustc_version", - "smallvec", - "tagptr", - "thiserror 1.0.69", - "uuid", -] - -[[package]] -name = "moxcms" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd32fa8935aeadb8a8a6b6b351e40225570a37c43de67690383d87ef170cd08" -dependencies = [ - "num-traits", - "pxfm", + "wasi", + "windows-sys 0.48.0", ] [[package]] @@ -3073,11 +1981,11 @@ checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" [[package]] name = "nix" -version = "0.30.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" +checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ - "bitflags", + "bitflags 2.5.0", "cfg-if", "cfg_aliases", "libc", @@ -3094,16 +2002,37 @@ dependencies = [ ] [[package]] -name = "nonempty" -version = "0.7.0" +name = "notify" +version = "6.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9e591e719385e6ebaeb5ce5d3887f7d5676fceca6411d1925ccc95745f3d6f7" +checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" +dependencies = [ + "bitflags 2.5.0", + "crossbeam-channel", + "filetime", + "fsevent-sys", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "walkdir", + "windows-sys 0.48.0", +] [[package]] -name = "noop_proc_macro" -version = "0.3.0" +name = "notify-debouncer-full" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" +checksum = "49f5dab59c348b9b50cf7f261960a20e389feb2713636399cd9082cd4b536154" +dependencies = [ + "crossbeam-channel", + "file-id", + "log", + "notify", + "parking_lot", + "walkdir", +] [[package]] name = "nu-ansi-term" @@ -3131,9 +2060,9 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.4.6" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" dependencies = [ "num-integer", "num-traits", @@ -3154,17 +2083,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" -[[package]] -name = "num-derive" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - [[package]] name = "num-integer" version = "0.1.46" @@ -3207,9 +2125,9 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.17.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ "hermit-abi", "libc", @@ -3217,135 +2135,113 @@ dependencies = [ [[package]] name = "object" -version = "0.36.7" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ "memchr", ] -[[package]] -name = "oid-registry" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" -dependencies = [ - "asn1-rs", -] - [[package]] name = "once_cell" -version = "1.21.3" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" -dependencies = [ - "critical-section", - "portable-atomic", -] - -[[package]] -name = "once_cell_polyfill" -version = "1.70.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "openssl-probe" -version = "0.1.6" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "opentelemetry" -version = "0.30.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaf416e4cb72756655126f7dd7bb0af49c674f4c1b9903e80c009e0c37e552e6" +checksum = "1e32339a5dc40459130b3bd269e9892439f55b33e772d2a9d402a789baaf4e8a" dependencies = [ "futures-core", "futures-sink", + "indexmap 2.2.6", "js-sys", + "once_cell", "pin-project-lite", - "thiserror 2.0.16", - "tracing", + "thiserror", + "urlencoding", ] [[package]] -name = "opentelemetry-http" -version = "0.30.0" +name = "opentelemetry-jaeger" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f6639e842a97dbea8886e3439710ae463120091e2e064518ba8e716e6ac36d" +checksum = "e617c66fd588e40e0dbbd66932fdc87393095b125d4459b1a3a10feb1712f8a1" dependencies = [ "async-trait", - "bytes", - "http", + "futures-core", + "futures-util", "opentelemetry", - "reqwest", -] - -[[package]] -name = "opentelemetry-jaeger-propagator" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090b8ec07bb2e304b529581aa1fe530d7861298c9ef549ebbf44a4a56472c539" -dependencies = [ - "opentelemetry", -] - -[[package]] -name = "opentelemetry-otlp" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbee664a43e07615731afc539ca60c6d9f1a9425e25ca09c57bc36c87c55852b" -dependencies = [ - "http", - "opentelemetry", - "opentelemetry-http", - "opentelemetry-proto", + "opentelemetry-semantic-conventions", "opentelemetry_sdk", - "prost", - "reqwest", - "thiserror 2.0.16", - "tracing", + "thrift", + "tokio", ] [[package]] -name = "opentelemetry-proto" -version = "0.30.0" +name = "opentelemetry-semantic-conventions" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e046fd7660710fe5a05e8748e70d9058dc15c94ba914e7c4faa7c728f0e8ddc" +checksum = "f5774f1ef1f982ef2a447f6ee04ec383981a3ab99c8e77a1a7b30182e65bbc84" dependencies = [ "opentelemetry", - "opentelemetry_sdk", - "prost", - "tonic 0.13.1", ] [[package]] name = "opentelemetry_sdk" -version = "0.30.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11f644aa9e5e31d11896e024305d7e3c98a88884d9f8919dbf37a9991bc47a4b" +checksum = "2f16aec8a98a457a52664d69e0091bac3a0abd18ead9b641cb00202ba4e0efe4" dependencies = [ + "async-trait", + "crossbeam-channel", "futures-channel", "futures-executor", "futures-util", + "glob", + "once_cell", "opentelemetry", + "ordered-float 4.2.0", "percent-encoding", - "rand 0.9.2", - "serde_json", - "thiserror 2.0.16", + "rand", + "thiserror", "tokio", "tokio-stream", ] [[package]] -name = "os_info" -version = "3.12.0" +name = "ordered-float" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0e1ac5fde8d43c34139135df8ea9ee9465394b2d8d20f032d38998f64afffc3" +checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-float" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a76df7075c7d4d01fdcb46c912dd17fba5b60c78ea480b475f2b6ab6f666584e" +dependencies = [ + "num-traits", +] + +[[package]] +name = "os_info" +version = "3.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092" dependencies = [ "log", - "plist", "serde", "windows-sys 0.52.0", ] @@ -3356,17 +2252,11 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "parking" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" - [[package]] name = "parking_lot" -version = "0.12.4" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13" +checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb" dependencies = [ "lock_api", "parking_lot_core", @@ -3374,18 +2264,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.11" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ - "backtrace", "cfg-if", "libc", - "petgraph", - "redox_syscall", + "redox_syscall 0.5.1", "smallvec", - "thread-id", - "windows-targets 0.52.6", + "windows-targets 0.52.5", ] [[package]] @@ -3395,7 +2282,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" dependencies = [ "base64ct", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -3425,88 +2312,107 @@ dependencies = [ "proc-macro2", "proc-macro2-diagnostics", "quote", - "syn 2.0.106", + "syn 2.0.64", +] + +[[package]] +name = "pem" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae" +dependencies = [ + "base64 0.22.1", + "serde", ] [[package]] name = "percent-encoding" -version = "2.3.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" - -[[package]] -name = "petgraph" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" -dependencies = [ - "fixedbitset", - "indexmap 2.11.1", -] +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "phf" -version = "0.11.3" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_shared", + "phf_shared 0.11.2", ] [[package]] name = "phf_codegen" -version = "0.11.3" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.11.2", + "phf_shared 0.11.2", ] [[package]] name = "phf_generator" -version = "0.11.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ - "phf_shared", - "rand 0.8.5", + "phf_shared 0.10.0", + "rand", +] + +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared 0.11.2", + "rand", ] [[package]] name = "phf_shared" -version = "0.11.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" dependencies = [ "siphasher", ] [[package]] name = "pin-project" -version = "1.1.10" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.10" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "pin-project-lite" -version = "0.2.16" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -3526,51 +2432,29 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.32" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] -name = "plist" -version = "1.7.4" +name = "platforms" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1" -dependencies = [ - "base64 0.22.1", - "indexmap 2.11.1", - "quick-xml", - "serde", - "time", -] +checksum = "db23d408679286588f4d4644f965003d056e3dd5abcaaa938116871d7ce2fee7" [[package]] name = "png" -version = "0.18.0" +version = "0.17.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0" +checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1" dependencies = [ - "bitflags", + "bitflags 1.3.2", "crc32fast", "fdeflate", "flate2", "miniz_oxide", ] -[[package]] -name = "portable-atomic" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" - -[[package]] -name = "potential_utf" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a" -dependencies = [ - "zerovec", -] - [[package]] name = "powerfmt" version = "0.2.0" @@ -3579,12 +2463,9 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.21" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" -dependencies = [ - "zerocopy", -] +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "precomputed-hash" @@ -3592,30 +2473,20 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" -[[package]] -name = "prettyplease" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" -dependencies = [ - "proc-macro2", - "syn 2.0.106", -] - [[package]] name = "proc-macro-crate" -version = "3.3.0" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" dependencies = [ - "toml_edit", + "toml_edit 0.21.1", ] [[package]] name = "proc-macro2" -version = "1.0.101" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" +checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b" dependencies = [ "unicode-ident", ] @@ -3628,35 +2499,16 @@ checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", "version_check", "yansi", ] -[[package]] -name = "profiling" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773" -dependencies = [ - "profiling-procmacros", -] - -[[package]] -name = "profiling-procmacros" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b" -dependencies = [ - "quote", - "syn 2.0.106", -] - [[package]] name = "prost" -version = "0.13.5" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" +checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" dependencies = [ "bytes", "prost-derive", @@ -3664,147 +2516,41 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.13.5" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" +checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48" dependencies = [ "anyhow", - "itertools 0.14.0", + "itertools", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "prost-types" -version = "0.13.5" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" +checksum = "3235c33eb02c1f1e212abdbe34c78b264b038fb58ca612664343271e36e55ffe" dependencies = [ "prost", ] -[[package]] -name = "pulldown-cmark" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e8bbe1a966bd2f362681a44f6edce3c2310ac21e4d5067a6e7ec396297a6ea0" -dependencies = [ - "bitflags", - "memchr", - "pulldown-cmark-escape", - "unicase", -] - -[[package]] -name = "pulldown-cmark-escape" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae" - -[[package]] -name = "pxfm" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55f4fedc84ed39cb7a489322318976425e42a147e2be79d8f878e2884f94e84" -dependencies = [ - "num-traits", -] - -[[package]] -name = "qoi" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" -dependencies = [ - "bytemuck", -] - [[package]] name = "quick-error" -version = "2.0.1" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" - -[[package]] -name = "quick-xml" -version = "0.38.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42a232e7487fc2ef313d96dde7948e7a3c05101870d8985e4fd8d26aedd27b89" -dependencies = [ - "memchr", -] - -[[package]] -name = "quinn" -version = "0.11.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" -dependencies = [ - "bytes", - "cfg_aliases", - "pin-project-lite", - "quinn-proto", - "quinn-udp", - "rustc-hash", - "rustls 0.23.31", - "socket2 0.6.0", - "thiserror 2.0.16", - "tokio", - "tracing", - "web-time", -] - -[[package]] -name = "quinn-proto" -version = "0.11.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" -dependencies = [ - "bytes", - "getrandom 0.3.3", - "lru-slab", - "rand 0.9.2", - "ring 0.17.14", - "rustc-hash", - "rustls 0.23.31", - "rustls-pki-types", - "slab", - "thiserror 2.0.16", - "tinyvec", - "tracing", - "web-time", -] - -[[package]] -name = "quinn-udp" -version = "0.5.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" -dependencies = [ - "cfg_aliases", - "libc", - "once_cell", - "socket2 0.6.0", - "tracing", - "windows-sys 0.60.2", -] +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quote" -version = "1.0.40" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] -[[package]] -name = "r-efi" -version = "5.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" - [[package]] name = "rand" version = "0.8.5" @@ -3812,18 +2558,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" -dependencies = [ - "rand_chacha 0.9.0", - "rand_core 0.9.3", + "rand_chacha", + "rand_core", ] [[package]] @@ -3833,17 +2569,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", - "rand_core 0.9.3", + "rand_core", ] [[package]] @@ -3852,118 +2578,37 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.16", -] - -[[package]] -name = "rand_core" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" -dependencies = [ - "getrandom 0.3.3", -] - -[[package]] -name = "rav1e" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9" -dependencies = [ - "arbitrary", - "arg_enum_proc_macro", - "arrayvec", - "av1-grain", - "bitstream-io", - "built 0.7.7", - "cfg-if", - "interpolate_name", - "itertools 0.12.1", - "libc", - "libfuzzer-sys", - "log", - "maybe-rayon", - "new_debug_unreachable", - "noop_proc_macro", - "num-derive", - "num-traits", - "once_cell", - "paste", - "profiling", - "rand 0.8.5", - "rand_chacha 0.3.1", - "simd_helpers", - "system-deps", - "thiserror 1.0.69", - "v_frame", - "wasm-bindgen", -] - -[[package]] -name = "ravif" -version = "0.11.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5825c26fddd16ab9f515930d49028a630efec172e903483c94796cfe31893e6b" -dependencies = [ - "avif-serialize", - "imgref", - "loop9", - "quick-error", - "rav1e", - "rayon", - "rgb", -] - -[[package]] -name = "rayon" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "recaptcha-verify" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d694033c2b0abdbb8893edfb367f16270e790be4a67e618206d811dbe4efee4" -dependencies = [ - "reqwest", - "serde", - "serde_json", + "getrandom", ] [[package]] name = "redox_syscall" -version = "0.5.17" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ - "bitflags", + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" +dependencies = [ + "bitflags 2.5.0", ] [[package]] name = "regex" -version = "1.11.2" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.10", - "regex-syntax 0.8.6", + "regex-automata 0.4.6", + "regex-syntax 0.8.3", ] [[package]] @@ -3977,13 +2622,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.10" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.6", + "regex-syntax 0.8.3", ] [[package]] @@ -3994,15 +2639,15 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.6" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "reqwest" -version = "0.12.15" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" +checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" dependencies = [ "async-compression", "base64 0.22.1", @@ -4010,12 +2655,11 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2", - "hickory-resolver 0.24.4", - "http", - "http-body", + "hickory-resolver", + "http 1.1.0", + "http-body 1.0.0", "http-body-util", - "hyper", + "hyper 1.3.1", "hyper-rustls", "hyper-util", "ipnet", @@ -4025,79 +2669,56 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "quinn", - "rustls 0.23.31", - "rustls-native-certs 0.8.1", - "rustls-pemfile 2.2.0", + "rustls 0.22.4", + "rustls-native-certs", + "rustls-pemfile", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", - "sync_wrapper", + "sync_wrapper 0.1.2", "tokio", - "tokio-rustls 0.26.2", + "tokio-rustls 0.25.0", "tokio-socks", "tokio-util", - "tower 0.5.2", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "webpki-roots 0.26.11", - "windows-registry", + "webpki-roots 0.26.1", + "winreg 0.52.0", ] [[package]] name = "resolv-conf" -version = "0.7.4" -source = "git+https://forgejo.ellis.link/continuwuation/resolv-conf?rev=56251316cc4127bcbf36e68ce5e2093f4d33e227#56251316cc4127bcbf36e68ce5e2093f4d33e227" - -[[package]] -name = "rgb" -version = "0.8.52" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce" - -[[package]] -name = "ring" -version = "0.16.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00" dependencies = [ - "cc", - "libc", - "once_cell", - "spin", - "untrusted 0.7.1", - "web-sys", - "winapi", + "hostname 0.3.1", + "quick-error", ] [[package]] name = "ring" -version = "0.17.14" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.16", + "getrandom", "libc", - "untrusted 0.9.0", + "spin", + "untrusted", "windows-sys 0.52.0", ] -[[package]] -name = "roff" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88f8660c1ff60292143c98d08fc6e2f654d722db50410e3f3797d40baaf9d8f3" - [[package]] name = "ruma" -version = "0.10.1" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +version = "0.10.0" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "assign", "js_int", @@ -4107,17 +2728,17 @@ dependencies = [ "ruma-common", "ruma-events", "ruma-federation-api", - "ruma-identifiers-validation", "ruma-identity-service-api", "ruma-push-gateway-api", "ruma-signatures", - "web-time", + "ruma-state-res", + "web-time 1.1.0", ] [[package]] name = "ruma-appservice-api" version = "0.10.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "js_int", "ruma-common", @@ -4129,13 +2750,13 @@ dependencies = [ [[package]] name = "ruma-client-api" version = "0.18.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "as_variant", "assign", "bytes", "date_header", - "http", + "http 1.1.0", "js_int", "js_option", "maplit", @@ -4144,103 +2765,87 @@ dependencies = [ "serde", "serde_html_form", "serde_json", - "thiserror 2.0.16", - "url", - "web-time", + "thiserror", + "web-time 1.1.0", ] [[package]] name = "ruma-common" version = "0.13.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "as_variant", "base64 0.22.1", "bytes", "form_urlencoded", - "getrandom 0.2.16", - "http", - "indexmap 2.11.1", + "http 1.1.0", + "indexmap 2.2.6", "js_int", "konst", "percent-encoding", - "rand 0.8.5", + "rand", "regex", "ruma-identifiers-validation", "ruma-macros", "serde", "serde_html_form", "serde_json", - "smallvec", - "thiserror 2.0.16", + "thiserror", "time", "tracing", "url", "uuid", - "web-time", + "web-time 1.1.0", "wildmatch", ] [[package]] name = "ruma-events" -version = "0.28.1" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +version = "0.28.0" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "as_variant", - "indexmap 2.11.1", + "indexmap 2.2.6", "js_int", "js_option", "percent-encoding", - "pulldown-cmark", "regex", "ruma-common", "ruma-identifiers-validation", "ruma-macros", "serde", "serde_json", - "smallvec", - "thiserror 2.0.16", + "thiserror", "tracing", "url", - "web-time", "wildmatch", ] [[package]] name = "ruma-federation-api" version = "0.9.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ - "bytes", - "headers", - "http", - "http-auth", - "httparse", "js_int", - "memchr", - "mime", - "rand 0.8.5", "ruma-common", "ruma-events", "serde", "serde_json", - "thiserror 2.0.16", - "tracing", ] [[package]] name = "ruma-identifiers-validation" version = "0.9.5" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "js_int", - "thiserror 2.0.16", + "thiserror", ] [[package]] name = "ruma-identity-service-api" version = "0.9.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "js_int", "ruma-common", @@ -4250,22 +2855,22 @@ dependencies = [ [[package]] name = "ruma-macros" version = "0.13.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ - "cfg-if", + "once_cell", "proc-macro-crate", "proc-macro2", "quote", "ruma-identifiers-validation", "serde", - "syn 2.0.106", - "toml 0.8.23", + "syn 2.0.64", + "toml", ] [[package]] name = "ruma-push-gateway-api" version = "0.9.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "js_int", "ruma-common", @@ -4277,23 +2882,51 @@ dependencies = [ [[package]] name = "ruma-signatures" version = "0.15.0" -source = "git+https://forgejo.ellis.link/continuwuation/ruwuma?rev=8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd#8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" dependencies = [ "base64 0.22.1", "ed25519-dalek", "pkcs8", - "rand 0.8.5", + "rand", "ruma-common", "serde_json", "sha2", "subslice", - "thiserror 2.0.16", + "thiserror", +] + +[[package]] +name = "ruma-state-res" +version = "0.11.0" +source = "git+https://github.com/girlbossceo/ruma?branch=conduwuit-changes#62aca1e976d0c161d5b2c413bde6d0079f75f3ee" +dependencies = [ + "itertools", + "js_int", + "ruma-common", + "ruma-events", + "serde", + "serde_json", + "thiserror", + "tracing", +] + +[[package]] +name = "rusqlite" +version = "0.31.0" +source = "git+https://github.com/rusqlite/rusqlite?rev=e00b626e2b1c67347d789fb7f600281705c89381#e00b626e2b1c67347d789fb7f600281705c89381" +dependencies = [ + "bitflags 2.5.0", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", ] [[package]] name = "rust-librocksdb-sys" -version = "0.38.0+10.4.2" -source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=99b0319416b64830dd6f8943e1f65e15aeef18bc#99b0319416b64830dd6f8943e1f65e15aeef18bc" +version = "0.21.0+9.1.1" +source = "git+https://github.com/zaidoon1/rust-rocksdb?branch=master#6f0afedb3c29239b1d8a15a97ed8e6b74e0a9b33" dependencies = [ "bindgen", "bzip2-sys", @@ -4309,8 +2942,8 @@ dependencies = [ [[package]] name = "rust-rocksdb" -version = "0.42.1" -source = "git+https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1?rev=99b0319416b64830dd6f8943e1f65e15aeef18bc#99b0319416b64830dd6f8943e1f65e15aeef18bc" +version = "0.25.0" +source = "git+https://github.com/zaidoon1/rust-rocksdb?branch=master#6f0afedb3c29239b1d8a15a97ed8e6b74e0a9b33" dependencies = [ "libc", "rust-librocksdb-sys", @@ -4318,47 +2951,25 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.26" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.1.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustc_version" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ "semver", ] -[[package]] -name = "rusticata-macros" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" -dependencies = [ - "nom", -] - -[[package]] -name = "rustix" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.61.0", -] - [[package]] name = "rustls" version = "0.21.12" @@ -4366,78 +2977,53 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", - "ring 0.17.14", + "ring", "rustls-webpki 0.101.7", "sct", ] [[package]] name = "rustls" -version = "0.23.31" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" dependencies = [ - "aws-lc-rs", "log", - "once_cell", - "ring 0.17.14", + "ring", "rustls-pki-types", - "rustls-webpki 0.103.4", + "rustls-webpki 0.102.4", "subtle", "zeroize", ] [[package]] name = "rustls-native-certs" -version = "0.6.3" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" -dependencies = [ - "openssl-probe", - "rustls-pemfile 1.0.4", - "schannel", - "security-framework 2.11.1", -] - -[[package]] -name = "rustls-native-certs" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" dependencies = [ "openssl-probe", + "rustls-pemfile", "rustls-pki-types", "schannel", - "security-framework 3.4.0", + "security-framework", ] [[package]] name = "rustls-pemfile" -version = "1.0.4" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" -dependencies = [ - "base64 0.21.7", -] - -[[package]] -name = "rustls-pemfile" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" dependencies = [ + "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.12.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" -dependencies = [ - "web-time", - "zeroize", -] +checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-webpki" @@ -4445,72 +3031,61 @@ version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ - "ring 0.17.14", - "untrusted 0.9.0", + "ring", + "untrusted", ] [[package]] name = "rustls-webpki" -version = "0.103.4" +version = "0.102.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc" +checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" dependencies = [ - "aws-lc-rs", - "ring 0.17.14", + "ring", "rustls-pki-types", - "untrusted 0.9.0", + "untrusted", ] [[package]] name = "rustversion" -version = "1.0.22" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" - -[[package]] -name = "rustyline-async" -version = "0.4.6" -source = "git+https://forgejo.ellis.link/continuwuation/rustyline-async?rev=e9f01cf8c6605483cb80b3b0309b400940493d7f#e9f01cf8c6605483cb80b3b0309b400940493d7f" -dependencies = [ - "crossterm", - "futures-util", - "pin-project", - "thingbuf", - "thiserror 2.0.16", - "unicode-segmentation", - "unicode-width 0.2.1", -] +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "ryu" -version = "1.0.20" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] [[package]] name = "sanitize-filename" -version = "0.6.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc984f4f9ceb736a7bb755c3e3bd17dc56370af2600c9780dcc48c66453da34d" +checksum = "2ed72fbaf78e6f2d41744923916966c4fbe3d7c74e3037a8ee482f1115572603" dependencies = [ + "lazy_static", "regex", ] [[package]] name = "schannel" -version = "0.1.28" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "windows-sys 0.61.0", + "windows-sys 0.52.0", ] -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - [[package]] name = "scopeguard" version = "1.2.0" @@ -4523,40 +3098,24 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring 0.17.14", - "untrusted 0.9.0", + "ring", + "untrusted", ] [[package]] name = "sd-notify" -version = "0.4.5" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b943eadf71d8b69e661330cb0e2656e31040acf21ee7708e2c238a0ec6af2bf4" -dependencies = [ - "libc", -] +checksum = "621e3680f3e07db4c9c2c3fb07c6223ab2fab2e54bd3c04c3ae037990f428c32" [[package]] name = "security-framework" -version = "2.11.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags", - "core-foundation 0.9.4", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework" -version = "3.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b369d18893388b345804dc0007963c99b7d665ae71d275812d828c6f089640" -dependencies = [ - "bitflags", - "core-foundation 0.10.1", + "bitflags 2.5.0", + "core-foundation", "core-foundation-sys", "libc", "security-framework-sys", @@ -4564,9 +3123,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.15.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" dependencies = [ "core-foundation-sys", "libc", @@ -4574,19 +3133,19 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.26" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "sentry" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989425268ab5c011e06400187eed6c298272f8ef913e49fcadc3fda788b45030" +checksum = "00421ed8fa0c995f07cde48ba6c89e80f2b312f74ff637326f392fbfd23abe02" dependencies = [ "httpdate", "reqwest", - "rustls 0.23.31", + "rustls 0.21.12", "sentry-backtrace", "sentry-contexts", "sentry-core", @@ -4597,26 +3156,28 @@ dependencies = [ "sentry-tracing", "tokio", "ureq", + "webpki-roots 0.25.4", ] [[package]] name = "sentry-backtrace" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68e299dd3f7bcf676875eee852c9941e1d08278a743c32ca528e2debf846a653" +checksum = "a79194074f34b0cbe5dd33896e5928bbc6ab63a889bd9df2264af5acb186921e" dependencies = [ "backtrace", + "once_cell", "regex", "sentry-core", ] [[package]] name = "sentry-contexts" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fac0c5d6892cd4c414492fc957477b620026fb3411fca9fa12774831da561c88" +checksum = "eba8870c5dba2bfd9db25c75574a11429f6b95957b0a78ac02e2970dd7a5249a" dependencies = [ - "hostname", + "hostname 0.4.0", "libc", "os_info", "rustc_version", @@ -4626,32 +3187,33 @@ dependencies = [ [[package]] name = "sentry-core" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deaa38b94e70820ff3f1f9db3c8b0aef053b667be130f618e615e0ff2492cbcc" +checksum = "46a75011ea1c0d5c46e9e57df03ce81f5c7f0a9e199086334a1f9c0a541e0826" dependencies = [ - "rand 0.9.2", + "once_cell", + "rand", "sentry-types", "serde", "serde_json", - "url", ] [[package]] name = "sentry-debug-images" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00950648aa0d371c7f57057434ad5671bd4c106390df7e7284739330786a01b6" +checksum = "7ec2a486336559414ab66548da610da5e9626863c3c4ffca07d88f7dc71c8de8" dependencies = [ "findshlibs", + "once_cell", "sentry-core", ] [[package]] name = "sentry-log" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670f08baf70058926b0fa60c8f10218524ef0cb1a1634b0388a4123bdec6288c" +checksum = "e74b7261245ff17a8c48e8f3e1e96fb6b84146870121af880d53aef6a5b4f784" dependencies = [ "log", "sentry-core", @@ -4659,9 +3221,9 @@ dependencies = [ [[package]] name = "sentry-panic" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b7a23b13c004873de3ce7db86eb0f59fe4adfc655a31f7bbc17fd10bacc9bfe" +checksum = "2eaa3ecfa3c8750c78dcfd4637cfa2598b95b52897ed184b4dc77fcf7d95060d" dependencies = [ "sentry-backtrace", "sentry-core", @@ -4669,11 +3231,11 @@ dependencies = [ [[package]] name = "sentry-tower" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a303d0127d95ae928a937dcc0886931d28b4186e7338eea7d5786827b69b002" +checksum = "df141464944fdf8e2a6f2184eb1d973a20456466f788346b6e3a51791cdaa370" dependencies = [ - "http", + "http 1.1.0", "pin-project", "sentry-core", "tower-layer", @@ -4683,11 +3245,10 @@ dependencies = [ [[package]] name = "sentry-tracing" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fac841c7050aa73fc2bec8f7d8e9cb1159af0b3095757b99820823f3e54e5080" +checksum = "f715932bf369a61b7256687c6f0554141b7ce097287e30e3f7ed6e9de82498fe" dependencies = [ - "bitflags", "sentry-backtrace", "sentry-core", "tracing-core", @@ -4696,16 +3257,16 @@ dependencies = [ [[package]] name = "sentry-types" -version = "0.42.0" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e477f4d4db08ddb4ab553717a8d3a511bc9e81dde0c808c680feacbb8105c412" +checksum = "4519c900ce734f7a0eb7aba0869dfb225a7af8820634a7dd51449e3b093cfb7c" dependencies = [ "debugid", "hex", - "rand 0.9.2", + "rand", "serde", "serde_json", - "thiserror 2.0.16", + "thiserror", "time", "url", "uuid", @@ -4713,32 +3274,32 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.219" +version = "1.0.202" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "226b61a0d411b2ba5ff6d7f73a476ac4f8bb900373459cd00fab8512828ba395" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.202" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "6048858004bcff69094cd972ed40a32500f153bd3be9f716b2eed2e8217c4838" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "serde_html_form" -version = "0.2.7" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d2de91cf02bbc07cde38891769ccd5d4f073d22a40683aa4bc7a95781aaa2c4" +checksum = "8de514ef58196f1fc96dcaef80fe6170a1ce6215df9687a93fe8300e773fefc5" dependencies = [ "form_urlencoded", - "indexmap 2.11.1", + "indexmap 2.2.6", "itoa", "ryu", "serde", @@ -4746,21 +3307,20 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.143" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", - "memchr", "ryu", "serde", ] [[package]] name = "serde_path_to_error" -version = "0.1.17" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a" +checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" dependencies = [ "itoa", "serde", @@ -4778,18 +3338,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.9" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_spanned" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40734c41988f7306bb04f0ecf60ec0f3f1caa34290e4e8ea471dcd3346483b83" +checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" dependencies = [ "serde", ] @@ -4812,13 +3363,24 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.11.1", + "indexmap 2.2.6", "itoa", "ryu", "serde", "unsafe-libyaml", ] +[[package]] +name = "sha-1" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + [[package]] name = "sha1" version = "0.10.6" @@ -4832,9 +3394,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.9" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", @@ -4856,32 +3418,11 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "signal-hook" -version = "0.3.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" -dependencies = [ - "libc", - "signal-hook-registry", -] - -[[package]] -name = "signal-hook-mio" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" -dependencies = [ - "libc", - "mio", - "signal-hook", -] - [[package]] name = "signal-hook-registry" -version = "1.4.6" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] @@ -4892,7 +3433,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -4902,70 +3443,53 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] -name = "simd_helpers" -version = "0.1.0" +name = "simple_asn1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" +checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" dependencies = [ - "quote", + "num-bigint", + "num-traits", + "thiserror", + "time", ] [[package]] name = "siphasher" -version = "1.0.1" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "slab" -version = "0.4.11" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" - -[[package]] -name = "smallstr" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "862077b1e764f04c251fe82a2ef562fd78d7cadaeb072ca7c2bcaf7217b1ff3b" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ - "serde", - "smallvec", + "autocfg", ] [[package]] name = "smallvec" -version = "1.15.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" -dependencies = [ - "serde", -] +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.10" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", "windows-sys 0.52.0", ] -[[package]] -name = "socket2" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" -dependencies = [ - "libc", - "windows-sys 0.59.0", -] - [[package]] name = "spin" -version = "0.5.2" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" @@ -4977,49 +3501,32 @@ dependencies = [ "der", ] -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - -[[package]] -name = "strict" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f42444fea5b87a39db4218d9422087e66a85d0e7a0963a439b07bcdf91804006" - [[package]] name = "string_cache" -version = "0.8.9" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" dependencies = [ "new_debug_unreachable", + "once_cell", "parking_lot", - "phf_shared", + "phf_shared 0.10.0", "precomputed-hash", "serde", ] [[package]] name = "string_cache_codegen" -version = "0.5.4" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.10.0", + "phf_shared 0.10.0", "proc-macro2", "quote", ] -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - [[package]] name = "subslice" version = "0.2.3" @@ -5031,9 +3538,9 @@ dependencies = [ [[package]] name = "subtle" -version = "2.6.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" @@ -5048,9 +3555,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.106" +version = "2.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" +checksum = "7ad3dee41f36859875573074334c200d1add8e4a87bb37113ebd31d926b7b11f" dependencies = [ "proc-macro2", "quote", @@ -5059,60 +3566,15 @@ dependencies = [ [[package]] name = "sync_wrapper" -version = "1.0.2" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" -dependencies = [ - "futures-core", -] +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" [[package]] -name = "synstructure" -version = "0.12.6" +name = "sync_wrapper" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - -[[package]] -name = "synstructure" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "system-deps" -version = "6.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" -dependencies = [ - "cfg-expr", - "heck", - "pkg-config", - "toml 0.8.23", - "version-compare", -] - -[[package]] -name = "tagptr" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" - -[[package]] -name = "target-lexicon" -version = "0.12.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" +checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" [[package]] name = "tendril" @@ -5125,109 +3587,63 @@ dependencies = [ "utf-8", ] -[[package]] -name = "termimad" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ff5ca043d65d4ea43b65cdb4e3aba119657d0d12caf44f93212ec3168a8e20" -dependencies = [ - "coolor", - "crokey", - "crossbeam", - "lazy-regex", - "minimad", - "serde", - "thiserror 2.0.16", - "unicode-width 0.1.14", -] - -[[package]] -name = "thingbuf" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "662b54ef6f7b4e71f683dadc787bbb2d8e8ef2f91b682ebed3164a5a7abca905" -dependencies = [ - "parking_lot", - "pin-project", -] - [[package]] name = "thiserror" -version = "1.0.69" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18" dependencies = [ - "thiserror-impl 1.0.69", -] - -[[package]] -name = "thiserror" -version = "2.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0" -dependencies = [ - "thiserror-impl 2.0.16", + "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.69" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", -] - -[[package]] -name = "thiserror-impl" -version = "2.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "thread-id" -version = "4.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe8f25bbdd100db7e1d34acf7fd2dc59c4bf8f7483f505eaa7d4f12f76cc0ea" -dependencies = [ - "libc", - "winapi", + "syn 2.0.64", ] [[package]] name = "thread_local" -version = "1.1.9" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ "cfg-if", + "once_cell", ] [[package]] -name = "tiff" -version = "0.10.3" +name = "threadpool" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f" +checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" dependencies = [ - "fax", - "flate2", - "half", - "quick-error", - "weezl", - "zune-jpeg", + "num_cpus", +] + +[[package]] +name = "thrift" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e54bc85fc7faa8bc175c4bab5b92ba8d9a3ce893d0e9f42cc455c8ab16a9e09" +dependencies = [ + "byteorder", + "integer-encoding", + "log", + "ordered-float 2.10.1", + "threadpool", ] [[package]] name = "tikv-jemalloc-ctl" -version = "0.6.0" -source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=82af58d6a13ddd5dcdc7d4e91eae3b63292995b8#82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "619bfed27d807b54f7f776b9430d4f8060e66ee138a28632ca898584d462c31c" dependencies = [ "libc", "paste", @@ -5236,8 +3652,9 @@ dependencies = [ [[package]] name = "tikv-jemalloc-sys" -version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" -source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=82af58d6a13ddd5dcdc7d4e91eae3b63292995b8#82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +version = "0.5.4+5.3.0-patched" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" dependencies = [ "cc", "libc", @@ -5245,8 +3662,9 @@ dependencies = [ [[package]] name = "tikv-jemallocator" -version = "0.6.0" -source = "git+https://forgejo.ellis.link/continuwuation/jemallocator?rev=82af58d6a13ddd5dcdc7d4e91eae3b63292995b8#82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "965fe0c26be5c56c94e38ba547249074803efd52adfb66de62107d95aab3eaca" dependencies = [ "libc", "tikv-jemalloc-sys", @@ -5254,11 +3672,12 @@ dependencies = [ [[package]] name = "time" -version = "0.3.43" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bde6f1ec10e72d583d91623c939f623002284ef622b87de38cfd546cbf2031" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", + "itoa", "num-conv", "powerfmt", "serde", @@ -5268,35 +3687,25 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.6" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.24" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ "num-conv", "time-core", ] -[[package]] -name = "tinystr" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b" -dependencies = [ - "displaydoc", - "zerovec", -] - [[package]] name = "tinyvec" -version = "1.10.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] @@ -5309,45 +3718,42 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.47.1" +version = "1.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" +checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" dependencies = [ "backtrace", "bytes", - "io-uring", "libc", "mio", + "num_cpus", "pin-project-lite", "signal-hook-registry", - "slab", - "socket2 0.6.0", + "socket2", "tokio-macros", "tracing", - "windows-sys 0.59.0", + "windows-sys 0.48.0", +] + +[[package]] +name = "tokio-io-timeout" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" +dependencies = [ + "pin-project-lite", + "tokio", ] [[package]] name = "tokio-macros" -version = "2.5.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", -] - -[[package]] -name = "tokio-metrics" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a01bbf7db0b3f5eee8930a119fe99bfa1438de1095fe3d26b25e652a5933ef3f" -dependencies = [ - "futures-util", - "pin-project-lite", - "tokio", - "tokio-stream", + "syn 2.0.64", ] [[package]] @@ -5362,31 +3768,32 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.2" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" dependencies = [ - "rustls 0.23.31", + "rustls 0.22.4", + "rustls-pki-types", "tokio", ] [[package]] name = "tokio-socks" -version = "0.5.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f" +checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0" dependencies = [ "either", "futures-util", - "thiserror 1.0.69", + "thiserror", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.17" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", "pin-project-lite", @@ -5395,9 +3802,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.16" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14307c986784f72ef81c89db7d9e28d6ac26d16213b109ea501696195e6e3ce5" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", @@ -5408,130 +3815,71 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.23" +version = "0.8.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +checksum = "a4e43f8cc456c9704c851ae29c67e17ef65d2c30017c17a9765b89c382dc8bba" dependencies = [ "serde", - "serde_spanned 0.6.9", - "toml_datetime 0.6.11", - "toml_edit", -] - -[[package]] -name = "toml" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75129e1dc5000bfbaa9fee9d1b21f974f9fbad9daec557a521ee6e080825f6e8" -dependencies = [ - "indexmap 2.11.1", - "serde", - "serde_spanned 1.0.0", - "toml_datetime 0.7.0", - "toml_parser", - "toml_writer", - "winnow", + "serde_spanned", + "toml_datetime", + "toml_edit 0.22.13", ] [[package]] name = "toml_datetime" -version = "0.6.11" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_datetime" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bade1c3e902f58d73d3f294cd7f20391c1cb2fbcb643b73566bc773971df91e3" +checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.22.27" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" dependencies = [ - "indexmap 2.11.1", + "indexmap 2.2.6", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.22.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c127785850e8c20836d49732ae6abfa47616e60bf9d9f57c43c250361a9db96c" +dependencies = [ + "indexmap 2.2.6", "serde", - "serde_spanned 0.6.9", - "toml_datetime 0.6.11", - "toml_write", - "winnow", + "serde_spanned", + "toml_datetime", + "winnow 0.6.8", ] -[[package]] -name = "toml_parser" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b551886f449aa90d4fe2bdaa9f4a2577ad2dde302c61ecf262d80b116db95c10" -dependencies = [ - "winnow", -] - -[[package]] -name = "toml_write" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" - -[[package]] -name = "toml_writer" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc842091f2def52017664b53082ecbbeb5c7731092bad69d2c63050401dfd64" - [[package]] name = "tonic" -version = "0.12.3" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" +checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" dependencies = [ "async-stream", "async-trait", - "axum", - "base64 0.22.1", + "axum 0.6.20", + "base64 0.21.7", "bytes", - "h2", - "http", - "http-body", - "http-body-util", - "hyper", + "h2 0.3.26", + "http 0.2.12", + "http-body 0.4.6", + "hyper 0.14.28", "hyper-timeout", - "hyper-util", "percent-encoding", "pin-project", "prost", - "socket2 0.5.10", "tokio", "tokio-stream", - "tower 0.4.13", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tonic" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e581ba15a835f4d9ea06c55ab1bd4dce26fc53752c69a04aac00703bfb49ba9" -dependencies = [ - "async-trait", - "base64 0.22.1", - "bytes", - "http", - "http-body", - "http-body-util", - "percent-encoding", - "pin-project", - "prost", - "tokio-stream", + "tower", "tower-layer", "tower-service", "tracing", @@ -5548,7 +3896,7 @@ dependencies = [ "indexmap 1.9.3", "pin-project", "pin-project-lite", - "rand 0.8.5", + "rand", "slab", "tokio", "tokio-util", @@ -5558,38 +3906,23 @@ dependencies = [ ] [[package]] -name = "tower" +name = "tower-http" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" -dependencies = [ - "futures-core", - "futures-util", - "pin-project-lite", - "sync_wrapper", - "tokio", - "tower-layer", - "tower-service", -] - -[[package]] -name = "tower-http" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" dependencies = [ "async-compression", - "bitflags", + "bitflags 2.5.0", "bytes", "futures-core", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.0", "http-body-util", "pin-project-lite", "tokio", "tokio-util", - "tower 0.5.2", + "tower", "tower-layer", "tower-service", "tracing", @@ -5597,21 +3930,22 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.3" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" [[package]] name = "tower-service" -version = "0.3.3" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.41" -source = "git+https://forgejo.ellis.link/continuwuation/tracing?rev=1e64095a8051a1adf0d1faa307f9f030889ec2aa#1e64095a8051a1adf0d1faa307f9f030889ec2aa" +version = "0.1.40" +source = "git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport#b348dca742af641c47bc390261f60711c2af573c" dependencies = [ + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -5619,18 +3953,18 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.28" -source = "git+https://forgejo.ellis.link/continuwuation/tracing?rev=1e64095a8051a1adf0d1faa307f9f030889ec2aa#1e64095a8051a1adf0d1faa307f9f030889ec2aa" +version = "0.1.27" +source = "git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport#b348dca742af641c47bc390261f60711c2af573c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", ] [[package]] name = "tracing-core" -version = "0.1.33" -source = "git+https://forgejo.ellis.link/continuwuation/tracing?rev=1e64095a8051a1adf0d1faa307f9f030889ec2aa#1e64095a8051a1adf0d1faa307f9f030889ec2aa" +version = "0.1.32" +source = "git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport#b348dca742af641c47bc390261f60711c2af573c" dependencies = [ "once_cell", "valuable", @@ -5648,20 +3982,20 @@ dependencies = [ ] [[package]] -name = "tracing-journald" -version = "0.3.1" +name = "tracing-log" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0b4143302cf1022dac868d521e36e8b27691f72c84b3311750d5188ebba657" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" dependencies = [ - "libc", + "log", + "once_cell", "tracing-core", - "tracing-subscriber", ] [[package]] name = "tracing-log" version = "0.2.0" -source = "git+https://forgejo.ellis.link/continuwuation/tracing?rev=1e64095a8051a1adf0d1faa307f9f030889ec2aa#1e64095a8051a1adf0d1faa307f9f030889ec2aa" +source = "git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport#b348dca742af641c47bc390261f60711c2af573c" dependencies = [ "log", "once_cell", @@ -5670,9 +4004,9 @@ dependencies = [ [[package]] name = "tracing-opentelemetry" -version = "0.31.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddcf5959f39507d0d04d6413119c04f33b623f4f951ebcbdddddfad2d0623a9c" +checksum = "c67ac25c5407e7b961fafc6f7e9aa5958fd297aada2d20fa2ae1737357e55596" dependencies = [ "js-sys", "once_cell", @@ -5681,15 +4015,15 @@ dependencies = [ "smallvec", "tracing", "tracing-core", - "tracing-log", + "tracing-log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "tracing-subscriber", - "web-time", + "web-time 0.2.4", ] [[package]] name = "tracing-subscriber" -version = "0.3.19" -source = "git+https://forgejo.ellis.link/continuwuation/tracing?rev=1e64095a8051a1adf0d1faa307f9f030889ec2aa#1e64095a8051a1adf0d1faa307f9f030889ec2aa" +version = "0.3.18" +source = "git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport#b348dca742af641c47bc390261f60711c2af573c" dependencies = [ "matchers", "nu-ansi-term", @@ -5700,7 +4034,7 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log", + "tracing-log 0.2.0 (git+https://github.com/girlbossceo/tracing?branch=tracing-subscriber/env-filter-clone-0.1.x-backport)", ] [[package]] @@ -5711,15 +4045,15 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" -version = "1.18.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "typewit" -version = "1.14.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c98488b93df24b7c794d6a58c4198d7a2abde676324beaca84f7fb5b39c0811" +checksum = "c6fb9ae6a3cafaf0a5d14c2302ca525f9ae8e07a0f0e6949de88d882c37a6e24" dependencies = [ "typewit_proc_macros", ] @@ -5749,40 +4083,25 @@ dependencies = [ ] [[package]] -name = "unicase" -version = "2.8.1" +name = "unicode-bidi" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" -version = "1.0.19" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] -name = "unicode-segmentation" -version = "1.12.0" +name = "unicode-normalization" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" - -[[package]] -name = "unicode-width" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" - -[[package]] -name = "unicode-width" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c" - -[[package]] -name = "unicode-xid" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" +checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" +dependencies = [ + "tinyvec", +] [[package]] name = "unsafe-libyaml" @@ -5790,12 +4109,6 @@ version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" -[[package]] -name = "untrusted" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" - [[package]] name = "untrusted" version = "0.9.0" @@ -5804,91 +4117,59 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "ureq" -version = "3.1.2" +version = "2.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99ba1025f18a4a3fc3e9b48c868e9beb4f24f4b4b1a325bada26bd4119f46537" +checksum = "d11a831e3c0b56e438a28308e7c810799e3c118417f342d30ecec080105395cd" dependencies = [ "base64 0.22.1", "log", - "percent-encoding", - "rustls 0.23.31", - "rustls-pemfile 2.2.0", + "once_cell", + "rustls 0.22.4", "rustls-pki-types", - "ureq-proto", - "utf-8", - "webpki-roots 1.0.2", -] - -[[package]] -name = "ureq-proto" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b4531c118335662134346048ddb0e54cc86bd7e81866757873055f0e38f5d2" -dependencies = [ - "base64 0.22.1", - "http", - "httparse", - "log", + "rustls-webpki 0.102.4", + "url", + "webpki-roots 0.26.1", ] [[package]] name = "url" -version = "2.5.7" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", - "idna", + "idna 0.5.0", "percent-encoding", "serde", ] +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + [[package]] name = "utf-8" version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" -[[package]] -name = "utf8_iter" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" - -[[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - [[package]] name = "uuid" -version = "1.18.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2" +checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ - "getrandom 0.3.3", - "js-sys", + "getrandom", "serde", - "wasm-bindgen", -] - -[[package]] -name = "v_frame" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2" -dependencies = [ - "aligned-vec", - "num-traits", - "wasm-bindgen", ] [[package]] name = "valuable" -version = "0.1.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" +checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "vcpkg" @@ -5897,16 +4178,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] -name = "version-compare" -version = "0.2.0" +name = "version_check" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] -name = "version_check" -version = "0.9.5" +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] [[package]] name = "want" @@ -5919,73 +4204,52 @@ dependencies = [ [[package]] name = "wasi" -version = "0.11.1+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" - -[[package]] -name = "wasi" -version = "0.14.5+wasi-0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4494f6290a82f5fe584817a676a34b9d6763e8d9d18204009fb31dceca98fd4" -dependencies = [ - "wasip2", -] - -[[package]] -name = "wasip2" -version = "1.0.0+wasi-0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24" -dependencies = [ - "wit-bindgen", -] +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.101" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", - "once_cell", - "rustversion", "wasm-bindgen-macro", - "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.101" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", + "once_cell", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.51" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca85039a9b469b38336411d6d6ced91f3fc87109a2a27b0c197663f5144dffe" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ "cfg-if", "js-sys", - "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.101" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5993,31 +4257,38 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.101" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.64", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.101" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" -dependencies = [ - "unicode-ident", -] +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "web-sys" -version = "0.3.78" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77e4b637749ff0d92b8fad63aa1f7cff3cbe125fd49c175cd6345e7272638b12" +checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa30049b1c872b72c89866d458eae9f20380ab280ffd1b1e18df2d3e2d98cfe0" dependencies = [ "js-sys", "wasm-bindgen", @@ -6047,39 +4318,36 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.26.11" +version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" -dependencies = [ - "webpki-roots 1.0.2", -] +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] name = "webpki-roots" -version = "1.0.2" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2" +checksum = "b3de34ae270483955a94f4b21bdaaeb83d508bb84a01435f393818edb0012009" dependencies = [ "rustls-pki-types", ] [[package]] name = "weezl" -version = "0.1.10" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a751b3277700db47d3e574514de2eced5e54dc8a5436a3bf7a0b248b2cee16f3" +checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" [[package]] name = "widestring" -version = "1.2.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d" +checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" [[package]] name = "wildmatch" -version = "2.4.0" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ce1ab1f8c62655ebe1350f589c61e505cf94d385bc6a12899442d9081e71fd" +checksum = "939e59c1bc731542357fdaad98b209ef78c8743d652bb61439d16b16a79eb025" [[package]] name = "winapi" @@ -6097,6 +4365,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +[[package]] +name = "winapi-util" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" +dependencies = [ + "windows-sys 0.52.0", +] + [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" @@ -6105,130 +4382,21 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.61.3" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" -dependencies = [ - "windows-collections", - "windows-core", - "windows-future", - "windows-link 0.1.3", - "windows-numerics", -] - -[[package]] -name = "windows-collections" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" dependencies = [ "windows-core", + "windows-targets 0.52.5", ] [[package]] name = "windows-core" -version = "0.61.2" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-implement", - "windows-interface", - "windows-link 0.1.3", - "windows-result", - "windows-strings 0.4.2", -] - -[[package]] -name = "windows-future" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" -dependencies = [ - "windows-core", - "windows-link 0.1.3", - "windows-threading", -] - -[[package]] -name = "windows-implement" -version = "0.60.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "windows-interface" -version = "0.59.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "windows-link" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" - -[[package]] -name = "windows-link" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65" - -[[package]] -name = "windows-numerics" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" -dependencies = [ - "windows-core", - "windows-link 0.1.3", -] - -[[package]] -name = "windows-registry" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" -dependencies = [ - "windows-result", - "windows-strings 0.3.1", - "windows-targets 0.53.3", -] - -[[package]] -name = "windows-result" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" -dependencies = [ - "windows-link 0.1.3", -] - -[[package]] -name = "windows-strings" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" -dependencies = [ - "windows-link 0.1.3", -] - -[[package]] -name = "windows-strings" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" -dependencies = [ - "windows-link 0.1.3", + "windows-targets 0.52.5", ] [[package]] @@ -6246,34 +4414,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-sys" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" -dependencies = [ - "windows-targets 0.53.3", -] - -[[package]] -name = "windows-sys" -version = "0.61.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e201184e40b2ede64bc2ea34968b28e33622acdbbf37104f0e4a33f7abe657aa" -dependencies = [ - "windows-link 0.2.0", + "windows-targets 0.52.5", ] [[package]] @@ -6293,44 +4434,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm 0.52.6", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.53.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91" -dependencies = [ - "windows-link 0.1.3", - "windows_aarch64_gnullvm 0.53.0", - "windows_aarch64_msvc 0.53.0", - "windows_i686_gnu 0.53.0", - "windows_i686_gnullvm 0.53.0", - "windows_i686_msvc 0.53.0", - "windows_x86_64_gnu 0.53.0", - "windows_x86_64_gnullvm 0.53.0", - "windows_x86_64_msvc 0.53.0", -] - -[[package]] -name = "windows-threading" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" -dependencies = [ - "windows-link 0.1.3", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -6341,15 +4456,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -6359,15 +4468,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -6377,27 +4480,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" [[package]] name = "windows_i686_gnullvm" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -6407,15 +4498,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_i686_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -6425,15 +4510,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -6443,15 +4522,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -6461,21 +4534,24 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.6" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" -version = "0.7.13" +version = "0.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3c52e9c97a68071b23e836c9380edae937f17b9c4667bd021973efc689f618d" dependencies = [ "memchr", ] @@ -6491,198 +4567,81 @@ dependencies = [ ] [[package]] -name = "wit-bindgen" -version = "0.45.1" +name = "winreg" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c573471f125075647d03df72e026074b7203790d41351cd6edc96f46bcccd36" - -[[package]] -name = "writeable" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" - -[[package]] -name = "x509-parser" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7069fba5b66b9193bd2c5d3d4ff12b839118f6bcbef5328efafafb5395cf63da" +checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" dependencies = [ - "asn1-rs", - "data-encoding", - "der-parser", - "lazy_static", - "nom", - "oid-registry", - "rusticata-macros", - "thiserror 1.0.69", - "time", + "cfg-if", + "windows-sys 0.48.0", ] [[package]] name = "xml5ever" -version = "0.18.1" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69" +checksum = "7c376f76ed09df711203e20c3ef5ce556f0166fa03d39590016c0fd625437fad" dependencies = [ "log", "mac", "markup5ever", ] -[[package]] -name = "xtask" -version = "0.5.0-rc.7" -dependencies = [ - "clap", - "serde", - "serde_json", -] - -[[package]] -name = "xtask-generate-commands" -version = "0.5.0-rc.7" -dependencies = [ - "clap-markdown", - "clap_builder", - "clap_mangen", - "conduwuit", - "conduwuit_admin", -] - [[package]] name = "yansi" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" -[[package]] -name = "yoke" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc" -dependencies = [ - "serde", - "stable_deref_trait", - "yoke-derive", - "zerofrom", -] - -[[package]] -name = "yoke-derive" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", - "synstructure 0.13.2", -] - [[package]] name = "zerocopy" -version = "0.8.27" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.27" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", -] - -[[package]] -name = "zerofrom" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" -dependencies = [ - "zerofrom-derive", -] - -[[package]] -name = "zerofrom-derive" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", - "synstructure 0.13.2", + "syn 2.0.64", ] [[package]] name = "zeroize" -version = "1.8.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" - -[[package]] -name = "zerotrie" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595" -dependencies = [ - "displaydoc", - "yoke", - "zerofrom", -] - -[[package]] -name = "zerovec" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7aa2bd55086f1ab526693ecbe444205da57e25f4489879da80635a46d90e73b" -dependencies = [ - "yoke", - "zerofrom", - "zerovec-derive", -] - -[[package]] -name = "zerovec-derive" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" [[package]] name = "zstd" -version = "0.13.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "7.2.4" +version = "7.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.0.16+zstd.1.5.7" +version = "2.0.10+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" +checksum = "c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa" dependencies = [ "cc", "pkg-config", @@ -6694,20 +4653,11 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" -[[package]] -name = "zune-inflate" -version = "0.2.54" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" -dependencies = [ - "simd-adler32", -] - [[package]] name = "zune-jpeg" -version = "0.4.21" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713" +checksum = "ec866b44a2a1fd6133d363f073ca1b179f438f99e7e5bfb1e33f7181facfe448" dependencies = [ "zune-core", ] diff --git a/Cargo.toml b/Cargo.toml index 12ba6456..d7b9454b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,438 +1,203 @@ -#cargo-features = ["profile-rustflags"] - -[workspace] -resolver = "2" -members = ["src/*", "xtask/*"] -default-members = ["src/*"] - -[workspace.package] -authors = [ - "June Clementine Strawberry ", - "strawberry ", # woof - "Jason Volk ", -] -categories = ["network-programming"] -description = "a very cool Matrix chat homeserver written in Rust" -edition = "2024" -homepage = "https://continuwuity.org/" -keywords = ["chat", "matrix", "networking", "server", "uwu"] +[package] +# TODO: when can we rename to conduwuit? +name = "conduit" +description = "a very cool fork of Conduit, a Matrix homeserver written in Rust" license = "Apache-2.0" -# See also `rust-toolchain.toml` -readme = "README.md" -repository = "https://forgejo.ellis.link/continuwuation/continuwuity" -rust-version = "1.86.0" -version = "0.5.0-rc.7" - -[workspace.metadata.crane] -name = "conduwuit" - -[workspace.dependencies.arrayvec] -version = "0.7.6" -features = ["serde"] - -[workspace.dependencies.smallvec] -version = "1.14.0" -features = [ - "const_generics", - "const_new", - "serde", - "union", - "write", +authors = [ + "strawberry ", + "timokoesters ", ] +homepage = "https://conduwuit.puppyirl.gay/" +repository = "https://github.com/girlbossceo/conduwuit" +readme = "README.md" +version = "0.3.4" +edition = "2021" -[workspace.dependencies.smallstr] -version = "0.3" -features = ["ffi", "std", "union"] +# See also `rust-toolchain.toml` +rust-version = "1.77.0" -[workspace.dependencies.const-str] -version = "0.6.2" +[dependencies] +# 1.1.17 seems broken on nix from a permission error? +libz-sys = "=1.1.16" -[workspace.dependencies.ctor] -version = "0.5.0" +console-subscriber = { version = "0.2", optional = true } -[workspace.dependencies.cargo_toml] -version = "0.22" -default-features = false -features = ["features"] +infer = { version = "0.15", default-features = false } -[workspace.dependencies.toml] -version = "0.9.5" -default-features = false -features = ["parse"] +# for hot lib reload +hot-lib-reloader = { version = "^0.7", optional = true } -[workspace.dependencies.sanitize-filename] -version = "0.6.0" +# Used for secure identifiers +rand = "0.8.5" -[workspace.dependencies.base64] -version = "0.22.1" -default-features = false +# Used for conduit::Error type +thiserror = "1.0.60" + +# Used to encode server public key +base64 = "0.22.1" + +# Used when hashing the state +ring = "0.17.8" + +# Used to find matching events for appservices +regex = "1.10.4" + +# Used to load forbidden room/user regex from config +serde_regex = "1.1.0" + +# Used to make working with iterators easier, was already a transitive depdendency +itertools = "0.12.1" + +# jwt jsonwebtokens +jsonwebtoken = "9.3.0" + +# Used for ruma wrapper +serde_html_form = "0.2.6" # used for TURN server authentication -[workspace.dependencies.hmac] -version = "0.12.1" -default-features = false +hmac = "0.12.1" +sha-1 = "0.10.1" # used for checking if an IP is in specific subnets / CIDR ranges easier -[workspace.dependencies.ipaddress] -version = "0.1.3" +ipaddress = "0.1.3" -[workspace.dependencies.rand] -version = "0.8.5" +# to get the client IP address of requests +#axum-client-ip = "0.4.2" +# to parse user-friendly time durations in admin commands +cyborgtime = "2.1.1" + +# all the web/HTTP dependencies # Used for the http request / response body type for Ruma endpoints used with reqwest -[workspace.dependencies.bytes] -version = "1.10.1" +bytes = "1.6.0" +http = "1.1.0" +http-body-util = "0.1.1" -[workspace.dependencies.http-body-util] -version = "0.1.3" +# used to replace the channels of the tokio runtime +loole = "0.3.0" -[workspace.dependencies.http] -version = "1.3.1" +# Validating urls in config, was already a transitive dependency +url = { version = "2.5.0", features = ["serde"] } -[workspace.dependencies.regex] -version = "1.11.1" +async-trait = "0.1.80" -[workspace.dependencies.axum] -version = "0.7.9" -default-features = false -features = [ - "form", - "http1", - "http2", - "json", - "matched-path", - "tokio", - "tracing", -] +lru-cache = "0.1.2" +sanitize-filename = "0.5.0" -[workspace.dependencies.axum-extra] -version = "0.9.6" -default-features = false -features = ["typed-header", "tracing"] - -[workspace.dependencies.axum-server] -version = "0.7.2" +# standard date and time tools +[dependencies.chrono] +version = "0.4.38" +features = ["alloc"] default-features = false -# to listen on both HTTP and HTTPS if listening on TLS dierctly from conduwuit for complement or sytest -[workspace.dependencies.axum-server-dual-protocol] -version = "0.7" - -[workspace.dependencies.axum-client-ip] -version = "0.6.1" - -[workspace.dependencies.tower] -version = "0.5.2" +# Web framework +[dependencies.axum] +version = "0.7.5" default-features = false +features = ["form", "http1", "http2", "json", "matched-path"] + +[dependencies.axum-extra] +version = "0.9.3" +default-features = false +features = ["typed-header"] + +[dependencies.axum-server] +version = "0.6.0" +features = ["tls-rustls"] + +[dependencies.tower] +version = "0.4.13" features = ["util"] -[workspace.dependencies.tower-http] -version = "0.6.2" -default-features = false +[dependencies.tower-http] +version = "0.5.2" features = [ "add-extension", - "catch-panic", "cors", "sensitive-headers", "set-header", - "timeout", "trace", "util", + "catch-panic", ] -[workspace.dependencies.rustls] -version = "0.23.25" -default-features = false -features = ["aws_lc_rs"] +[dependencies.hyper] +version = "1.3.1" +features = ["server", "http1", "http2"] -[workspace.dependencies.reqwest] -version = "0.12.15" -default-features = false -features = [ - "rustls-tls-native-roots", - "socks", - "hickory-dns", - "http2", -] +[dependencies.hyper-util] +version = "0.1.3" -[workspace.dependencies.serde] -version = "1.0.219" +[dependencies.reqwest] +version = "0.12.4" default-features = false +features = ["rustls-tls-native-roots", "socks", "hickory-dns"] + +# all the serde stuff +# Used for pdu definition +[dependencies.serde] +version = "1.0.201" features = ["rc"] - -[workspace.dependencies.serde_json] -version = "1.0.140" -default-features = false +# Used for appservice registration files +[dependencies.serde_yaml] +version = "0.9.34" +# Used for ruma wrapper +[dependencies.serde_json] +version = "1.0.117" features = ["raw_value"] -# Used for appservice registration files -[workspace.dependencies.serde_yaml] -version = "0.9.34" - -# Used to load forbidden room/user regex from config -[workspace.dependencies.serde_regex] -version = "1.1.0" - -# Used for ruma wrapper -[workspace.dependencies.serde_html_form] -version = "0.2.6" # Used for password hashing -[workspace.dependencies.argon2] +[dependencies.argon2] version = "0.5.3" features = ["alloc", "rand"] default-features = false -# Used to generate thumbnails for images & blurhashes -[workspace.dependencies.image] -version = "0.25.5" -default-features = false -features = [ - "jpeg", - "png", - "gif", - "webp", -] - -[workspace.dependencies.blurhash] -version = "0.2.3" -default-features = false -features = [ - "fast-linear-to-srgb", - "image", -] - -# logging -[workspace.dependencies.log] -version = "0.4.27" -default-features = false -[workspace.dependencies.tracing] -version = "0.1.41" -default-features = false -[workspace.dependencies.tracing-subscriber] -version = "0.3.19" -default-features = false -features = ["env-filter", "std", "tracing", "tracing-log", "ansi", "fmt"] -[workspace.dependencies.tracing-journald] -version = "0.3.1" -[workspace.dependencies.tracing-core] -version = "0.1.33" -default-features = false - -# for URL previews -[workspace.dependencies.webpage] -version = "2.0.1" -default-features = false - -# used for conduwuit's CLI and admin room command parsing -[workspace.dependencies.clap] -version = "4.5.35" -default-features = false -features = [ - "derive", - "env", - "error-context", - "help", - "std", - "string", - "usage", -] - -[workspace.dependencies.futures] -version = "0.3.31" -default-features = false -features = ["std", "async-await"] - -[workspace.dependencies.tokio] -version = "1.44.2" -default-features = false -features = [ - "fs", - "net", - "macros", - "sync", - "signal", - "time", - "rt-multi-thread", - "io-util", - "tracing", -] - -[workspace.dependencies.tokio-metrics] -version = "0.4.0" - -[workspace.dependencies.libloading] -version = "0.8.6" - -# Validating urls in config, was already a transitive dependency -[workspace.dependencies.url] -version = "2.5.4" -default-features = false -features = ["serde"] - -# standard date and time tools -[workspace.dependencies.chrono] -version = "0.4.38" -features = ["alloc", "std"] -default-features = false - -[workspace.dependencies.hyper] -version = "1.6.0" -default-features = false -features = [ - "server", - "http1", - "http2", -] - -[workspace.dependencies.hyper-util] -version = "0.1.11" -default-features = false -features = [ - "server-auto", - "server-graceful", - "tokio", -] - -# to support multiple variations of setting a config option -[workspace.dependencies.either] -version = "1.15.0" -default-features = false -features = ["serde"] - -# Used for reading the configuration from continuwuity.toml & environment variables -[workspace.dependencies.figment] -version = "0.10.19" -default-features = false -features = ["env", "toml"] - -[workspace.dependencies.hickory-resolver] +# Used to generate thumbnails for images +[dependencies.image] version = "0.25.1" default-features = false -features = [ - "serde", - "system-config", - "tokio", -] +features = ["jpeg", "png", "gif", "webp"] -# Used for conduwuit::Error type -[workspace.dependencies.thiserror] -version = "2.0.12" +# logging +[dependencies.log] +version = "0.4.21" default-features = false - -# Used when hashing the state -[workspace.dependencies.ring] -version = "0.17.14" +[dependencies.tracing] +version = "0.1.40" default-features = false +[dependencies.tracing-subscriber] +version = "0.3.18" +features = ["env-filter"] -# Used to make working with iterators easier, was already a transitive depdendency -[workspace.dependencies.itertools] -version = "0.14.0" - -# to parse user-friendly time durations in admin commands -#TODO: overlaps chrono? -[workspace.dependencies.cyborgtime] -version = "2.1.1" - -# used for MPSC channels -[workspace.dependencies.loole] -version = "0.4.0" - -# used for MPMC channels -[workspace.dependencies.async-channel] -version = "2.3.1" - -[workspace.dependencies.async-trait] -version = "0.1.88" - -[workspace.dependencies.lru-cache] -version = "0.1.2" - -# Used for matrix spec type definitions and helpers -[workspace.dependencies.ruma] -git = "https://forgejo.ellis.link/continuwuation/ruwuma" -#branch = "conduwuit-changes" -rev = "8fb268fa2771dfc3a1c8075ef1246e7c9a0a53fd" -features = [ - "compat", - "rand", - "appservice-api-c", - "client-api", - "federation-api", - "markdown", - "push-gateway-api-c", - "unstable-exhaustive-types", - "ring-compat", - "compat-upload-signatures", - "identifiers-validation", - "unstable-unspecified", - "unstable-msc2448", - "unstable-msc2666", - "unstable-msc2867", - "unstable-msc2870", - "unstable-msc3026", - "unstable-msc3061", - "unstable-msc3245", - "unstable-msc3266", - "unstable-msc3381", # polls - "unstable-msc3489", # beacon / live location - "unstable-msc3575", - "unstable-msc3930", # polls push rules - "unstable-msc4075", - "unstable-msc4095", - "unstable-msc4121", - "unstable-msc4125", - "unstable-msc4186", - "unstable-msc4203", # sending to-device events to appservices - "unstable-msc4210", # remove legacy mentions - "unstable-extensible-events", - "unstable-pdu", -] - -[workspace.dependencies.rust-rocksdb] -git = "https://forgejo.ellis.link/continuwuation/rust-rocksdb-zaidoon1" -rev = "99b0319416b64830dd6f8943e1f65e15aeef18bc" -default-features = false -features = [ - "multi-threaded-cf", - "mt_static", - "lz4", - "zstd", - "bzip2", -] - -[workspace.dependencies.sha2] +# optional SHA256 media keys feature +[dependencies.sha2] version = "0.10.8" -default-features = false - -[workspace.dependencies.sha1] -version = "0.10.6" -default-features = false +optional = true # optional opentelemetry, performance measurements, flamegraphs, etc for performance measurements and monitoring -[workspace.dependencies.opentelemetry] -version = "0.30.0" - -[workspace.dependencies.tracing-flame] +[dependencies.opentelemetry] +version = "0.21.0" +optional = true +[dependencies.tracing-flame] version = "0.2.0" - -[workspace.dependencies.tracing-opentelemetry] -version = "0.31.0" - -[workspace.dependencies.opentelemetry_sdk] -version = "0.30.0" +optional = true +[dependencies.tracing-opentelemetry] +version = "0.22.0" +optional = true +[dependencies.opentelemetry_sdk] +version = "0.21.2" +optional = true +features = ["rt-tokio"] +[dependencies.opentelemetry-jaeger] +version = "0.20.0" +optional = true features = ["rt-tokio"] -[workspace.dependencies.opentelemetry-otlp] -version = "0.30.0" -features = ["http", "trace", "logs", "metrics"] - -[workspace.dependencies.opentelemetry-jaeger-propagator] -version = "0.30.0" - # optional sentry metrics for crash/panic reporting -[workspace.dependencies.sentry] -version = "0.42.0" +[dependencies.sentry] +version = "0.32.3" +optional = true default-features = false features = [ "backtrace", @@ -446,555 +211,449 @@ features = [ "reqwest", "log", ] +[dependencies.sentry-tracing] +version = "0.32.3" +optional = true +[dependencies.sentry-tower] +version = "0.32.3" +optional = true -[workspace.dependencies.sentry-tracing] -version = "0.42.0" -[workspace.dependencies.sentry-tower] -version = "0.42.0" - -# jemalloc usage -[workspace.dependencies.tikv-jemalloc-sys] -git = "https://forgejo.ellis.link/continuwuation/jemallocator" -rev = "82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +# optional jemalloc usage +[dependencies.tikv-jemalloc-sys] +version = "0.5.4" +optional = true default-features = false -features = [ - "background_threads_runtime_support", - "unprefixed_malloc_on_supported_platforms", -] -[workspace.dependencies.tikv-jemallocator] -git = "https://forgejo.ellis.link/continuwuation/jemallocator" -rev = "82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +features = ["stats", "unprefixed_malloc_on_supported_platforms"] +[dependencies.tikv-jemallocator] +version = "0.5.4" +optional = true default-features = false -features = [ - "background_threads_runtime_support", - "unprefixed_malloc_on_supported_platforms", -] -[workspace.dependencies.tikv-jemalloc-ctl] -git = "https://forgejo.ellis.link/continuwuation/jemallocator" -rev = "82af58d6a13ddd5dcdc7d4e91eae3b63292995b8" +features = ["stats", "unprefixed_malloc_on_supported_platforms"] +[dependencies.tikv-jemalloc-ctl] +version = "0.5.4" +optional = true default-features = false features = ["use_std"] -[workspace.dependencies.console-subscriber] -version = "0.4" - -[workspace.dependencies.nix] -version = "0.30.1" -default-features = false -features = ["resource"] - -[workspace.dependencies.sd-notify] -version = "0.4.5" +# for URL previews +[dependencies.webpage] +version = "2.0.1" default-features = false -[workspace.dependencies.hardened_malloc-rs] -version = "0.1.2" +# to support multiple variations of setting a config option +[dependencies.either] +version = "1.11.0" +features = ["serde"] + +# to listen on both HTTP and HTTPS if listening on TLS dierctly from conduwuit for complement or sytest +[dependencies.axum-server-dual-protocol] +version = "0.6" +optional = true + +# used for conduit's CLI and admin room command parsing +[dependencies.clap] +version = "4.5.4" default-features = false +features = ["std", "derive", "help", "usage", "error-context", "string"] + +[dependencies.futures-util] +version = "0.3.30" +default-features = false + +# Used for reading the configuration from conduwuit.toml & environment variables +[dependencies.figment] +version = "0.10.18" +features = ["env", "toml"] + +# Used for matrix spec type definitions and helpers +[dependencies.ruma] +git = "https://github.com/girlbossceo/ruma" +branch = "conduwuit-changes" features = [ - "static", - "gcc", - "light", + "compat", + "rand", + "appservice-api-c", + "client-api", + "federation-api", + "push-gateway-api-c", + "state-res", + "unstable-exhaustive-types", + "ring-compat", + "unstable-unspecified", + "unstable-msc2448", + "unstable-msc2666", + "unstable-msc2867", + "unstable-msc2870", + "unstable-msc3026", + "unstable-msc3061", + "unstable-msc3575", + "unstable-msc4121", + "unstable-msc4125", + "unstable-extensible-events", ] -[workspace.dependencies.rustyline-async] -version = "0.4.3" +[dependencies.ruma-identifiers-validation] +git = "https://github.com/girlbossceo/ruma" +branch = "conduwuit-changes" + +[dependencies.hickory-resolver] +version = "0.24.1" default-features = false -[workspace.dependencies.termimad] -version = "0.34.0" -default-features = false +[dependencies.rust-rocksdb] +git = "https://github.com/zaidoon1/rust-rocksdb" +branch = "master" +optional = true +default-features = true +features = ["multi-threaded-cf", "zstd"] -[workspace.dependencies.checked_ops] -version = "0.1" +[dependencies.rusqlite] +git = "https://github.com/rusqlite/rusqlite" +#branch = "master" +rev = "e00b626e2b1c67347d789fb7f600281705c89381" +optional = true +features = ["bundled"] -[workspace.dependencies.syn] -version = "2.0" -default-features = false -features = ["full", "extra-traits"] +# used only by rusqlite +[dependencies.parking_lot] +version = "0.12.2" +optional = true -[workspace.dependencies.quote] -version = "1.0" +# used only by rusqlite +[dependencies.thread_local] +version = "1.1.8" +optional = true -[workspace.dependencies.proc-macro2] -version = "1.0" +# used only by rusqlite and rust-rocksdb +[dependencies.num_cpus] +version = "1.16.0" -[workspace.dependencies.parking_lot] -version = "0.12.4" -features = ["hardware-lock-elision", "deadlock_detection"] # TODO: Check if deadlock_detection has a perf impact, if it does only enable with debug_assertions +[dependencies.tokio] +version = "1.37.0" +features = ["fs", "macros", "sync", "signal"] -# Use this when extending with_lock::WithLock to parking_lot -[workspace.dependencies.lock_api] -version = "0.4.13" +# *nix-specific dependencies +[target.'cfg(unix)'.dependencies] +nix = { version = "0.28.0", features = ["resource"] } +sd-notify = { version = "0.4.1", optional = true } # systemd is only available/relevant on *nix platforms -[workspace.dependencies.bytesize] -version = "2.0" -[workspace.dependencies.core_affinity] -version = "0.8.1" +[target.'cfg(all(not(target_env = "msvc"), target_os = "linux"))'.dependencies] +hardened_malloc-rs = { version = "0.1.2", optional = true, features = [ + "static", + "gcc", + "light", +], default-features = false } +#hardened_malloc-rs = { optional = true, features = ["static","clang","light"], path = "../hardened_malloc-rs", default-features = false } -[workspace.dependencies.libc] -version = "0.2" - -[workspace.dependencies.num-traits] -version = "0.2" - -[workspace.dependencies.minicbor] -version = "2.1.1" -features = ["std"] - -[workspace.dependencies.minicbor-serde] -version = "0.6.0" -features = ["std"] - -[workspace.dependencies.maplit] -version = "1.0.2" - -[workspace.dependencies.ldap3] -version = "0.11.5" -default-features = false -features = ["sync", "tls-rustls"] - -# -# Patches -# # backport of [https://github.com/tokio-rs/tracing/pull/2956] to the 0.1.x branch of tracing. # we can switch back to upstream if #2956 is merged and backported in the upstream repo. -# https://forgejo.ellis.link/continuwuation/tracing/commit/b348dca742af641c47bc390261f60711c2af573c [patch.crates-io.tracing-subscriber] -git = "https://forgejo.ellis.link/continuwuation/tracing" -rev = "1e64095a8051a1adf0d1faa307f9f030889ec2aa" +git = "https://github.com/girlbossceo/tracing" +branch = "tracing-subscriber/env-filter-clone-0.1.x-backport" [patch.crates-io.tracing] -git = "https://forgejo.ellis.link/continuwuation/tracing" -rev = "1e64095a8051a1adf0d1faa307f9f030889ec2aa" +git = "https://github.com/girlbossceo/tracing" +branch = "tracing-subscriber/env-filter-clone-0.1.x-backport" [patch.crates-io.tracing-core] -git = "https://forgejo.ellis.link/continuwuation/tracing" -rev = "1e64095a8051a1adf0d1faa307f9f030889ec2aa" -[patch.crates-io.tracing-log] -git = "https://forgejo.ellis.link/continuwuation/tracing" -rev = "1e64095a8051a1adf0d1faa307f9f030889ec2aa" +git = "https://github.com/girlbossceo/tracing" +branch = "tracing-subscriber/env-filter-clone-0.1.x-backport" -# adds a tab completion callback: https://forgejo.ellis.link/continuwuation/rustyline-async/src/branch/main/.patchy/0002-add-tab-completion-callback.patch -# adds event for CTRL+\: https://forgejo.ellis.link/continuwuation/rustyline-async/src/branch/main/.patchy/0001-add-event-for-ctrl.patch -[patch.crates-io.rustyline-async] -git = "https://forgejo.ellis.link/continuwuation/rustyline-async" -rev = "e9f01cf8c6605483cb80b3b0309b400940493d7f" +[features] +default = [ + "backend_rocksdb", + "systemd", + "element_hacks", + "sentry_telemetry", + "gzip_compression", + "brotli_compression", + "zstd_compression", + "release_max_log_level", + "io_uring", +] +backend_sqlite = ["sqlite"] +backend_rocksdb = ["rocksdb"] +rocksdb = ["dep:rust-rocksdb"] +jemalloc = [ + "dep:tikv-jemalloc-sys", + "dep:tikv-jemalloc-ctl", + "dep:tikv-jemallocator", + "rust-rocksdb/jemalloc", +] +jemalloc_prof = ["tikv-jemalloc-sys/profiling"] +sqlite = ["dep:rusqlite", "dep:parking_lot", "dep:thread_local"] +systemd = ["dep:sd-notify"] +sentry_telemetry = ["dep:sentry", "dep:sentry-tracing", "dep:sentry-tower"] -# adds LIFO queue scheduling; this should be updated with PR progress. -[patch.crates-io.event-listener] -git = "https://forgejo.ellis.link/continuwuation/event-listener" -rev = "fe4aebeeaae435af60087ddd56b573a2e0be671d" -[patch.crates-io.async-channel] -git = "https://forgejo.ellis.link/continuwuation/async-channel" -rev = "92e5e74063bf2a3b10414bcc8a0d68b235644280" +gzip_compression = ["tower-http/compression-gzip", "reqwest/gzip"] +zstd_compression = ["tower-http/compression-zstd"] +brotli_compression = ["tower-http/compression-br", "reqwest/brotli"] -# adds affinity masks for selecting more than one core at a time -[patch.crates-io.core_affinity] -git = "https://forgejo.ellis.link/continuwuation/core_affinity_rs" -rev = "9c8e51510c35077df888ee72a36b4b05637147da" +sha256_media = ["dep:sha2"] +io_uring = ["rust-rocksdb/io-uring"] +axum_dual_protocol = ["dep:axum-server-dual-protocol"] -# reverts hyperium#148 conflicting with our delicate federation resolver hooks -[patch.crates-io.hyper-util] -git = "https://forgejo.ellis.link/continuwuation/hyper-util" -rev = "e4ae7628fe4fcdacef9788c4c8415317a4489941" +perf_measurements = [ + "dep:opentelemetry", + "dep:tracing-flame", + "dep:tracing-opentelemetry", + "dep:opentelemetry_sdk", + "dep:opentelemetry-jaeger", +] -# Allows no-aaaa option in resolv.conf -# Use 1-indexed line numbers when displaying parse error messages -[patch.crates-io.resolv-conf] -git = "https://forgejo.ellis.link/continuwuation/resolv-conf" -rev = "56251316cc4127bcbf36e68ce5e2093f4d33e227" +# enable the tokio_console server +# incompatible with release_max_log_level +tokio_console = ["dep:console-subscriber", "tokio/tracing"] +hot_reload = ["dep:hot-lib-reloader"] + +hardened_malloc = ["dep:hardened_malloc-rs"] + +# increases performance, reduces build times, and reduces binary size by not compiling or +# genreating code for log level filters that users will generally not use (debug and trace) only in release builds # -# Our crates +# the expense is obviously losing those log level filters for usage at runtime. debug builds will still have all log levels +release_max_log_level = [ + "tracing/max_level_trace", + "tracing/release_max_level_info", + "log/max_level_trace", + "log/release_max_level_info", +] + +# developer feature useful only in debug builds. +dev_release_log_level = [] + +# client/server interopability hacks # - -[workspace.dependencies.conduwuit-router] -package = "conduwuit_router" -path = "src/router" -default-features = false - -[workspace.dependencies.conduwuit-admin] -package = "conduwuit_admin" -path = "src/admin" -default-features = false - -[workspace.dependencies.conduwuit-api] -package = "conduwuit_api" -path = "src/api" -default-features = false - -[workspace.dependencies.conduwuit-service] -package = "conduwuit_service" -path = "src/service" -default-features = false - -[workspace.dependencies.conduwuit-database] -package = "conduwuit_database" -path = "src/database" -default-features = false - -[workspace.dependencies.conduwuit-core] -package = "conduwuit_core" -path = "src/core" -default-features = false - -[workspace.dependencies.conduwuit-macros] -package = "conduwuit_macros" -path = "src/macros" -default-features = false - -[workspace.dependencies.conduwuit-web] -package = "conduwuit_web" -path = "src/web" -default-features = false +## element has various non-spec compliant behaviour +element_hacks = [] -[workspace.dependencies.conduwuit-build-metadata] -package = "conduwuit_build_metadata" -path = "src/build_metadata" -default-features = false +[package.metadata.deb] +name = "conduwuit" +maintainer = "strawberry " +copyright = "2024, strawberry " +license-file = ["LICENSE", "3"] +depends = "$auto, ca-certificates" +extended-description = """\ +a cool hard fork of Conduit, a Matrix homeserver written in Rust""" +section = "net" +priority = "optional" +assets = [ + [ + "debian/README.md", + "usr/share/doc/conduwuit/README.Debian", + "644", + ], + [ + "README.md", + "usr/share/doc/conduwuit/", + "644", + ], + [ + "target/release/conduwuit", + "usr/sbin/conduwuit", + "755", + ], + [ + "conduwuit-example.toml", + "etc/conduwuit/conduwuit.toml", + "640", + ], +] +conf-files = ["/etc/conduwuit/conduwuit.toml"] +maintainer-scripts = "debian/" +systemd-units = { unit-name = "conduwuit", start = false } -[workspace.dependencies.conduwuit] -package = "conduwuit" -path = "src/main" +[profile.dev] +#debug = 0 +lto = 'off' +codegen-units = 512 +incremental = true +overflow-checks = true +#panic = "abort" -############################################################################### -# -# Release profiles -# +# seems to speed up continuous debug compilations +[profile.dev.build-override] +opt-level = 3 +[profile.dev.package."*"] # external dependencies +opt-level = 1 +[profile.dev.package."tokio"] +opt-level = 3 +# default release profile [profile.release] +lto = 'thin' +incremental = false +opt-level = 3 strip = "symbols" -lto = "thin" +control-flow-guard = true # Windows only +debug = 0 # release profile with debug symbols [profile.release-debuginfo] inherits = "release" -debug = "full" strip = "none" +debug = "full" + +# high performance release profile which uses fat LTO across all crates, 1 codegen unit, max opt-level, and optimises across all crates [profile.release-high-perf] inherits = "release" -lto = "fat" +lto = 'fat' codegen-units = 1 panic = "abort" -# do not use without profile-rustflags enabled -[profile.release-max-perf] -inherits = "release" -strip = "symbols" -lto = "fat" -#rustflags = [ -# '-Ctarget-cpu=native', -# '-Ztune-cpu=native', -# '-Ctarget-feature=+crt-static', -# '-Crelocation-model=static', -# '-Ztls-model=local-exec', -# '-Zinline-in-all-cgus=true', -# '-Zinline-mir=true', -# '-Zmir-opt-level=3', -# '-Clink-arg=-fuse-ld=gold', -# '-Clink-arg=-Wl,--threads', -# '-Clink-arg=-Wl,--gc-sections', -# '-Clink-arg=-luring', -# '-Clink-arg=-lstdc++', -# '-Clink-arg=-lc', -# '-Ztime-passes', -# '-Ztime-llvm-passes', -#] - -[profile.release-max-perf.build-override] -inherits = "release-max-perf" -opt-level = 0 -codegen-units = 32 -#rustflags = [ -# '-Crelocation-model=pic', -# '-Ctarget-feature=-crt-static', -# '-Clink-arg=-Wl,--no-gc-sections', -#] - -[profile.release-max-perf.package.conduwuit_macros] -inherits = "release-max-perf.build-override" -#rustflags = [ -# '-Crelocation-model=pic', -# '-Ctarget-feature=-crt-static', -#] - -[profile.bench] -inherits = "release" -#rustflags = [ -# "-Cremark=all", -# '-Ztime-passes', -# '-Ztime-llvm-passes', -#] - -############################################################################### -# -# 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] -inherits = "dev" -strip = false -opt-level = 0 -codegen-units = 16 - -[profile.test.package.'*'] -inherits = "dev" +# For releases also try to max optimizations for dependencies: +[profile.release-high-perf.build-override] debug = 0 -strip = false -opt-level = 0 -codegen-units = 16 +opt-level = 3 +codegen-units = 1 -############################################################################### -# -# Linting -# +[profile.release-high-perf.package."*"] +debug = 0 +opt-level = 3 +codegen-units = 1 + + +[lints] +workspace = true [workspace.lints.rust] -absolute-paths-not-starting-with-crate = "warn" -#box-pointers = "warn" -deprecated-in-future = "warn" -elided-lifetimes-in-paths = "warn" -explicit-outlives-requirements = "warn" -ffi-unwind-calls = "warn" -keyword-idents = "warn" -macro-use-extern-crate = "warn" -meta-variable-misuse = "warn" -missing-abi = "warn" -#missing-copy-implementations = "warn" # TODO -#missing-debug-implementations = "warn" # TODO -non-ascii-idents = "warn" -rust-2021-incompatible-closure-captures = "warn" -rust-2021-incompatible-or-patterns = "warn" -rust-2021-prefixes-incompatible-syntax = "warn" -rust-2021-prelude-collisions = "warn" -single-use-lifetimes = "warn" -trivial-casts = "warn" -trivial-numeric-casts = "warn" -unit-bindings = "warn" -#unnameable-types = "warn" # TODO -unreachable-pub = "warn" -unsafe-op-in-unsafe-fn = "warn" -unstable-features = "warn" -unused-extern-crates = "warn" -unused-import-braces = "warn" -unused-lifetimes = "warn" -unused-macro-rules = "warn" -unused-qualifications = "warn" -#unused-results = "warn" # TODO +missing_abi = "warn" +noop_method_call = "warn" +pointer_structural_match = "warn" +explicit_outlives_requirements = "warn" +unused_extern_crates = "warn" +unused_import_braces = "warn" +unused_lifetimes = "warn" +unused_qualifications = "warn" +unused_macro_rules = "warn" +dead_code = "warn" +elided_lifetimes_in_paths = "warn" +macro_use_extern_crate = "warn" +single_use_lifetimes = "warn" +unsafe_op_in_unsafe_fn = "warn" +unreachable_pub = "warn" -## some sadness -mismatched_lifetime_syntaxes = "allow" # TODO! -let_underscore_drop = "allow" -missing_docs = "allow" -# cfgs cannot be limited to expected cfgs or their de facto non-transitive/opt-in use-case e.g. -# tokio_unstable will warn. -unexpected_cfgs = "allow" # this seems to suggest broken code and is not working correctly unused_braces = "allow" -# buggy, but worth checking on occasionally -unused_crate_dependencies = "allow" -unsafe_code = "allow" -variant_size_differences = "allow" -# we check nightly clippy lints -unknown_lints = "allow" +# some sadness +missing_docs = "allow" -####################################### -# -# Clippy lints -# [workspace.lints.clippy] +# pedantic = "warn" -################### -cargo = { level = "warn", priority = -1 } +suspicious = "warn" # assume deny in practice +perf = "warn" # assume deny in practice -## some sadness -multiple_crate_versions = { level = "allow", priority = 1 } - -################### -complexity = { level = "warn", priority = -1 } - -################### -correctness = { level = "warn", priority = -1 } - -################### -nursery = { level = "warn", priority = -1 } - -## some sadness -missing_const_for_fn = { level = "allow", priority = 1 } # TODO -option_if_let_else = { level = "allow", priority = 1 } # TODO -redundant_pub_crate = { level = "allow", priority = 1 } # TODO -significant_drop_in_scrutinee = { level = "allow", priority = 1 } # TODO -significant_drop_tightening = { level = "allow", priority = 1 } # TODO - -################### -pedantic = { level = "warn", priority = -1 } - -## some sadness -too_long_first_doc_paragraph = { level = "allow", priority = 1 } -doc_markdown = { level = "allow", priority = 1 } -enum_glob_use = { level = "allow", priority = 1 } -if_not_else = { level = "allow", priority = 1 } -if_then_some_else_none = { level = "allow", priority = 1 } -inline_always = { level = "allow", priority = 1 } -match_bool = { level = "allow", priority = 1 } -missing_docs_in_private_items = { level = "allow", priority = 1 } -missing_errors_doc = { level = "allow", priority = 1 } -missing_panics_doc = { level = "allow", priority = 1 } -module_name_repetitions = { level = "allow", priority = 1 } -needless_continue = { level = "allow", priority = 1 } -no_effect_underscore_binding = { level = "allow", priority = 1 } -similar_names = { level = "allow", priority = 1 } -single_match_else = { level = "allow", priority = 1 } -struct_excessive_bools = { level = "allow", priority = 1 } -struct_field_names = { level = "allow", priority = 1 } -unnecessary_wraps = { level = "allow", priority = 1 } -unused_async = { level = "allow", priority = 1 } - -################### -perf = { level = "warn", priority = -1 } - -################### -#restriction = "warn" - -#allow_attributes = "warn" # UNSTABLE -arithmetic_side_effects = "warn" -as_conversions = "warn" -as_underscore = "warn" -assertions_on_result_states = "warn" +redundant_clone = "warn" +cloned_instead_of_copied = "warn" +expl_impl_clone_on_copy = "warn" +unnecessary_cast = "warn" +cast_lossless = "warn" +ptr_as_ptr = "warn" +mut_mut = "warn" +char_lit_as_u8 = "warn" dbg_macro = "warn" +empty_structs_with_brackets = "warn" +get_unwrap = "warn" +negative_feature_names = "warn" +pub_without_shorthand = "warn" +rc_buffer = "warn" +rc_mutex = "warn" +redundant_feature_names = "warn" +redundant_type_annotations = "warn" +rest_pat_in_fully_bound_structs = "warn" +str_to_string = "warn" +string_to_string = "warn" +tests_outside_test_module = "warn" +undocumented_unsafe_blocks = "warn" +unneeded_field_pattern = "warn" +unseparated_literal_suffix = "warn" +wildcard_dependencies = "warn" +or_fun_call = "warn" +unnecessary_lazy_evaluations = "warn" +assertions_on_result_states = "warn" default_union_representation = "warn" deref_by_slicing = "warn" empty_drop = "warn" -empty_structs_with_brackets = "warn" exit = "warn" filetype_is_file = "warn" float_cmp_const = "warn" -fn_to_numeric_cast_any = "warn" format_push_string = "warn" -get_unwrap = "warn" impl_trait_in_params = "warn" -let_underscore_untyped = "warn" lossy_float_literal = "warn" mem_forget = "warn" missing_assert_message = "warn" mutex_atomic = "warn" -pub_without_shorthand = "warn" -rc_buffer = "warn" -rc_mutex = "warn" -redundant_type_annotations = "warn" -rest_pat_in_fully_bound_structs = "warn" semicolon_outside_block = "warn" -str_to_string = "warn" +fn_to_numeric_cast = "warn" +fn_to_numeric_cast_with_truncation = "warn" string_lit_chars_any = "warn" -string_slice = "warn" -string_to_string = "warn" suspicious_xor_used_as_pow = "warn" -tests_outside_test_module = "warn" try_err = "warn" -undocumented_unsafe_blocks = "warn" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unnecessary_self_imports = "warn" -unneeded_field_pattern = "warn" -unseparated_literal_suffix = "warn" -#unwrap_used = "warn" # TODO verbose_file_reads = "warn" +cast_possible_wrap = "warn" +redundant_closure_for_method_calls = "warn" +large_futures = "warn" +semicolon_if_nothing_returned = "warn" +match_bool = "warn" +struct_excessive_bools = "warn" +must_use_candidate = "warn" +collapsible_else_if = "warn" +inconsistent_struct_constructor = "warn" +manual_string_new = "warn" +zero_sized_map_values = "warn" +unnecessary_box_returns = "warn" +map_unwrap_or = "warn" +implicit_clone = "warn" +match_wildcard_for_single_variants = "warn" +unnecessary_wraps = "warn" +match_same_arms = "warn" +ignored_unit_patterns = "warn" +redundant_else = "warn" +explicit_into_iter_loop = "warn" +used_underscore_binding = "warn" +needless_pass_by_value = "warn" +too_many_lines = "warn" +let_underscore_untyped = "warn" +single_match = "warn" +single_match_else = "warn" +explicit_deref_methods = "warn" +explicit_iter_loop = "warn" +manual_let_else = "warn" +trivially_copy_pass_by_ref = "warn" +wildcard_imports = "warn" +checked_conversions = "warn" +#integer_arithmetic = "warn" +#as_conversions = "warn" -################### -style = { level = "warn", priority = -1 } - -## some sadness -# trivial assertions are quite alright -assertions_on_constants = { level = "allow", priority = 1 } -module_inception = { level = "allow", priority = 1 } -obfuscated_if_else = { level = "allow", priority = 1 } - -################### -suspicious = { level = "warn", priority = -1 } - -## some sadness -let_underscore_future = { level = "allow", priority = 1 } - -# rust doesnt understand conduwuit's custom log macros -literal_string_with_formatting_args = { level = "allow", priority = 1 } - - -needless_raw_string_hashes = "allow" - -# TODO: Enable this lint & fix all instances -collapsible_if = "allow" +# some sadness +missing_errors_doc = "allow" +missing_panics_doc = "allow" +module_name_repetitions = "allow" +if_not_else = "allow" +doc_markdown = "allow" +cast_possible_truncation = "allow" +cast_precision_loss = "allow" +cast_sign_loss = "allow" +same_name_method = "allow" +mod_module_files = "allow" +unwrap_used = "allow" +expect_used = "allow" +if_then_some_else_none = "allow" +let_underscore_must_use = "allow" +map_err_ignore = "allow" +missing_docs_in_private_items = "allow" +multiple_inherent_impl = "allow" +error_impl_error = "allow" +string_add = "allow" +string_slice = "allow" +ref_patterns = "allow" diff --git a/README.md b/README.md index a5f77a5b..92648bf8 100644 --- a/README.md +++ b/README.md @@ -1,123 +1,71 @@ -# continuwuity +# conduwuit + +`main` / stable: [![CI and Artifacts](https://github.com/girlbossceo/conduwuit/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/girlbossceo/conduwuit/actions/workflows/ci.yml) - -## A community-driven [Matrix](https://matrix.org/) homeserver in Rust - -[![Chat on Matrix](https://img.shields.io/matrix/continuwuity%3Acontinuwuity.org?server_fqdn=matrix.continuwuity.org&fetchMode=summary&logo=matrix)](https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) [![Join the space](https://img.shields.io/matrix/space%3Acontinuwuity.org?server_fqdn=matrix.continuwuity.org&fetchMode=summary&logo=matrix&label=space)](https://matrix.to/#/#space:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) - - - +### a very cool, featureful fork of [Conduit](https://conduit.rs/) -[continuwuity] is a Matrix homeserver written in Rust. -It's a community continuation of the [conduwuit](https://github.com/girlbossceo/conduwuit) homeserver. +Visit the [Conduwuit documentation](https://conduwuit.puppyirl.gay/) for more information. +#### What is Matrix? -[![forgejo.ellis.link](https://img.shields.io/badge/Ellis%20Git-main+packages-green?style=flat&logo=forgejo&labelColor=fff)](https://forgejo.ellis.link/continuwuation/continuwuity) [![Stars](https://forgejo.ellis.link/continuwuation/continuwuity/badges/stars.svg?style=flat)](https://forgejo.ellis.link/continuwuation/continuwuity/stars) [![Issues](https://forgejo.ellis.link/continuwuation/continuwuity/badges/issues/open.svg?style=flat)](https://forgejo.ellis.link/continuwuation/continuwuity/issues?state=open) [![Pull Requests](https://forgejo.ellis.link/continuwuation/continuwuity/badges/pulls/open.svg?style=flat)](https://forgejo.ellis.link/continuwuation/continuwuity/pulls?state=open) +[Matrix](https://matrix.org) is an open network for secure and decentralized +communication. Users from every Matrix homeserver can chat with users from all +other Matrix servers. You can even use bridges (also called Matrix Appservices) +to communicate with users outside of Matrix, like a community on Discord. -[![GitHub](https://img.shields.io/badge/GitHub-mirror-blue?style=flat&logo=github&labelColor=fff&logoColor=24292f)](https://github.com/continuwuity/continuwuity) [![Stars](https://img.shields.io/github/stars/continuwuity/continuwuity?style=flat)](https://github.com/continuwuity/continuwuity/stargazers) +#### What is the goal? -[![GitLab](https://img.shields.io/badge/GitLab-mirror-blue?style=flat&logo=gitlab&labelColor=fff)](https://gitlab.com/continuwuity/continuwuity) [![Stars](https://img.shields.io/gitlab/stars/continuwuity/continuwuity?style=flat)](https://gitlab.com/continuwuity/continuwuity/-/starrers) +An efficient Matrix homeserver that's easy to set up and just works. You can install +it on a mini-computer like the Raspberry Pi to host Matrix for your family, +friends or company. -[![Codeberg](https://img.shields.io/badge/Codeberg-mirror-2185D0?style=flat&logo=codeberg&labelColor=fff)](https://codeberg.org/continuwuity/continuwuity) [![Stars](https://codeberg.org/continuwuity/continuwuity/badges/stars.svg?style=flat)](https://codeberg.org/continuwuity/continuwuity/stars) +#### Can I try it out? -### Why does this exist? +An official conduwuit server ran by me is available at transfem.dev ([element.transfem.dev](https://element.transfem.dev) / [cinny.transfem.dev](https://cinny.transfem.dev)) -The original conduwuit project has been archived and is no longer maintained. Rather than letting this Rust-based Matrix homeserver disappear, a group of community contributors have forked the project to continue its development, fix outstanding issues, and add new features. +transfem.dev is a public homeserver that can be used, it is not a "test only homeserver". This means there are rules, so please read the rules: [https://transfem.dev/homeserver_rules.txt](https://transfem.dev/homeserver_rules.txt) -We aim to provide a stable, well-maintained alternative for current conduwuit users and welcome newcomers seeking a lightweight, efficient Matrix homeserver. +transfem.dev is also listed at [servers.joinmatrix.org](https://servers.joinmatrix.org/) -### Who are we? +#### What is the current status? -We are a group of Matrix enthusiasts, developers and system administrators who have used conduwuit and believe in its potential. Our team includes both previous -contributors to the original project and new developers who want to help maintain and improve this important piece of Matrix infrastructure. - -We operate as an open community project, welcoming contributions from anyone interested in improving continuwuity. - -### What is Matrix? - -[Matrix](https://matrix.org) is an open, federated, and extensible network for -decentralized communication. Users from any Matrix homeserver can chat with users from all -other homeservers over federation. Matrix is designed to be extensible and built on top of. -You can even use bridges such as Matrix Appservices to communicate with users outside of Matrix, like a community on Discord. - -### What are the project's goals? - -Continuwuity aims to: - -- Maintain a stable, reliable Matrix homeserver implementation in Rust -- Improve compatibility and specification compliance with the Matrix protocol -- Fix bugs and performance issues from the original conduwuit -- Add missing features needed by homeserver administrators -- Provide comprehensive documentation and easy deployment options -- Create a sustainable development model for long-term maintenance -- Keep a lightweight, efficient codebase that can run on modest hardware - -### Can I try it out? - -Check out the [documentation](https://continuwuity.org) for installation instructions. - -There are currently no open registration Continuwuity instances available. - -### What are we working on? - -We're working our way through all of the issues in the [Forgejo project](https://forgejo.ellis.link/continuwuation/continuwuity/issues). - -- [Packaging & availability in more places](https://forgejo.ellis.link/continuwuation/continuwuity/issues/747) -- [Appservices bugs & features](https://forgejo.ellis.link/continuwuation/continuwuity/issues?q=&type=all&state=open&labels=178&milestone=0&assignee=0&poster=0) -- [Improving compatibility and spec compliance](https://forgejo.ellis.link/continuwuation/continuwuity/issues?labels=119) -- Automated testing -- [Admin API](https://forgejo.ellis.link/continuwuation/continuwuity/issues/748) -- [Policy-list controlled moderation](https://forgejo.ellis.link/continuwuation/continuwuity/issues/750) - -### Can I migrate my data from x? - -- Conduwuit: Yes -- Conduit: No, database is now incompatible -- Grapevine: No, database is now incompatible -- Dendrite: No -- Synapse: No - -We haven't written up a guide on migrating from incompatible homeservers yet. Reach out to us if you need to do this! +conduwuit is a hard fork of Conduit which is in beta, meaning you can join and participate in most +Matrix rooms, but not all features are supported and you might run into bugs +from time to time. -## Contribution - -### Development flow - -- Features / changes must developed in a separate branch -- For each change, create a descriptive PR -- Your code will be reviewed by one or more of the continuwuity developers -- The branch will be deployed live on multiple tester's matrix servers to shake out bugs -- Once all testers and reviewers have agreed, the PR will be merged to the main branch -- The main branch will have nightly builds deployed to users on the cutting edge -- Every week or two, a new release is cut. - -The main branch is always green! - - -### Policy on pulling from other forks - -We welcome contributions from other forks of conduwuit, subject to our review process. -When incorporating code from other forks: - -- All external contributions must go through our standard PR process -- Code must meet our quality standards and pass tests -- Code changes will require testing on multiple test servers before merging -- Attribution will be given to original authors and forks -- We prioritize stability and compatibility when evaluating external contributions -- Features that align with our project goals will be given priority consideration - #### Contact -Join our [Matrix room](https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) and [space](https://matrix.to/#/#space:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) to chat with us about the project! +If you run into any question, feel free to +- Ask us in `#conduwuit:puppygock.gay` on Matrix +- [Open an issue on GitHub](https://github.com/girlbossceo/conduwuit/issues/new) +#### Donate + +- Liberapay: +- Ko-fi: +- GitHub Sponsors: + +#### Logo + +Original repo and Matrix room picture was from bran (<3). Current banner image and logo is directly from [this cohost post](https://cohost.org/RatBaby/post/1028290-finally-a-flag-for). + +#### Is it conduwuit or Conduwuit? + +Both, but I prefer conduwuit. + +#### Mirrors of conduwuit + +- GitHub: +- GitLab: +- git.girlcock.ceo: +- git.gay: +- Codeberg: +- sourcehut: - - -[continuwuity]: https://forgejo.ellis.link/continuwuation/continuwuity diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 2869ce58..00000000 --- a/SECURITY.md +++ /dev/null @@ -1,63 +0,0 @@ -# Security Policy for Continuwuity - -This document outlines the security policy for Continuwuity. Our goal is to maintain a secure platform for all users, and we take security matters seriously. - -## Supported Versions - -We provide security updates for the following versions of Continuwuity: - -| Version | Supported | -| -------------- |:----------------:| -| Latest release | โœ… | -| Main branch | โœ… | -| Older releases | โŒ | - -We may backport fixes to the previous release at our discretion, but we don't guarantee this. - -## Reporting a Vulnerability - -### Responsible Disclosure - -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. - - [@jade:ellis.link](https://matrix.to/#/@jade:ellis.link) - - [@nex:nexy7574.co.uk](https://matrix.to/#/@nex:nexy7574.co.uk) -2. **Email the security team** at [security@continuwuity.org](mailto:security@continuwuity.org). This is not E2EE, so don't include sensitive details. -3. **Do not disclose the vulnerability publicly** until it has been addressed -4. **Provide detailed information** about the vulnerability, including: - - A clear description of the issue - - Steps to reproduce - - Potential impact - - Any possible mitigations - - Version(s) affected, including specific commits if possible - -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. - -### What to Expect - -When you report a security vulnerability: - -1. **Acknowledgment**: We will acknowledge receipt of your report. -2. **Assessment**: We will assess the vulnerability and determine its impact on our users -3. **Updates**: We will provide updates on our progress in addressing the vulnerability, and may request you help test mitigations -4. **Resolution**: Once resolved, we will notify you and discuss coordinated disclosure -5. **Credit**: We will recognize your contribution (unless you prefer to remain anonymous) - -## Security Update Process - -When security vulnerabilities are identified: - -1. We will develop and test fixes in a private fork -2. Security updates will be released as soon as possible -3. Release notes will include information about the vulnerabilities, avoiding details that could facilitate exploitation where possible -4. Critical security updates may be backported to the previous stable release - -## Additional Resources - -- [Matrix Security Disclosure Policy](https://matrix.org/security-disclosure-policy/) -- [Continuwuity Documentation](https://continuwuity.org/introduction) - ---- - -This security policy was last updated on May 25, 2025. diff --git a/audit.toml b/audit.toml new file mode 100644 index 00000000..922fc202 --- /dev/null +++ b/audit.toml @@ -0,0 +1,2 @@ +[advisories] +ignore = ["RUSTSEC-2020-0016"] diff --git a/bin/complement b/bin/complement index c437503e..68f48680 100755 --- a/bin/complement +++ b/bin/complement @@ -7,68 +7,31 @@ set -euo pipefail # The `COMPLEMENT_SRC` environment variable is set in the Nix dev shell, which # points to a store path containing the Complement source code. It's likely you # want to just pass that as the first argument to use it here. -COMPLEMENT_SRC="${COMPLEMENT_SRC:-$1}" +COMPLEMENT_SRC="$1" # A `.jsonl` file to write test logs to -LOG_FILE="${2:-complement_test_logs.jsonl}" +LOG_FILE="$2" # A `.jsonl` file to write test results to -RESULTS_FILE="${3:-complement_test_results.jsonl}" +RESULTS_FILE="$3" -COMPLEMENT_BASE_IMAGE="${COMPLEMENT_BASE_IMAGE:-complement-conduwuit:main}" - -# Complement tests that are skipped due to flakiness/reliability issues or we don't implement such features and won't for a long time -SKIPPED_COMPLEMENT_TESTS='TestPartialStateJoin.*|TestRoomDeleteAlias/Parallel/Regular_users_can_add_and_delete_aliases_when_m.*|TestRoomDeleteAlias/Parallel/Can_delete_canonical_alias|TestUnbanViaInvite.*|TestRoomState/Parallel/GET_/publicRooms_lists.*"|TestRoomDeleteAlias/Parallel/Users_with_sufficient_power-level_can_delete_other.*' - -# $COMPLEMENT_SRC needs to be a directory to Complement source code -if [ -f "$COMPLEMENT_SRC" ]; then - echo "\$COMPLEMENT_SRC must be a directory/path to Complement source code" - exit 1 -fi - -# quick test to make sure we can actually write to $LOG_FILE and $RESULTS_FILE -touch $LOG_FILE && rm -v $LOG_FILE -touch $RESULTS_FILE && rm -v $RESULTS_FILE +OCI_IMAGE="complement-conduit:main" toplevel="$(git rev-parse --show-toplevel)" pushd "$toplevel" > /dev/null -if [ ! -f "complement_oci_image.tar.gz" ]; then - echo "building complement conduwuit image" +bin/nix-build-and-cache just .#complement - # if using macOS, use linux-complement - #bin/nix-build-and-cache just .#linux-complement - bin/nix-build-and-cache just .#complement - #nix build -L .#complement - - echo "complement conduwuit image tar.gz built at \"result\"" - - echo "loading into docker" - docker load < result - popd > /dev/null -else - echo "skipping building a complement conduwuit image as complement_oci_image.tar.gz was already found, loading this" - - docker load < complement_oci_image.tar.gz - popd > /dev/null -fi - -echo "" -echo "running go test with:" -echo "\$COMPLEMENT_SRC: $COMPLEMENT_SRC" -echo "\$COMPLEMENT_BASE_IMAGE: $COMPLEMENT_BASE_IMAGE" -echo "\$RESULTS_FILE: $RESULTS_FILE" -echo "\$LOG_FILE: $LOG_FILE" -echo "" +docker load < result +popd > /dev/null # It's okay (likely, even) that `go test` exits nonzero -# `COMPLEMENT_ENABLE_DIRTY_RUNS=1` reuses the same complement container for faster complement, at the possible expense of test environment pollution set +o pipefail env \ -C "$COMPLEMENT_SRC" \ - COMPLEMENT_BASE_IMAGE="$COMPLEMENT_BASE_IMAGE" \ - go test -tags="conduwuit_blacklist" -skip="$SKIPPED_COMPLEMENT_TESTS" -v -timeout 1h -json ./tests/... | tee "$LOG_FILE" + COMPLEMENT_BASE_IMAGE="$OCI_IMAGE" \ + go test -tags="conduwuit_blacklist" -v -timeout 1h -json ./tests | tee "$LOG_FILE" set -o pipefail # Post-process the results into an easy-to-compare format, sorted by Test name for reproducible results @@ -78,18 +41,3 @@ cat "$LOG_FILE" | jq -s -c 'sort_by(.Test)[]' | jq -c ' and .Test != null ) | {Action: .Action, Test: .Test} ' > "$RESULTS_FILE" - -#if command -v gotestfmt &> /dev/null; then -# echo "using gotestfmt on $LOG_FILE" -# grep '{"Time":' "$LOG_FILE" | gotestfmt > "complement_test_logs_gotestfmt.log" -#fi - -echo "" -echo "" -echo "complement logs saved at $LOG_FILE" -echo "complement results saved at $RESULTS_FILE" -#if command -v gotestfmt &> /dev/null; then -# echo "complement logs in gotestfmt pretty format outputted at complement_test_logs_gotestfmt.log (use an editor/terminal/pager that interprets ANSI colours and UTF-8 emojis)" -#fi -echo "" -echo "" diff --git a/bin/nix-build-and-cache b/bin/nix-build-and-cache index ac64ff23..67e3aa4e 100755 --- a/bin/nix-build-and-cache +++ b/bin/nix-build-and-cache @@ -26,12 +26,7 @@ just() { "$ATTIC_TOKEN" # Find all output paths of the installables and their build dependencies - #readarray -t derivations < <(nix path-info --derivation "$@") - derivations=() - while IFS=$'\n' read derivation; do - derivations+=("$derivation") - done < <(nix path-info --derivation "$@") - + readarray -t derivations < <(nix path-info --derivation "$@") cache=() for derivation in "${derivations[@]}"; do cache+=( @@ -39,9 +34,6 @@ just() { ) done - withattic() { - nix shell --inputs-from "$toplevel" attic --command xargs attic push "$@" <<< "${cache[*]}" - } # Upload them to Attic (conduit store) # # Use `xargs` and a here-string because something would probably explode if @@ -49,7 +41,8 @@ just() { # store paths include a newline in them. ( IFS=$'\n' - withattic conduit || withattic conduit || withattic conduit || true + nix shell --inputs-from "$toplevel" attic -c xargs \ + attic push conduit <<< "${cache[*]}" ) # main "conduwuit" store @@ -59,20 +52,15 @@ just() { "${ATTIC_ENDPOINT:-https://attic.kennel.juneis.dog/conduwuit}" \ "$ATTIC_TOKEN" - # Upload them to Attic (conduwuit store) and Cachix + # Upload them to Attic (conduwuit store) # # Use `xargs` and a here-string because something would probably explode if # several thousand arguments got passed to a command at once. Hopefully no # store paths include a newline in them. ( IFS=$'\n' - withattic conduwuit || withattic conduwuit || withattic conduwuit || true - - # push to cachix if available - if [ "$CACHIX_AUTH_TOKEN" ]; then - nix shell --inputs-from "$toplevel" cachix -c xargs \ - cachix push conduwuit <<< "${cache[*]}" - fi + nix shell --inputs-from "$toplevel" attic -c xargs \ + attic push conduwuit <<< "${cache[*]}" ) } @@ -82,10 +70,8 @@ ci() { --inputs-from "$toplevel" # Keep sorted - #"$toplevel#devShells.x86_64-linux.default" - #"$toplevel#devShells.x86_64-linux.all-features" + "$toplevel#devShells.x86_64-linux.default" attic#default - cachix#default nixpkgs#direnv nixpkgs#jq nixpkgs#nix-direnv diff --git a/book.toml b/book.toml index 46d3a7b0..8d52c75a 100644 --- a/book.toml +++ b/book.toml @@ -1,24 +1,18 @@ [book] -title = "continuwuity" -description = "continuwuity is a community continuation of the conduwuit Matrix homeserver, written in Rust." +title = "conduwuit" +description = "conduwuit, which is a well-maintained fork of Conduit, is a simple, fast and reliable chat server for the Matrix protocol" language = "en" -authors = ["The continuwuity Community"] -text-direction = "ltr" multilingual = false src = "docs" [build] build-dir = "public" create-missing = true -extra-watch-dirs = ["debian", "docs"] - -[rust] -edition = "2024" [output.html] -edit-url-template = "https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/{path}" -git-repository-url = "https://forgejo.ellis.link/continuwuation/continuwuity" -git-repository-icon = "fa-git-alt" +git-repository-url = "https://github.com/girlbossceo/conduwuit" +edit-url-template = "https://github.com/girlbossceo/conduwuit/edit/main/{path}" +git-repository-icon = "fa-github-square" [output.html.search] limit-results = 15 diff --git a/clippy.toml b/clippy.toml index 863759aa..afa92de4 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,20 +1 @@ -array-size-threshold = 4096 -cognitive-complexity-threshold = 94 # TODO reduce me ALARA -excessive-nesting-threshold = 11 # TODO reduce me to 4 or 5 -future-size-threshold = 7745 # TODO reduce me ALARA -stack-size-threshold = 196608 # TODO reduce me ALARA -too-many-lines-threshold = 780 # TODO reduce me to <= 100 -type-complexity-threshold = 250 # reduce me to ~200 -large-error-threshold = 256 # TODO reduce me ALARA - -disallowed-macros = [ - { path = "log::error", reason = "use conduwuit_core::error" }, - { path = "log::warn", reason = "use conduwuit_core::warn" }, - { path = "log::info", reason = "use conduwuit_core::info" }, - { path = "log::debug", reason = "use conduwuit_core::debug" }, - { path = "log::trace", reason = "use conduwuit_core::trace" }, -] - -disallowed-methods = [ - { path = "tokio::spawn", reason = "use and pass conduuwit_core::server::Server::runtime() to spawn from" }, -] +too-many-lines-threshold = 700 diff --git a/committed.toml b/committed.toml deleted file mode 100644 index 59750fa5..00000000 --- a/committed.toml +++ /dev/null @@ -1,3 +0,0 @@ -style = "conventional" -subject_length = 72 -allowed_types = ["ci", "build", "fix", "feat", "chore", "docs", "style", "refactor", "perf", "test"] diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 07374aae..910ebe8f 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -1,1876 +1,743 @@ -### continuwuity Configuration -### -### THIS FILE IS GENERATED. CHANGES/CONTRIBUTIONS IN THE REPO WILL BE -### OVERWRITTEN! -### -### You should rename this file before configuring your server. Changes to -### documentation and defaults can be contributed in source code at -### src/core/config/mod.rs. This file is generated when building. -### -### Any values pre-populated are the default values for said config option. -### -### At the minimum, you MUST edit all the config options to your environment -### that say "YOU NEED TO EDIT THIS". -### -### For more information, see: -### https://continuwuity.org/configuration.html +# ============================================================================= +# This is the official example config for conduwuit. +# If you use it for your server, you will need to adjust it to your own needs. +# At the very least, change the server_name field! +# +# This documentation can also be found at https://conduwuit.puppyirl.gay/configuration.html +# ============================================================================= [global] -# The server_name is the pretty name of this server. It is used as a -# suffix for user and room IDs/aliases. -# -# See the docs for reverse proxying and delegation: -# https://continuwuity.org/deploying/generic.html#setting-up-the-reverse-proxy -# -# Also see the `[global.well_known]` config section at the very bottom. -# -# Examples of delegation: -# - https://puppygock.gay/.well-known/matrix/server -# - https://puppygock.gay/.well-known/matrix/client -# -# YOU NEED TO EDIT THIS. THIS CANNOT BE CHANGED AFTER WITHOUT A DATABASE -# WIPE. -# -# example: "continuwuity.org" -# -#server_name = +# The server_name is the pretty name of this server. It is used as a suffix for user +# and room ids. Examples: matrix.org, conduit.rs -# The default address (IPv4 or IPv6) continuwuity will listen on. -# -# If you are using Docker or a container NAT networking setup, this must -# be "0.0.0.0". -# -# To listen on multiple addresses, specify a vector e.g. ["127.0.0.1", -# "::1"] -# -#address = ["127.0.0.1", "::1"] +# The Conduit server needs all /_matrix/ requests to be reachable at +# https://your.server.name/ on port 443 (client-server) and 8448 (federation). -# The port(s) continuwuity will listen on. +# If that's not possible for you, you can create /.well-known files to redirect +# requests (delegation). See +# https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient +# and +# https://spec.matrix.org/v1.9/server-server-api/#getwell-knownmatrixserver +# for more information + +# YOU NEED TO EDIT THIS +#server_name = "your.server.name" + +# Servers listed here will be used to gather public keys of other servers (notary trusted key servers). # -# For reverse proxying, see: -# https://continuwuity.org/deploying/generic.html#setting-up-the-reverse-proxy +# The default behaviour for conduwuit is to attempt to query trusted key servers before querying the individual servers. +# This is done for performance reasons, but if you would like to query individual servers before the notary servers +# configured below, set to # -# If you are using Docker, don't change this, you'll need to map an -# external port to this. +# (Currently, conduwuit doesn't support batched key requests, so this list should only contain Synapse servers) +# Defaults to `matrix.org` +# trusted_servers = ["matrix.org"] + +# Sentry.io crash/panic reporting, performance monitoring/metrics, etc. This is NOT enabled by default. +# conduwuit's default Sentry reporting endpoint is o4506996327251968.ingest.us.sentry.io # +# Defaults to *false* +#sentry = false + +# Sentry reporting URL if a custom one is desired +# +# Defaults to conduwuit's default Sentry endpoint: "https://fe2eb4536aa04949e28eff3128d64757@o4506996327251968.ingest.us.sentry.io/4506996334657536" +#sentry_endpoint = "" + +# Report your Conduwuit server_name in Sentry.io crash reports and metrics +# +# Defaults to false +#sentry_send_server_name = false + +# Performance monitoring/tracing sample rate for Sentry.io +# +# Note that too high values may impact performance, and can be disabled by setting it to 0.0 +# +# Defaults to 0.15 +#sentry_traces_sample_rate = 0.15 + + +### Database configuration + +# This is the only directory where conduwuit will save its data, including media. +# Note: this was previously "/var/lib/matrix-conduit" +database_path = "/var/lib/conduwuit" + +# Database backend: Only rocksdb and sqlite are supported. Please note that sqlite +# will perform significantly worse than rocksdb as it is not intended to be used the +# way it is by conduwuit. sqlite only exists for historical reasons. +database_backend = "rocksdb" + + +### Network + +# The port(s) conduwuit will be running on. You need to set up a reverse proxy such as +# Caddy or Nginx so all requests to /_matrix on port 443 and 8448 will be +# forwarded to the conduwuit instance running on this port +# Docker users: Don't change this, you'll need to map an external port to this. # To listen on multiple ports, specify a vector e.g. [8080, 8448] -# -#port = 8008 +port = 6167 -# The UNIX socket continuwuity will listen on. -# -# continuwuity cannot listen on both an IP address and a UNIX socket. If -# listening on a UNIX socket, you MUST remove/comment the `address` key. -# -# Remember to make sure that your reverse proxy has access to this socket -# file, either by adding your reverse proxy to the appropriate user group -# or granting world R/W permissions with `unix_socket_perms` (666 -# minimum). -# -# example: "/run/continuwuity/continuwuity.sock" -# -#unix_socket_path = +# default address (IPv4 or IPv6) conduwuit will listen on. Generally you want this to be +# localhost (127.0.0.1 / ::1). If you are using Docker or a container NAT networking setup, you +# likely need this to be 0.0.0.0. +address = "127.0.0.1" -# The default permissions (in octal) to create the UNIX socket with. -# +# Max request size for file uploads +max_request_size = 20_000_000 # in bytes + +# Uncomment unix_socket_path to listen on a UNIX socket at the specified path. +# If listening on a UNIX socket, you must remove/comment the 'address' key if defined and add your +# reverse proxy to the 'conduwuit' group, unless world RW permissions are specified with unix_socket_perms (666 minimum). +#unix_socket_path = "/run/conduwuit/conduwuit.sock" #unix_socket_perms = 660 -# This is the only directory where continuwuity will save its data, -# including media. Note: this was previously "/var/lib/matrix-conduit". -# -# YOU NEED TO EDIT THIS, UNLESS you are running continuwuity as a -# `systemd` service. The service file sets it to `/var/lib/conduwuit` -# using an environment variable and also grants write access. -# -# example: "/var/lib/conduwuit" -# -#database_path = +# Set this to true for conduwuit to compress HTTP response bodies using zstd. +# This option does nothing if conduwuit was not built with `zstd_compression` feature. +# Please be aware that enabling HTTP compression may weaken TLS. +# Most users should not need to enable this. +# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before deciding to enable this. +zstd_compression = false -# continuwuity supports online database backups using RocksDB's Backup -# engine API. To use this, set a database backup path that continuwuity -# can write to. -# -# For more information, see: -# https://continuwuity.org/maintenance.html#backups -# -# example: "/opt/continuwuity-db-backups" -# -#database_backup_path = +# Set this to true for conduwuit to compress HTTP response bodies using gzip. +# This option does nothing if conduwuit was not built with `gzip_compression` feature. +# Please be aware that enabling HTTP compression may weaken TLS. +# Most users should not need to enable this. +# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before deciding to enable this. +gzip_compression = false -# The amount of online RocksDB database backups to keep/retain, if using -# "database_backup_path", before deleting the oldest one. -# -#database_backups_to_keep = 1 +# Set this to true for conduwuit to compress HTTP response bodies using brotli. +# This option does nothing if conduwuit was not built with `brotli_compression` feature. +# Please be aware that enabling HTTP compression may weaken TLS. +# Most users should not need to enable this. +# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before deciding to enable this. +brotli_compression = false -# Text which will be added to the end of the user's displayname upon -# registration with a space before the text. In Conduit, this was the -# lightning bolt emoji. +# Vector list of IPv4 and IPv6 CIDR ranges / subnets *in quotes* that you do not want conduwuit to send outbound requests to. +# Defaults to RFC1918, unroutable, loopback, multicast, and testnet addresses for security. # -# To disable, set this to "" (an empty string). +# To disable, set this to be an empty vector (`[]`). +# Please be aware that this is *not* a guarantee. You should be using a firewall with zones as doing this on the application layer may have bypasses. # -# The default is the trans pride flag. +# Currently this does not account for proxies in use like Synapse does. +ip_range_denylist = [ + "127.0.0.0/8", + "10.0.0.0/8", + "172.16.0.0/12", + "192.168.0.0/16", + "100.64.0.0/10", + "192.0.0.0/24", + "169.254.0.0/16", + "192.88.99.0/24", + "198.18.0.0/15", + "192.0.2.0/24", + "198.51.100.0/24", + "203.0.113.0/24", + "224.0.0.0/4", + "::1/128", + "fe80::/10", + "fc00::/7", + "2001:db8::/32", + "ff00::/8", + "fec0::/10", +] + + +### Moderation / Privacy / Security + +# Set to true to allow user type "guest" registrations. Element attempts to register guest users automatically. +# Defaults to false +allow_guest_registration = false + +# Set to true to log guest registrations in the admin room. +# Defaults to false as it may be noisy or unnecessary. +log_guest_registrations = false + +# Set to true to allow guest registrations/users to auto join any rooms specified in `auto_join_rooms` +# Defaults to false +allow_guests_auto_join_rooms = false + +# Vector list of servers that conduwuit will refuse to download remote media from. +# No default. +# prevent_media_downloads_from = ["example.com", "example.local"] + +# Enables registration. If set to false, no users can register on this +# server. +# If set to true without a token configured, users can register with no form of 2nd- +# step only if you set +# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse` to +# true in your config. If you would like +# registration only via token reg, please configure the `registration_token` key. +allow_registration = false +# Please note that an open registration homeserver with no second-step verification +# is highly prone to abuse and potential defederation by homeservers, including +# matrix.org. + +# A static registration token that new users will have to provide when creating +# an account. If unset and `allow_registration` is true, registration is open +# without any condition. YOU NEED TO EDIT THIS. +registration_token = "change this token for something specific to your server" + +# controls whether federation is allowed or not +# defaults to true +# allow_federation = true + +# controls whether users are allowed to create rooms. +# appservices and admins are always allowed to create rooms +# defaults to true +# allow_room_creation = true + +# controls whether non-admin local users are forbidden from sending room invites (local and remote), +# and if non-admin users can receive remote room invites. admins are always allowed to send and receive all room invites. +# defaults to false +# block_non_admin_invites = false + +# List of forbidden username patterns/strings. Values in this list are matched as *contains*. +# This is checked upon username availability check, registration, and startup as warnings if any local users in your database +# have a forbidden username. +# No default. +# forbidden_usernames = [] + +# List of forbidden room aliases and room IDs as patterns/strings. Values in this list are matched as *contains*. +# This is checked upon room alias creation, custom room ID creation if used, and startup as warnings if any room aliases +# in your database have a forbidden room alias/ID. +# No default. +# forbidden_alias_names = [] + +# List of forbidden server names that we will block all client room joins, incoming federated room directory requests, incoming federated invites for, and incoming federated joins. This check is applied on the room ID, room alias, sender server name, and sender user's server name. +# Basically "global" ACLs. For our user (client) checks, admin users are allowed. +# No default. +# forbidden_remote_server_names = [] + +# List of forbidden server names that we will block all outgoing federated room directory requests for. Useful for preventing our users from wandering into bad servers or spaces. +# No default. +# forbidden_remote_room_directory_server_names = [] + +# 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 directory. If federation is disabled entirely +# (`allow_federation`), this is inherently false. +allow_public_room_directory_over_federation = false + +# Set this to true to allow your server's public room directory to be queried without client +# authentication (access token) through the Client APIs. Set this to false to protect against /publicRooms spiders. +allow_public_room_directory_without_auth = false + +# Set this to true to lock down your server's public room directory and only allow admins to publish rooms to the room directory. +# Unpublishing is still allowed by all users with this enabled. # -# example: "๐Ÿณ๏ธโ€โšง๏ธ" +# Defaults to false +lockdown_public_room_directory = false + +# Set this to true to allow federating device display names / allow external users to see your device display name. +# If federation is disabled entirely (`allow_federation`), this is inherently false. For privacy, this is best disabled. +allow_device_name_federation = false + +# Vector list of domains allowed to send requests to for URL previews. Defaults to none. +# Note: this is a *contains* match, not an explicit match. Putting "google.com" will match "https://google.com" and "http://mymaliciousdomainexamplegoogle.com" +# Setting this to "*" will allow all URL previews. Please note that this opens up significant attack surface to your server, you are expected to be aware of the risks by doing so. +url_preview_domain_contains_allowlist = [] + +# Vector list of explicit domains allowed to send requests to for URL previews. Defaults to none. +# Note: This is an *explicit* match, not a contains match. Putting "google.com" will match "https://google.com", "http://google.com", but not "https://mymaliciousdomainexamplegoogle.com" +# Setting this to "*" will allow all URL previews. Please note that this opens up significant attack surface to your server, you are expected to be aware of the risks by doing so. +url_preview_domain_explicit_allowlist = [] + +# Vector list of URLs allowed to send requests to for URL previews. Defaults to none. +# Note that this is a *contains* match, not an explicit match. Putting "google.com" will match "https://google.com/", "https://google.com/url?q=https://mymaliciousdomainexample.com", and "https://mymaliciousdomainexample.com/hi/google.com" +# Setting this to "*" will allow all URL previews. Please note that this opens up significant attack surface to your server, you are expected to be aware of the risks by doing so. +url_preview_url_contains_allowlist = [] + +# Vector list of explicit domains not allowed to send requests to for URL previews. Defaults to none. +# Note: This is an *explicit* match, not a contains match. Putting "google.com" will match "https://google.com", "http://google.com", but not "https://mymaliciousdomainexamplegoogle.com" +# The denylist is checked first before allowlist. Setting this to "*" will not do anything. +url_preview_domain_explicit_denylist = [] + +# Maximum amount of bytes allowed in a URL preview body size when spidering. Defaults to 384KB (384_000 bytes) +url_preview_max_spider_size = 384_000 + +# Option to decide whether you would like to run the domain allowlist checks (contains and explicit) on the root domain or not. Does not apply to URL contains allowlist. Defaults to false. +# Example: If this is enabled and you have "wikipedia.org" allowed in the explicit and/or contains domain allowlist, it will allow all subdomains under "wikipedia.org" such as "en.m.wikipedia.org" as the root domain is checked and matched. +# Useful if the domain contains allowlist is still too broad for you but you still want to allow all the subdomains under a root domain. +url_preview_check_root_domain = false + +# Config option to allow or disallow incoming federation requests that obtain the profiles +# of our local users from `/_matrix/federation/v1/query/profile` # +# This is inherently false if `allow_federation` is disabled +# +# Defaults to true +allow_profile_lookup_federation_requests = true + +# Config option to automatically deactivate the account of any user who attempts to join a: +# - banned room +# - forbidden room alias +# - room alias or ID with a forbidden server name +# +# This may be useful if all your banned lists consist of toxic rooms or servers that no good faith user would ever attempt to join, and +# to automatically remediate the problem without any admin user intervention. +# +# This will also make the user leave all rooms. Federation (e.g. remote room invites) are ignored here. +# +# Defaults to false as rooms can be banned for non-moderation-related reasons +#auto_deactivate_banned_room_attempts = false + + +### Misc + +# max log level for conduwuit. allows debug, info, warn, or error +# see also: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives +# **Caveat**: +# For release builds, the tracing crate is configured to only implement levels higher than error to avoid unnecessary overhead in the compiled binary from trace macros. +# For debug builds, this restriction is not applied. +# +# Defaults to "info" +#log = "info" + +# controls whether encrypted rooms and events are allowed (default true) +#allow_encryption = false + +# if enabled, conduwuit will send a simple GET request periodically to `https://pupbrain.dev/check-for-updates/stable` +# for any new announcements made. Despite the name, this is not an update check +# endpoint, it is simply an announcement check endpoint. +# Defaults to false. +#allow_check_for_updates = false + +# Set to false to disable users from joining or creating room versions that aren't 100% officially supported by conduwuit. +# conduwuit officially supports room versions 6 - 10. conduwuit has experimental/unstable support for 3 - 5, and 11. +# Defaults to true. +#allow_unstable_room_versions = true + +# Option to control adding arbitrary text to the end of the user's displayname upon registration with a space before the text. +# This was the lightning bolt emoji option, just replaced with support for adding your own custom text or emojis. +# To disable, set this to "" (an empty string) +# Defaults to "๐Ÿณ๏ธโ€โšง๏ธ" (trans pride flag) #new_user_displayname_suffix = "๐Ÿณ๏ธโ€โšง๏ธ" -# If enabled, continuwuity will send a simple GET request periodically to -# `https://continuwuity.org/.well-known/continuwuity/announcements` for any new -# announcements or major updates. This is not an update check endpoint. +# Option to control whether conduwuit will query your list of trusted notary key servers (`trusted_servers`) for +# remote homeserver signing keys it doesn't know *first*, or query the individual servers first before falling back to the trusted +# key servers. # -#allow_announcements_check = true +# The former/default behaviour makes federated/remote rooms joins generally faster because we're querying a single (or list of) server +# that we know works, is reasonably fast, and is reliable for just about all the homeserver signing keys in the room. Querying individual +# servers may take longer depending on the general infrastructure of everyone in there, how many dead servers there are, etc. +# +# However, this does create an increased reliance on one single or multiple large entities as `trusted_servers` should generally +# contain long-term and large servers who know a very large number of homeservers. +# +# If you don't know what any of this means, leave this and `trusted_servers` alone to their defaults. +# +# Defaults to true as this is the fastest option for federation. +#query_trusted_key_servers_first = true -# Set this to any float value to multiply continuwuity's in-memory LRU -# caches with such as "auth_chain_cache_capacity". +# List/vector of room **IDs** that conduwuit will make newly registered users join. +# The room IDs specified must be rooms that you have joined at least once on the server, and must be public. # -# May be useful if you have significant memory to spare to increase -# performance. -# -# If you have low memory, reducing this may be viable. -# -# By default, the individual caches such as "auth_chain_cache_capacity" -# are scaled by your CPU core count. -# -#cache_capacity_modifier = 1.0 +# No default. +#auto_join_rooms = [] -# Set this to any float value in megabytes for continuwuity to tell the -# database engine that this much memory is available for database read -# caches. -# -# May be useful if you have significant memory to spare to increase -# performance. -# -# Similar to the individual LRU caches, this is scaled up with your CPU -# core count. -# -# This defaults to 128.0 + (64.0 * CPU core count). -# -#db_cache_capacity_mb = varies by system +# Retry failed and incomplete messages to remote servers immediately upon startup. This is called bursting. +# If this is disabled, said messages may not be delivered until more messages are queued for that server. +# Do not change this option unless server resources are extremely limited or the scale of the server's +# deployment is huge. Do not disable this unless you know what you are doing. +#startup_netburst = true -# Set this to any float value in megabytes for continuwuity to tell the -# database engine that this much memory is available for database write -# caches. -# -# May be useful if you have significant memory to spare to increase -# performance. -# -# Similar to the individual LRU caches, this is scaled up with your CPU -# core count. -# -# This defaults to 48.0 + (4.0 * CPU core count). -# -#db_write_buffer_capacity_mb = varies by system +# Limit the startup netburst to the most recent (default: 50) messages queued for each remote server. All older +# messages are dropped and not reattempted. The `startup_netburst` option must be enabled for this value to have +# any effect. Do not change this value unless you know what you are doing. Set this value to -1 to reattempt +# every message without trimming the queues; this may consume significant disk. Set this value to 0 to drop all +# messages without any attempt at redelivery. +#startup_netburst_keep = 50 -# This item is undocumented. Please contribute documentation for it. -# -#pdu_cache_capacity = varies by system +# If the 'perf_measurements' feature is enabled, enables collecting folded stack trace profile of tracing spans using +# tracing_flame. The resulting profile can be visualized with inferno[1], speedscope[2], or a number of other tools. +# [1]: https://github.com/jonhoo/inferno +# [2]: www.speedscope.app +# tracing_flame = false -# This item is undocumented. Please contribute documentation for it. -# -#auth_chain_cache_capacity = varies by system +# If 'tracing_flame' is enabled, sets a filter for which events will be included in the profile. +# Supported syntax is documented at https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives +# tracing_flame_filter = "trace,h2=off" -# This item is undocumented. Please contribute documentation for it. -# -#shorteventid_cache_capacity = varies by system +# If 'tracing_flame' is enabled, set the path to write the generated profile. +# tracing_flame_output_path = "./tracing.folded" -# This item is undocumented. Please contribute documentation for it. -# -#eventidshort_cache_capacity = varies by system +### Generic database options -# This item is undocumented. Please contribute documentation for it. -# -#eventid_pdu_cache_capacity = varies by system +# Set this to any float value to multiply conduwuit's in-memory LRU caches with. +# May be useful if you have significant memory to spare to increase performance. +# Defaults to 1.0. +#conduit_cache_capacity_modifier = 1.0 -# This item is undocumented. Please contribute documentation for it. -# -#shortstatekey_cache_capacity = varies by system +# Set this to any float value in megabytes for conduwuit to tell the database engine that this much memory is available for database-related caches. +# May be useful if you have significant memory to spare to increase performance. +# Defaults to 256.0 +#db_cache_capacity_mb = 256.0 -# This item is undocumented. Please contribute documentation for it. +# Interval in seconds when conduwuit will run database cleanup operations. # -#statekeyshort_cache_capacity = varies by system +# For SQLite: this will flush the WAL by executing `PRAGMA wal_checkpoint(RESTART)` (https://www.sqlite.org/pragma.html#pragma_wal_checkpoint) +# For RocksDB: this will run `flush_opt` to flush database memtables to SST files on disk (https://docs.rs/rocksdb/latest/rocksdb/struct.DBCommon.html#method.flush_opt) +# These operations always run on shutdown. +# +# Defaults to 30 minutes (1800 seconds) to avoid IO amplification from too frequent cleanups +#cleanup_second_interval = 1800 -# This item is undocumented. Please contribute documentation for it. -# -#servernameevent_data_cache_capacity = varies by system -# This item is undocumented. Please contribute documentation for it. -# -#stateinfo_cache_capacity = varies by system +### RocksDB options -# This item is undocumented. Please contribute documentation for it. +# Set this to true to use RocksDB config options that are tailored to HDDs (slower device storage) # -#roomid_spacehierarchy_cache_capacity = varies by system +# It is worth noting that by default, conduwuit will use RocksDB with Direct IO enabled. *Generally* speaking this improves performance as it bypasses buffered I/O (system page cache). +# However there is a potential chance that Direct IO may cause issues with database operations if your setup is uncommon. This has been observed with FUSE filesystems, and possibly ZFS filesystem. +# RocksDB generally deals/corrects these issues but it cannot account for all setups. +# If you experience any weird RocksDB issues, try enabling this option as it turns off Direct IO and feel free to report in the conduwuit Matrix room if this option fixes your DB issues. +# See https://github.com/facebook/rocksdb/wiki/Direct-IO for more information. +# +# Defaults to false +#rocksdb_optimize_for_spinning_disks = false -# Maximum entries stored in DNS memory-cache. The size of an entry may -# vary so please take care if raising this value excessively. Only -# decrease this when using an external DNS cache. Please note that -# systemd-resolved does *not* count as an external cache, even when -# configured to do so. +# Enables direct-io to increase database performance. This is enabled by default. Set this option to false if the +# database resides on a filesystem which does not support direct-io. +#rocksdb_direct_io = true + +# RocksDB log level. This is not the same as conduwuit's log level. This is the log level for the RocksDB engine/library +# which show up in your database folder/path as `LOG` files. Defaults to error. conduwuit will typically log RocksDB errors as normal. +#rocksdb_log_level = "error" + +# Max RocksDB `LOG` file size before rotating in bytes. Defaults to 4MB. +#rocksdb_max_log_file_size = 4194304 + +# Time in seconds before RocksDB will forcibly rotate logs. Defaults to 0. +#rocksdb_log_time_to_roll = 0 + +# Amount of threads that RocksDB will use for parallelism on database operatons such as cleanup, sync, flush, compaction, etc. Set to 0 to use all your logical threads. # +# Defaults to your CPU logical thread count. +#rocksdb_parallelism_threads = 0 + +# Enables idle IO priority for compaction thread. This prevents any unexpected lag in the server's operation and +# is usually a good idea. Enabled by default. +#rocksdb_compaction_ioprio_idle = true + +# Enables idle CPU priority for compaction thread. This is not enabled by default to prevent compaction from +# falling too far behind on busy systems. +#rocksdb_compaction_prio_idle = false + +# Maximum number of LOG files RocksDB will keep. This must *not* be set to 0. It must be at least 1. +# Defaults to 3 as these are not very useful. +#rocksdb_max_log_files = 3 + +# Type of RocksDB database compression to use. +# Available options are "zstd", "zlib", "bz2", "lz4", or "none" +# It is best to use ZSTD as an overall good balance between speed/performance, storage, IO amplification, and CPU usage. +# For more performance but less compression (more storage used) and less CPU usage, use LZ4. +# See https://github.com/facebook/rocksdb/wiki/Compression for more details. +# +# "none" will disable compression. +# +# Defaults to "zstd" +#rocksdb_compression_algo = "zstd" + +# Level of compression the specified compression algorithm for RocksDB to use. +# Default is 32767, which is internally read by RocksDB as the default magic number and +# translated to the library's default compression level as they all differ. +# See their `kDefaultCompressionLevel`. +# +#rocksdb_compression_level = 32767 + +# Level of compression the specified compression algorithm for the bottommost level/data for RocksDB to use. +# Default is 32767, which is internally read by RocksDB as the default magic number and +# translated to the library's default compression level as they all differ. +# See their `kDefaultCompressionLevel`. +# +# Since this is the bottommost level (generally old and least used data), it may be desirable to have a very +# high compression level here as it's lesss likely for this data to be used. Research your chosen compression algorithm. +# +#rocksdb_bottommost_compression_level = 32767 + +# Whether to enable RocksDB "bottommost_compression". +# At the expense of more CPU usage, this will further compress the database to reduce more storage. +# It is recommended to use ZSTD compression with this for best compression results. +# See https://github.com/facebook/rocksdb/wiki/Compression for more details. +# +# Defaults to false as this uses more CPU when compressing. +#rocksdb_bottommost_compression = false + +# Database recovery mode (for RocksDB WAL corruption) +# +# Use this option when the server reports corruption and refuses to start. Set mode 2 (PointInTime) +# to cleanly recover from this corruption. The server will continue from the last good state, +# several seconds or minutes prior to the crash. Clients may have to run "clear-cache & reload" to +# account for the rollback. Upon success, you may reset the mode back to default and restart again. +# Please note in some cases the corruption error may not be cleared for at least 30 minutes of +# operation in PointInTime mode. +# +# As a very last ditch effort, if PointInTime does not fix or resolve anything, you can try mode +# 3 (SkipAnyCorruptedRecord) but this will leave the server in a potentially inconsistent state. +# +# The default mode 1 (TolerateCorruptedTailRecords) will automatically drop the last entry in the +# database if corrupted during shutdown, but nothing more. It is extraordinarily unlikely this will +# desynchronize clients. To disable any form of silent rollback set mode 0 (AbsoluteConsistency). +# +# The options are: +# 0 = AbsoluteConsistency +# 1 = TolerateCorruptedTailRecords (default) +# 2 = PointInTime (use me if trying to recover) +# 3 = SkipAnyCorruptedRecord (you now voided your Conduwuit warranty) +# +# See https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes for more information +# +# Defaults to 1 (TolerateCorruptedTailRecords) +#rocksdb_recovery_mode = 1 + +# Controls whether memory buffers are written to storage at the fixed interval set by `cleanup_period_interval` +# even when they are not full. Setting this will increase load on the storage backplane and is never advised +# under normal circumstances. +#rocksdb_periodic_cleanup = false + + +### Domain Name Resolution and Caching + +# Maximum entries stored in DNS memory-cache. The size of an entry may vary so please take care if +# raising this value excessively. Only decrease this when using an external DNS cache. Please note +# that systemd does *not* count as an external cache, even when configured to do so. #dns_cache_entries = 32768 -# Minimum time-to-live in seconds for entries in the DNS cache. The -# default may appear high to most administrators; this is by design as the -# majority of NXDOMAINs are correct for a long time (e.g. the server is no -# longer running Matrix). Only decrease this if you are using an external -# DNS cache. -# +# Minimum time-to-live in seconds for entries in the DNS cache. The default may appear high to most +# administrators; this is by design. Only decrease this if you are using an external DNS cache. #dns_min_ttl = 10800 -# Minimum time-to-live in seconds for NXDOMAIN entries in the DNS cache. -# This value is critical for the server to federate efficiently. -# NXDOMAIN's are assumed to not be returning to the federation and -# aggressively cached rather than constantly rechecked. +# Minimum time-to-live in seconds for NXDOMAIN entries in the DNS cache. This value is critical for +# the server to federate efficiently. NXDOMAIN's are assumed to not be returning to the federation +# and aggressively cached rather than constantly rechecked. # # Defaults to 3 days as these are *very rarely* false negatives. -# #dns_min_ttl_nxdomain = 259200 -# Number of DNS nameserver retries after a timeout or error. -# -#dns_attempts = 10 - -# The number of seconds to wait for a reply to a DNS query. Please note -# that recursive queries can take up to several seconds for some domains, -# so this value should not be too low, especially on slower hardware or -# resolvers. -# +# The number of seconds to wait for a reply to a DNS query. Please note that recursive queries can +# take up to several seconds for some domains, so this value should not be too low. #dns_timeout = 10 -# Fallback to TCP on DNS errors. Set this to false if unsupported by -# nameserver. -# +# Number of retries after a timeout. +#dns_attempts = 10 + +# Fallback to TCP on DNS errors. Set this to false if unsupported by nameserver. #dns_tcp_fallback = true -# Enable to query all nameservers until the domain is found. Referred to -# as "trust_negative_responses" in hickory_resolver. This can avoid -# useless DNS queries if the first nameserver responds with NXDOMAIN or -# an empty NOERROR response. +# Enable to query all nameservers until the domain is found. Referred to as "trust_negative_responses" in hickory_resolver. +# This can avoid useless DNS queries if the first nameserver responds with NXDOMAIN or an empty NOERROR response. # +# The default is to query one nameserver and stop (false). #query_all_nameservers = true -# Enable using *only* TCP for querying your specified nameservers instead -# of UDP. -# -# If you are running continuwuity in a container environment, this config -# option may need to be enabled. For more details, see: -# https://continuwuity.org/troubleshooting.html#potential-dns-issues-when-using-docker +# Enables using *only* TCP for querying your specified nameservers instead of UDP. # +# You very likely do *not* want this. hickory-resolver already falls back to TCP on UDP errors. +# Defaults to false #query_over_tcp_only = false # DNS A/AAAA record lookup strategy # # Takes a number of one of the following options: # 1 - Ipv4Only (Only query for A records, no AAAA/IPv6) -# # 2 - Ipv6Only (Only query for AAAA records, no A/IPv4) +# 3 - Ipv4AndIpv6 (Query for A and AAAA records in parallel, uses whatever returns a successful response first) +# 4 - Ipv6thenIpv4 (Query for AAAA record, if that fails then query the A record) +# 5 - Ipv4thenIpv6 (Query for A record, if that fails then query the AAAA record) # -# 3 - Ipv4AndIpv6 (Query for A and AAAA records in parallel, uses whatever -# returns a successful response first) -# -# 4 - Ipv6thenIpv4 (Query for AAAA record, if that fails then query the A -# record) -# -# 5 - Ipv4thenIpv6 (Query for A record, if that fails then query the AAAA -# record) -# -# If you don't have IPv6 networking, then for better DNS performance it -# may be suitable to set this to Ipv4Only (1) as you will never ever use -# the AAAA record contents even if the AAAA record is successful instead -# of the A record. +# If you don't have IPv6 networking, then for better performance it may be suitable to set this to Ipv4Only (1) as +# you will never ever use the AAAA record contents even if the AAAA record is successful instead of the A record. # +# Defaults to 5 - Ipv4ThenIpv6 as this is the most compatible and IPv4 networking is currently the most prevalent. #ip_lookup_strategy = 5 -# Max request size for file uploads in bytes. Defaults to 20MB. -# -#max_request_size = 20971520 -# This item is undocumented. Please contribute documentation for it. -# -#max_fetch_prev_events = 192 +### Request Timeouts, Connection Timeouts, and Connection Pooling -# Default/base connection timeout (seconds). This is used only by URL -# previews and update/news endpoint checks. +## Request Timeouts are HTTP response timeouts +## Connection Timeouts are TCP connection timeouts +## +## Connection Pooling Timeouts are timeouts for keeping an open idle connection alive. +## Connection pooling and keepalive is very useful for federation or other places where for performance reasons, +## we want to keep connections open that we will re-use frequently due to TCP and TLS 1.3 overhead/expensiveness. +## +## Generally these defaults are the best, but if you find a reason to need to change these they are here. + +# Default/base connection timeout. +# This is used only by URL previews and update/news endpoint checks # +# Defaults to 10 seconds #request_conn_timeout = 10 -# Default/base request timeout (seconds). The time waiting to receive more -# data from another server. This is used only by URL previews, -# update/news, and misc endpoint checks. +# Default/base request timeout. The time waiting to receive more data from another server. +# This is used only by URL previews, update/news, and misc endpoint checks # +# Defaults to 35 seconds #request_timeout = 35 -# Default/base request total timeout (seconds). The time limit for a whole -# request. This is set very high to not cancel healthy requests while -# serving as a backstop. This is used only by URL previews and update/news -# endpoint checks. +# Default/base request total timeout. The time limit for a whole request. This is set very high to not +# cancel healthy requests while serving as a backstop. +# This is used only by URL previews and update/news endpoint checks # +# Defaults to 320 seconds #request_total_timeout = 320 -# Default/base idle connection pool timeout (seconds). This is used only -# by URL previews and update/news endpoint checks. +# Default/base idle connection pool timeout +# This is used only by URL previews and update/news endpoint checks # +# Defaults to 5 seconds #request_idle_timeout = 5 -# Default/base max idle connections per host. This is used only by URL -# previews and update/news endpoint checks. Defaults to 1 as generally the -# same open connection can be re-used. +# Default/base max idle connections per host +# This is used only by URL previews and update/news endpoint checks # +# Defaults to 1 as generally the same open connection can be re-used #request_idle_per_host = 1 -# Federation well-known resolution connection timeout (seconds). +# Federation well-known resolution connection timeout # +# Defaults to 6 seconds #well_known_conn_timeout = 6 -# Federation HTTP well-known resolution request timeout (seconds). +# Federation HTTP well-known resolution request timeout # +# Defaults to 10 seconds #well_known_timeout = 10 -# Federation client connection timeout (seconds). You should not set this -# to high values, as dead homeservers can significantly slow down -# federation, specifically key retrieval, which will take roughly the -# amount of time you configure here given that a homeserver doesn't -# respond. This will cause most clients to time out /keys/query, causing -# E2EE and device verification to fail. -# -#federation_conn_timeout = 10 - -# Federation client request timeout (seconds). You most definitely want -# this to be high to account for extremely large room joins, slow -# homeservers, your own resources etc. +# Federation client request timeout +# You most definitely want this to be high to account for extremely large room joins, slow homeservers, your own resources etc. # +# Defaults to 300 seconds #federation_timeout = 300 -# MSC4284 Policy server request timeout (seconds). Generally policy -# servers should respond near instantly, however may slow down under -# load. If a policy server doesn't respond in a short amount of time, the -# room it is configured in may become unusable if this limit is set too -# high. 10 seconds is a good default, however dropping this to 3-5 seconds -# can be acceptable. -# -# Please be aware that policy requests are *NOT* currently re-tried, so if -# a spam check request fails, the event will be assumed to be not spam, -# which in some cases may result in spam being sent to or received from -# the room that would typically be prevented. -# -# About policy servers: https://matrix.org/blog/2025/04/introducing-policy-servers/ -# -#policy_server_request_timeout = 10 - -# Federation client idle connection pool timeout (seconds). +# Federation client idle connection pool timeout # +# Defaults to 25 seconds #federation_idle_timeout = 25 -# Federation client max idle connections per host. Defaults to 1 as -# generally the same open connection can be re-used. +# Federation client max idle connections per host # +# Defaults to 1 as generally the same open connection can be re-used #federation_idle_per_host = 1 -# Federation sender request timeout (seconds). The time it takes for the -# remote server to process sent transactions can take a while. +# Federation sender request timeout +# The time it takes for the remote server to process sent transactions can take a while. # +# Defaults to 180 seconds #sender_timeout = 180 -# Federation sender idle connection pool timeout (seconds). +# Federation sender idle connection pool timeout # +# Defaults to 180 seconds #sender_idle_timeout = 180 -# Federation sender transaction retry backoff limit (seconds). +# Federation sender transaction retry backoff limit # +# Defaults to 86400 seconds #sender_retry_backoff_limit = 86400 -# Appservice URL request connection timeout. Defaults to 35 seconds as -# generally appservices are hosted within the same network. +# Appservice URL request connection timeout # +# Defaults to 35 seconds as generally appservices are hosted within the same network #appservice_timeout = 35 -# Appservice URL idle connection pool timeout (seconds). +# Appservice URL idle connection pool timeout # +# Defaults to 300 seconds #appservice_idle_timeout = 300 -# Notification gateway pusher idle connection pool timeout. +# Notification gateway pusher idle connection pool timeout # +# Defaults to 15 seconds #pusher_idle_timeout = 15 -# Maximum time to receive a request from a client (seconds). -# -#client_receive_timeout = 75 -# Maximum time to process a request received from a client (seconds). -# -#client_request_timeout = 180 +### Presence / Typing Indicators / Read Receipts -# Maximum time to transmit a response to a client (seconds) -# -#client_response_timeout = 120 - -# Grace period for clean shutdown of client requests (seconds). -# -#client_shutdown_timeout = 10 - -# Grace period for clean shutdown of federation requests (seconds). -# -#sender_shutdown_timeout = 5 - -# Enables registration. If set to false, no users can register on this -# server. -# -# If set to true without a token configured, users can register with no -# form of 2nd-step only if you set the following option to true: -# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse` -# -# If you would like registration only via token reg, please configure -# `registration_token` or `registration_token_file`. -# -#allow_registration = false - -# If registration is enabled, and this setting is true, new users -# registered after the first admin user will be automatically suspended -# and will require an admin to run `!admin users unsuspend `. -# -# Suspended users are still able to read messages, make profile updates, -# leave rooms, and deactivate their account, however cannot send messages, -# invites, or create/join or otherwise modify rooms. -# They are effectively read-only. -# -# If you want to use this to screen people who register on your server, -# you should add a room to `auto_join_rooms` that is public, and contains -# information that new users can read (since they won't be able to DM -# anyone, or send a message, and may be confused). -# -#suspend_on_register = false - -# Enabling this setting opens registration to anyone without restrictions. -# This makes your server vulnerable to abuse -# -#yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = false - -# A static registration token that new users will have to provide when -# creating an account. If unset and `allow_registration` is true, -# you must set -# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse` -# to true to allow open registration without any conditions. -# -# YOU NEED TO EDIT THIS OR USE registration_token_file. -# -# example: "o&^uCtes4HPf0Vu@F20jQeeWE7" -# -#registration_token = - -# Path to a file on the system that gets read for additional registration -# tokens. Multiple tokens can be added if you separate them with -# whitespace -# -# continuwuity must be able to access the file, and it must not be empty -# -# example: "/etc/continuwuity/.reg_token" -# -#registration_token_file = - -# The public site key for reCaptcha. If this is provided, reCaptcha -# becomes required during registration. If both captcha *and* -# registration token are enabled, both will be required during -# registration. -# -# IMPORTANT: "Verify the origin of reCAPTCHA solutions" **MUST** BE -# DISABLED IF YOU WANT THE CAPTCHA TO WORK IN 3RD PARTY CLIENTS, OR -# CLIENTS HOSTED ON DOMAINS OTHER THAN YOUR OWN! -# -# Registration must be enabled (`allow_registration` must be true) for -# this to have any effect. -# -#recaptcha_site_key = - -# The private site key for reCaptcha. -# If this is omitted, captcha registration will not work, -# even if `recaptcha_site_key` is set. -# -#recaptcha_private_site_key = - -# Controls whether encrypted rooms and events are allowed. -# -#allow_encryption = true - -# Controls whether federation is allowed or not. It is not recommended to -# disable this after the fact due to potential federation breakage. -# -#allow_federation = true - -# Allows federation requests to be made to itself -# -# This isn't intended and is very likely a bug if federation requests are -# being sent to yourself. This currently mainly exists for development -# purposes. -# -#federation_loopback = false - -# Always calls /forget on behalf of the user if leaving a room. This is a -# part of MSC4267 "Automatically forgetting rooms on 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}". -# -# This can prevent profile scraping. -# -#require_auth_for_profile_requests = 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 -# directory. If federation is disabled entirely (`allow_federation`), this -# is inherently false. -# -#allow_public_room_directory_over_federation = false - -# Set this to true to allow your server's public room directory to be -# queried without client authentication (access token) through the Client -# APIs. Set this to false to protect against /publicRooms spiders. -# -#allow_public_room_directory_without_auth = false - -# Allow guests/unauthenticated users to access TURN credentials. -# -# This is the equivalent of Synapse's `turn_allow_guests` config option. -# This allows any unauthenticated user to call the endpoint -# `/_matrix/client/v3/voip/turnServer`. -# -# It is unlikely you need to enable this as all major clients support -# authentication for this endpoint and prevents misuse of your TURN server -# from potential bots. -# -#turn_allow_guests = false - -# Set this to true to lock down your server's public room directory and -# only allow admins to publish rooms to the room directory. Unpublishing -# is still allowed by all users with this enabled. -# -#lockdown_public_room_directory = false - -# Set this to true to allow federating device display names / allow -# external users to see your device display name. If federation is -# disabled entirely (`allow_federation`), this is inherently false. For -# privacy reasons, this is best left disabled. -# -#allow_device_name_federation = false - -# Config option to allow or disallow incoming federation requests that -# obtain the profiles of our local users from -# `/_matrix/federation/v1/query/profile` -# -# Increases privacy of your local user's such as display names, but some -# remote users may get a false "this user does not exist" error when they -# try to invite you to a DM or room. Also can protect against profile -# spiders. -# -# This is inherently false if `allow_federation` is disabled -# -#allow_inbound_profile_lookup_federation_requests = true - -# Allow standard users to create rooms. Appservices and admins are always -# allowed to create rooms -# -#allow_room_creation = true - -# Set to false to disable users from joining or creating room versions -# that aren't officially supported by continuwuity. -# -# continuwuity officially supports room versions 6 - 11. -# -# continuwuity has slightly experimental (though works fine in practice) -# support for versions 3 - 5. -# -#allow_unstable_room_versions = true - -# Default room version continuwuity will create rooms with. -# -# Per spec, room version 11 is the default. -# -#default_room_version = 11 - -# Enable OpenTelemetry OTLP tracing export. This replaces the deprecated -# Jaeger exporter. Traces will be sent via OTLP to a collector (such as -# Jaeger) that supports the OpenTelemetry Protocol. -# -# Configure your OTLP endpoint using the OTEL_EXPORTER_OTLP_ENDPOINT -# environment variable (defaults to http://localhost:4318). -# -#allow_otlp = false - -# Filter for OTLP tracing spans. This controls which spans are exported -# to the OTLP collector. -# -#otlp_filter = "info" - -# If the 'perf_measurements' compile-time feature is enabled, enables -# collecting folded stack trace profile of tracing spans using -# tracing_flame. The resulting profile can be visualized with inferno[1], -# speedscope[2], or a number of other tools. -# -# [1]: https://github.com/jonhoo/inferno -# [2]: www.speedscope.app -# -#tracing_flame = false - -# This item is undocumented. Please contribute documentation for it. -# -#tracing_flame_filter = "info" - -# This item is undocumented. Please contribute documentation for it. -# -#tracing_flame_output_path = "./tracing.folded" - -# Examples: -# -# - No proxy (default): -# -# proxy = "none" -# -# - For global proxy, create the section at the bottom of this file: -# -# [global.proxy] -# global = { url = "socks5h://localhost:9050" } -# -# - To proxy some domains: -# -# [global.proxy] -# [[global.proxy.by_domain]] -# url = "socks5h://localhost:9050" -# include = ["*.onion", "matrix.myspecial.onion"] -# exclude = ["*.myspecial.onion"] -# -# Include vs. Exclude: -# -# - If include is an empty list, it is assumed to be `["*"]`. -# -# - If a domain matches both the exclude and include list, the proxy will -# only be used if it was included because of a more specific rule than -# it was excluded. In the above example, the proxy would be used for -# `ordinary.onion`, `matrix.myspecial.onion`, but not -# `hello.myspecial.onion`. -# -#proxy = "none" - -# Servers listed here will be used to gather public keys of other servers -# (notary trusted key servers). -# -# Currently, continuwuity doesn't support inbound batched key requests, so -# this list should only contain other Synapse servers. -# -# example: ["matrix.org", "tchncs.de"] -# -#trusted_servers = ["matrix.org"] - -# Whether to query the servers listed in trusted_servers first or query -# the origin server first. For best security, querying the origin server -# first is advised to minimize the exposure to a compromised trusted -# server. For maximum federation/join performance this can be set to true, -# however other options exist to query trusted servers first under -# specific high-load circumstances and should be evaluated before setting -# this to true. -# -#query_trusted_key_servers_first = false - -# Whether to query the servers listed in trusted_servers first -# specifically on room joins. This option limits the exposure to a -# compromised trusted server to room joins only. The join operation -# requires gathering keys from many origin servers which can cause -# significant delays. Therefor this defaults to true to mitigate -# unexpected delays out-of-the-box. The security-paranoid or those willing -# to tolerate delays are advised to set this to false. Note that setting -# query_trusted_key_servers_first to true causes this option to be -# ignored. -# -#query_trusted_key_servers_first_on_join = true - -# Only query trusted servers for keys and never the origin server. This is -# intended for clusters or custom deployments using their trusted_servers -# as forwarding-agents to cache and deduplicate requests. Notary servers -# do not act as forwarding-agents by default, therefor do not enable this -# unless you know exactly what you are doing. -# -#only_query_trusted_key_servers = false - -# Maximum number of keys to request in each trusted server batch query. -# -#trusted_server_batch_size = 1024 - -# Max log level for continuwuity. Allows debug, info, warn, or error. -# -# See also: -# https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives -# -# **Caveat**: -# For release builds, the tracing crate is configured to only implement -# levels higher than error to avoid unnecessary overhead in the compiled -# binary from trace macros. For debug builds, this restriction is not -# applied. -# -#log = "info" - -# Output logs with ANSI colours. -# -#log_colors = true - -# Configures the span events which will be outputted with the log. -# -#log_span_events = "none" - -# Configures whether CONTINUWUITY_LOG EnvFilter matches values using -# regular expressions. See the tracing_subscriber documentation on -# Directives. -# -#log_filter_regex = true - -# Toggles the display of ThreadId in tracing log output. -# -#log_thread_ids = false - -# Enable journald logging on Unix platforms -# -# When enabled, log output will be sent to the systemd journal -# This is only supported on Unix platforms -# -#log_to_journald = false - -# The syslog identifier to use with journald logging -# -# Only used when journald logging is enabled -# -# Defaults to the binary name -# -#journald_identifier = - -# OpenID token expiration/TTL in seconds. -# -# These are the OpenID tokens that are primarily used for Matrix account -# integrations (e.g. Vector Integrations in Element), *not* OIDC/OpenID -# Connect/etc. -# -#openid_token_ttl = 3600 - -# Allow an existing session to mint a login token for another client. -# This requires interactive authentication, but has security ramifications -# as a malicious client could use the mechanism to spawn more than one -# session. -# Enabled by default. -# -#login_via_existing_session = true - -# Login token expiration/TTL in milliseconds. -# -# These are short-lived tokens for the m.login.token endpoint. -# This is used to allow existing sessions to create new sessions. -# see login_via_existing_session. -# -#login_token_ttl = 120000 - -# Static TURN username to provide the client if not using a shared secret -# ("turn_secret"), It is recommended to use a shared secret over static -# credentials. -# -#turn_username = false - -# Static TURN password to provide the client if not using a shared secret -# ("turn_secret"). It is recommended to use a shared secret over static -# credentials. -# -#turn_password = false - -# Vector list of TURN URIs/servers to use. -# -# Replace "example.turn.uri" with your TURN domain, such as the coturn -# "realm" config option. If using TURN over TLS, replace the URI prefix -# "turn:" with "turns:". -# -# example: ["turn:example.turn.uri?transport=udp", -# "turn:example.turn.uri?transport=tcp"] -# -#turn_uris = [] - -# TURN secret to use for generating the HMAC-SHA1 hash apart of username -# and password generation. -# -# This is more secure, but if needed you can use traditional static -# username/password credentials. -# -#turn_secret = false - -# TURN secret to use that's read from the file path specified. -# -# This takes priority over "turn_secret" first, and falls back to -# "turn_secret" if invalid or failed to open. -# -# example: "/etc/continuwuity/.turn_secret" -# -#turn_secret_file = - -# TURN TTL, in seconds. -# -#turn_ttl = 86400 - -# List/vector of room IDs or room aliases that continuwuity will make -# newly registered users join. The rooms specified must be rooms that you -# have joined at least once on the server, and must be public. -# -# example: ["#continuwuity:continuwuity.org", -# "!main-1:continuwuity.org"] -# -#auto_join_rooms = [] - -# Config option to automatically deactivate the account of any user who -# attempts to join a: -# - banned room -# - forbidden room alias -# - room alias or ID with a forbidden server name -# -# This may be useful if all your banned lists consist of toxic rooms or -# servers that no good faith user would ever attempt to join, and -# to automatically remediate the problem without any admin user -# intervention. -# -# This will also make the user leave all rooms. Federation (e.g. remote -# room invites) are ignored here. -# -# Defaults to false as rooms can be banned for non-moderation-related -# reasons and this performs a full user deactivation. -# -#auto_deactivate_banned_room_attempts = false - -# RocksDB log level. This is not the same as continuwuity's log level. -# This is the log level for the RocksDB engine/library which show up in -# your database folder/path as `LOG` files. continuwuity will log RocksDB -# errors as normal through tracing or panics if severe for safety. -# -#rocksdb_log_level = "error" - -# This item is undocumented. Please contribute documentation for it. -# -#rocksdb_log_stderr = false - -# Max RocksDB `LOG` file size before rotating in bytes. Defaults to 4MB in -# bytes. -# -#rocksdb_max_log_file_size = 4194304 - -# Time in seconds before RocksDB will forcibly rotate logs. -# -#rocksdb_log_time_to_roll = 0 - -# Set this to true to use RocksDB config options that are tailored to HDDs -# (slower device storage). -# -# It is worth noting that by default, continuwuity will use RocksDB with -# Direct IO enabled. *Generally* speaking this improves performance as it -# bypasses buffered I/O (system page cache). However there is a potential -# chance that Direct IO may cause issues with database operations if your -# setup is uncommon. This has been observed with FUSE filesystems, and -# possibly ZFS filesystem. RocksDB generally deals/corrects these issues -# but it cannot account for all setups. If you experience any weird -# RocksDB issues, try enabling this option as it turns off Direct IO and -# feel free to report in the continuwuity Matrix room if this option fixes -# your DB issues. -# -# For more information, see: -# https://github.com/facebook/rocksdb/wiki/Direct-IO -# -#rocksdb_optimize_for_spinning_disks = false - -# Enables direct-io to increase database performance via unbuffered I/O. -# -# For more details about direct I/O and RockDB, see: -# https://github.com/facebook/rocksdb/wiki/Direct-IO -# -# Set this option to false if the database resides on a filesystem which -# does not support direct-io like FUSE, or any form of complex filesystem -# setup such as possibly ZFS. -# -#rocksdb_direct_io = true - -# Amount of threads that RocksDB will use for parallelism on database -# operations such as cleanup, sync, flush, compaction, etc. Set to 0 to -# use all your logical threads. Defaults to your CPU logical thread count. -# -#rocksdb_parallelism_threads = varies by system - -# Maximum number of LOG files RocksDB will keep. This must *not* be set to -# 0. It must be at least 1. Defaults to 3 as these are not very useful -# unless troubleshooting/debugging a RocksDB bug. -# -#rocksdb_max_log_files = 3 - -# Type of RocksDB database compression to use. -# -# Available options are "zstd", "bz2", "lz4", or "none". -# -# It is best to use ZSTD as an overall good balance between -# speed/performance, storage, IO amplification, and CPU usage. For more -# performance but less compression (more storage used) and less CPU usage, -# use LZ4. -# -# For more details, see: -# https://github.com/facebook/rocksdb/wiki/Compression -# -# "none" will disable compression. -# -#rocksdb_compression_algo = "zstd" - -# Level of compression the specified compression algorithm for RocksDB to -# use. -# -# Default is 32767, which is internally read by RocksDB as the default -# magic number and translated to the library's default compression level -# as they all differ. See their `kDefaultCompressionLevel`. -# -# Note when using the default value we may override it with a setting -# tailored specifically for continuwuity. -# -#rocksdb_compression_level = 32767 - -# Level of compression the specified compression algorithm for the -# bottommost level/data for RocksDB to use. Default is 32767, which is -# internally read by RocksDB as the default magic number and translated to -# the library's default compression level as they all differ. See their -# `kDefaultCompressionLevel`. -# -# Since this is the bottommost level (generally old and least used data), -# it may be desirable to have a very high compression level here as it's -# less likely for this data to be used. Research your chosen compression -# algorithm. -# -# Note when using the default value we may override it with a setting -# tailored specifically for continuwuity. -# -#rocksdb_bottommost_compression_level = 32767 - -# Whether to enable RocksDB's "bottommost_compression". -# -# At the expense of more CPU usage, this will further compress the -# database to reduce more storage. It is recommended to use ZSTD -# compression with this for best compression results. This may be useful -# if you're trying to reduce storage usage from the database. -# -# See https://github.com/facebook/rocksdb/wiki/Compression for more details. -# -#rocksdb_bottommost_compression = true - -# Database recovery mode (for RocksDB WAL corruption). -# -# Use this option when the server reports corruption and refuses to start. -# Set mode 2 (PointInTime) to cleanly recover from this corruption. The -# server will continue from the last good state, several seconds or -# minutes prior to the crash. Clients may have to run "clear-cache & -# reload" to account for the rollback. Upon success, you may reset the -# mode back to default and restart again. Please note in some cases the -# corruption error may not be cleared for at least 30 minutes of operation -# in PointInTime mode. -# -# As a very last ditch effort, if PointInTime does not fix or resolve -# anything, you can try mode 3 (SkipAnyCorruptedRecord) but this will -# leave the server in a potentially inconsistent state. -# -# The default mode 1 (TolerateCorruptedTailRecords) will automatically -# drop the last entry in the database if corrupted during shutdown, but -# nothing more. It is extraordinarily unlikely this will desynchronize -# clients. To disable any form of silent rollback set mode 0 -# (AbsoluteConsistency). -# -# The options are: -# 0 = AbsoluteConsistency -# 1 = TolerateCorruptedTailRecords (default) -# 2 = PointInTime (use me if trying to recover) -# 3 = SkipAnyCorruptedRecord (you now voided your Continuwuity warranty) -# -# For more information on these modes, see: -# https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes -# -# For more details on recovering a corrupt database, see: -# https://continuwuity.org/troubleshooting.html#database-corruption -# -#rocksdb_recovery_mode = 1 - -# Enables or disables paranoid SST file checks. This can improve RocksDB -# database consistency at a potential performance impact due to further -# safety checks ran. -# -# For more information, see: -# https://github.com/facebook/rocksdb/wiki/Online-Verification#columnfamilyoptionsparanoid_file_checks -# -#rocksdb_paranoid_file_checks = false - -# Enables or disables checksum verification in rocksdb at runtime. -# Checksums are usually hardware accelerated with low overhead; they are -# enabled in rocksdb by default. Older or slower platforms may see gains -# from disabling. -# -#rocksdb_checksums = true - -# Enables the "atomic flush" mode in rocksdb. This option is not intended -# for users. It may be removed or ignored in future versions. Atomic flush -# may be enabled by the paranoid to possibly improve database integrity at -# the cost of performance. -# -#rocksdb_atomic_flush = false - -# Database repair mode (for RocksDB SST corruption). -# -# Use this option when the server reports corruption while running or -# panics. If the server refuses to start use the recovery mode options -# first. Corruption errors containing the acronym 'SST' which occur after -# startup will likely require this option. -# -# - Backing up your database directory is recommended prior to running the -# repair. -# -# - Disabling repair mode and restarting the server is recommended after -# running the repair. -# -# See https://continuwuity.org/troubleshooting.html#database-corruption for more details on recovering a corrupt database. -# -#rocksdb_repair = false - -# This item is undocumented. Please contribute documentation for it. -# -#rocksdb_read_only = false - -# This item is undocumented. Please contribute documentation for it. -# -#rocksdb_secondary = false - -# Enables idle CPU priority for compaction thread. This is not enabled by -# default to prevent compaction from falling too far behind on busy -# systems. -# -#rocksdb_compaction_prio_idle = false - -# Enables idle IO priority for compaction thread. This prevents any -# unexpected lag in the server's operation and is usually a good idea. -# Enabled by default. -# -#rocksdb_compaction_ioprio_idle = true - -# Enables RocksDB compaction. You should never ever have to set this -# option to false. If you for some reason find yourself needing to use -# this option as part of troubleshooting or a bug, please reach out to us -# in the continuwuity Matrix room with information and details. -# -# Disabling compaction will lead to a significantly bloated and -# explosively large database, gradually poor performance, unnecessarily -# excessive disk read/writes, and slower shutdowns and startups. -# -#rocksdb_compaction = true - -# Level of statistics collection. Some admin commands to display database -# statistics may require this option to be set. Database performance may -# be impacted by higher settings. -# -# Option is a number ranging from 0 to 6: -# 0 = No statistics. -# 1 = No statistics in release mode (default). -# 2 to 3 = Statistics with no performance impact. -# 3 to 5 = Statistics with possible performance impact. -# 6 = All statistics. -# -#rocksdb_stats_level = 1 - -# This is a password that can be configured that will let you login to the -# server bot account (currently `@conduit`) for emergency troubleshooting -# purposes such as recovering/recreating your admin room, or inviting -# yourself back. -# -# See https://continuwuity.org/troubleshooting.html#lost-access-to-admin-room for other ways to get back into your admin room. -# -# Once this password is unset, all sessions will be logged out for -# security purposes. -# -# example: "F670$2CP@Hw8mG7RY1$%!#Ic7YA" -# -#emergency_password = - -# This item is undocumented. Please contribute documentation for it. -# -#notification_push_path = "/_matrix/push/v1/notify" - -# Allow local (your server only) presence updates/requests. -# -# Note that presence on continuwuity is very fast unlike Synapse's. If -# using outgoing presence, this MUST be enabled. +# Config option to control local (your server only) presence updates/requests. Defaults to true. +# Note that presence on conduwuit is very fast unlike Synapse's. +# If using outgoing presence, this MUST be enabled. # #allow_local_presence = true -# Allow incoming federated presence updates/requests. -# -# This option receives presence updates from other servers, but does not -# send any unless `allow_outgoing_presence` is true. Note that presence on -# continuwuity is very fast unlike Synapse's. +# Config option to control incoming federated presence updates/requests. Defaults to true. +# This option receives presence updates from other servers, but does not send any unless `allow_outgoing_presence` is true. +# Note that presence on conduwuit is very fast unlike Synapse's. # #allow_incoming_presence = true -# Allow outgoing presence updates/requests. -# -# This option sends presence updates to other servers, but does not -# receive any unless `allow_incoming_presence` is true. Note that presence -# on continuwuity is very fast unlike Synapse's. If using outgoing -# presence, you MUST enable `allow_local_presence` as well. +# Config option to control outgoing presence updates/requests. Defaults to true. +# This option sends presence updates to other servers, but does not receive any unless `allow_incoming_presence` is true. +# Note that presence on conduwuit is very fast unlike Synapse's. +# If using outgoing presence, you MUST enable `allow_local_presence` as well. # #allow_outgoing_presence = true -# How many seconds without presence updates before you become idle. -# Defaults to 5 minutes. -# -#presence_idle_timeout_s = 300 - -# How many seconds without presence updates before you become offline. -# Defaults to 30 minutes. -# -#presence_offline_timeout_s = 1800 - -# Enable the presence idle timer for remote users. -# -# Disabling is offered as an optimization for servers participating in -# many large rooms or when resources are limited. Disabling it may cause -# incorrect presence states (i.e. stuck online) to be seen for some remote -# users. -# +# Config option to enable the presence idle timer for remote users. Disabling is offered as an optimization for +# servers participating in many large rooms or when resources are limited. Disabling it may cause incorrect +# presence states (i.e. stuck online) to be seen for some remote users. Defaults to true. #presence_timeout_remote_users = true -# Allow local read receipts. -# -# Disabling this will effectively also disable outgoing federated read -# receipts. -# -#allow_local_read_receipts = true +# Config option to control how many seconds before presence updates that you are idle. Defaults to 5 minutes. +#presence_idle_timeout_s = 300 -# Allow receiving incoming read receipts from remote servers. -# +# Config option to control how many seconds before presence updates that you are offline. Defaults to 30 minutes. +#presence_offline_timeout_s = 1800 + +# Config option to control whether we should receive remote incoming read receipts. +# Defaults to true. #allow_incoming_read_receipts = true -# Allow sending read receipts to remote servers. -# +# Config option to control whether we should send read receipts to remote servers. +# Defaults to true. #allow_outgoing_read_receipts = true -# Allow local typing updates. -# -# Disabling this will effectively also disable outgoing federated typing -# updates. -# -#allow_local_typing = true - -# Allow outgoing typing updates to federation. -# +# Config option to control outgoing typing updates to federation. Defaults to true. #allow_outgoing_typing = true -# Allow incoming typing updates from federation. -# +# Config option to control incoming typing updates from federation. Defaults to true. #allow_incoming_typing = true -# Maximum time federation user can indicate typing. -# +# Config option to control maximum time federation user can indicate typing. #typing_federation_timeout_s = 30 -# Minimum time local client can indicate typing. This does not override a -# client's request to stop typing. It only enforces a minimum value in -# case of no stop request. -# +# Config option to control minimum time local client can indicate typing. This does not override +# a client's request to stop typing. It only enforces a minimum value in case of no stop request. #typing_client_timeout_min_s = 15 -# Maximum time local client can indicate typing. -# +# Config option to control maximum time local client can indicate typing. #typing_client_timeout_max_s = 45 -# Set this to true for continuwuity to compress HTTP response bodies using -# zstd. This option does nothing if continuwuity was not built with -# `zstd_compression` feature. Please be aware that enabling HTTP -# compression may weaken TLS. Most users should not need to enable this. -# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH -# before deciding to enable this. -# -#zstd_compression = false -# Set this to true for continuwuity to compress HTTP response bodies using -# gzip. This option does nothing if continuwuity was not built with -# `gzip_compression` feature. Please be aware that enabling HTTP -# compression may weaken TLS. Most users should not need to enable this. -# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before -# deciding to enable this. +# Other options not in [global]: # -# If you are in a large amount of rooms, you may find that enabling this -# is necessary to reduce the significantly large response bodies. # -#gzip_compression = false - -# Set this to true for continuwuity to compress HTTP response bodies using -# brotli. This option does nothing if continuwuity was not built with -# `brotli_compression` feature. Please be aware that enabling HTTP -# compression may weaken TLS. Most users should not need to enable this. -# See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH -# before deciding to enable this. +# Enables running conduwuit with direct TLS support +# It is strongly recommended you use a reverse proxy instead. This is primarily relevant for test suites like complement that require a private CA setup. +# [global.tls] +# certs = "/path/to/my/certificate.crt" +# key = "/path/to/my/private_key.key" # -#brotli_compression = false - -# Set to true to allow user type "guest" registrations. Some clients like -# Element attempt to register guest users automatically. -# -#allow_guest_registration = false - -# Set to true to log guest registrations in the admin room. Note that -# these may be noisy or unnecessary if you're a public homeserver. -# -#log_guest_registrations = false - -# Set to true to allow guest registrations/users to auto join any rooms -# specified in `auto_join_rooms`. -# -#allow_guests_auto_join_rooms = 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 true for now, but this is highly subject to change, likely -# in the next release. -# -#allow_legacy_media = true - -# This item is undocumented. Please contribute documentation for it. -# -#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. -# Both options must be enabled to handle this. -# 2. When media is deleted from the directory, this check will also delete -# its database entry. -# -# If none of these checks apply to your use cases, and your media -# directory is significantly large setting this to false may reduce -# startup time. -# -#media_startup_check = true - -# Enable backward-compatibility with Conduit's media directory by creating -# symlinks of media. -# -# This option is only necessary if you plan on using Conduit again. -# Otherwise setting this to false reduces filesystem clutter and overhead -# for managing these symlinks in the directory. This is now disabled by -# default. You may still return to upstream Conduit but you have to run -# continuwuity at least once with this set to true and allow the -# media_startup_check to take place before shutting down to return to -# Conduit. -# -#media_compat_file_link = false - -# Prune missing media from the database as part of the media startup -# checks. -# -# This means if you delete files from the media directory the -# corresponding entries will be removed from the database. This is -# disabled by default because if the media directory is accidentally moved -# or inaccessible, the metadata entries in the database will be lost with -# sadness. -# -#prune_missing_media = false - -# List of forbidden server names via regex patterns that we will block -# incoming AND outgoing federation with, and block client room joins / -# remote user invites. -# -# Note that your messages can still make it to forbidden servers through -# backfilling. Events we receive from forbidden servers via backfill -# from servers we *do* federate with will be stored in the database. -# -# This check is applied on the room ID, room alias, sender server name, -# sender user's server name, inbound federation X-Matrix origin, and -# outbound federation handler. -# -# You can set this to ["*"] to block all servers by default, and then -# use `allowed_remote_server_names` to allow only specific servers. -# -# example: ["badserver\\.tld$", "badphrase", "19dollarfortnitecards"] -# -#forbidden_remote_server_names = [] - -# List of allowed server names via regex patterns that we will allow, -# regardless of if they match `forbidden_remote_server_names`. -# -# This option has no effect if `forbidden_remote_server_names` is empty. -# -# example: ["goodserver\\.tld$", "goodphrase"] -# -#allowed_remote_server_names = [] - -# Vector list of regex patterns of server names that continuwuity will -# refuse to download remote media from. -# -# example: ["badserver\.tld$", "badphrase", "19dollarfortnitecards"] -# -#prevent_media_downloads_from = [] - -# List of forbidden server names via regex patterns that we will block all -# outgoing federated room directory requests for. Useful for preventing -# our users from wandering into bad servers or spaces. -# -# example: ["badserver\.tld$", "badphrase", "19dollarfortnitecards"] -# -#forbidden_remote_room_directory_server_names = [] - -# Vector list of regex patterns of server names that continuwuity will not -# send messages to the client from. -# -# Note that there is no way for clients to receive messages once a server -# has become unignored without doing a full sync. This is a protocol -# limitation with the current sync protocols. This means this is somewhat -# of a nuclear option. -# -# example: ["reallybadserver\.tld$", "reallybadphrase", -# "69dollarfortnitecards"] -# -#ignore_messages_from_server_names = [] - -# Send messages from users that the user has ignored to the client. -# -# There is no way for clients to receive messages sent while a user was -# ignored without doing a full sync. This is a protocol limitation with -# the current sync protocols. Disabling this option will move -# responsibility of ignoring messages to the client, which can avoid this -# limitation. -# -#send_messages_from_ignored_users_to_client = false - -# Vector list of IPv4 and IPv6 CIDR ranges / subnets *in quotes* that you -# do not want continuwuity to send outbound requests to. Defaults to -# RFC1918, unroutable, loopback, multicast, and testnet addresses for -# security. -# -# Please be aware that this is *not* a guarantee. You should be using a -# firewall with zones as doing this on the application layer may have -# bypasses. -# -# Currently this does not account for proxies in use like Synapse does. -# -# To disable, set this to be an empty vector (`[]`). -# -# Defaults to: -# ["127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12", -# "192.168.0.0/16", "100.64.0.0/10", "192.0.0.0/24", "169.254.0.0/16", -# "192.88.99.0/24", "198.18.0.0/15", "192.0.2.0/24", "198.51.100.0/24", -# "203.0.113.0/24", "224.0.0.0/4", "::1/128", "fe80::/10", "fc00::/7", -# "2001:db8::/32", "ff00::/8", "fec0::/10"] -# -#ip_range_denylist = - -# Optional IP address or network interface-name to bind as the source of -# URL preview requests. If not set, it will not bind to a specific -# address or interface. -# -# Interface names only supported on Linux, Android, and Fuchsia platforms; -# all other platforms can specify the IP address. To list the interfaces -# on your system, use the command `ip link show`. -# -# example: `"eth0"` or `"1.2.3.4"` -# -#url_preview_bound_interface = - -# Vector list of domains allowed to send requests to for URL previews. -# -# This is a *contains* match, not an explicit match. Putting "google.com" -# will match "https://google.com" and -# "http://mymaliciousdomainexamplegoogle.com" Setting this to "*" will -# allow all URL previews. Please note that this opens up significant -# attack surface to your server, you are expected to be aware of the risks -# by doing so. -# -#url_preview_domain_contains_allowlist = [] - -# Vector list of explicit domains allowed to send requests to for URL -# previews. -# -# This is an *explicit* match, not a contains match. Putting "google.com" -# will match "https://google.com", "http://google.com", but not -# "https://mymaliciousdomainexamplegoogle.com". Setting this to "*" will -# allow all URL previews. Please note that this opens up significant -# attack surface to your server, you are expected to be aware of the risks -# by doing so. -# -#url_preview_domain_explicit_allowlist = [] - -# Vector list of explicit domains not allowed to send requests to for URL -# previews. -# -# This is an *explicit* match, not a contains match. Putting "google.com" -# will match "https://google.com", "http://google.com", but not -# "https://mymaliciousdomainexamplegoogle.com". The denylist is checked -# first before allowlist. Setting this to "*" will not do anything. -# -#url_preview_domain_explicit_denylist = [] - -# Vector list of URLs allowed to send requests to for URL previews. -# -# Note that this is a *contains* match, not an explicit match. Putting -# "google.com" will match "https://google.com/", -# "https://google.com/url?q=https://mymaliciousdomainexample.com", and -# "https://mymaliciousdomainexample.com/hi/google.com" Setting this to "*" -# will allow all URL previews. Please note that this opens up significant -# attack surface to your server, you are expected to be aware of the risks -# by doing so. -# -#url_preview_url_contains_allowlist = [] - -# Maximum amount of bytes allowed in a URL preview body size when -# spidering. Defaults to 256KB in bytes. -# -#url_preview_max_spider_size = 256000 - -# Option to decide whether you would like to run the domain allowlist -# checks (contains and explicit) on the root domain or not. Does not apply -# to URL contains allowlist. Defaults to false. -# -# Example usecase: If this is enabled and you have "wikipedia.org" allowed -# in the explicit and/or contains domain allowlist, it will allow all -# subdomains under "wikipedia.org" such as "en.m.wikipedia.org" as the -# root domain is checked and matched. Useful if the domain contains -# allowlist is still too broad for you but you still want to allow all the -# subdomains under a root domain. -# -#url_preview_check_root_domain = false - -# List of forbidden room aliases and room IDs as strings of regex -# patterns. -# -# Regex can be used or explicit contains matches can be done by just -# specifying the words (see example). -# -# This is checked upon room alias creation, custom room ID creation if -# used, and startup as warnings if any room aliases in your database have -# a forbidden room alias/ID. -# -# example: ["19dollarfortnitecards", "b[4a]droom", "badphrase"] -# -#forbidden_alias_names = [] - -# List of forbidden username patterns/strings. -# -# Regex can be used or explicit contains matches can be done by just -# specifying the words (see example). -# -# This is checked upon username availability check, registration, and -# startup as warnings if any local users in your database have a forbidden -# username. -# -# example: ["administrator", "b[a4]dusernam[3e]", "badphrase"] -# -#forbidden_usernames = [] - -# Retry failed and incomplete messages to remote servers immediately upon -# startup. This is called bursting. If this is disabled, said messages may -# not be delivered until more messages are queued for that server. Do not -# change this option unless server resources are extremely limited or the -# scale of the server's deployment is huge. Do not disable this unless you -# know what you are doing. -# -#startup_netburst = true - -# Messages are dropped and not reattempted. The `startup_netburst` option -# must be enabled for this value to have any effect. Do not change this -# value unless you know what you are doing. Set this value to -1 to -# reattempt every message without trimming the queues; this may consume -# significant disk. Set this value to 0 to drop all messages without any -# attempt at redelivery. -# -#startup_netburst_keep = 50 - -# Block non-admin local users from sending room invites (local and -# remote), and block non-admin users from receiving remote room invites. -# -# Admins are always allowed to send and receive all room invites. -# -#block_non_admin_invites = false - -# Allow admins to enter commands in rooms other than "#admins" (admin -# room) by prefixing your message with "\!admin" or "\\!admin" followed up -# a normal continuwuity admin command. The reply will be publicly visible -# to the room, originating from the sender. -# -# example: \\!admin debug ping puppygock.gay -# -#admin_escape_commands = true - -# Automatically activate the continuwuity admin room console / CLI on -# startup. This option can also be enabled with `--console` continuwuity -# argument. -# -#admin_console_automatic = false - -# List of admin commands to execute on startup. -# -# This option can also be configured with the `--execute` continuwuity -# argument and can take standard shell commands and environment variables -# -# For example: `./continuwuity --execute "server admin-notice continuwuity -# has started up at $(date)"` -# -# example: admin_execute = ["debug ping puppygock.gay", "debug echo hi"]` -# -#admin_execute = [] - -# Ignore errors in startup commands. -# -# If false, continuwuity will error and fail to start if an admin execute -# command (`--execute` / `admin_execute`) fails. -# -#admin_execute_errors_ignore = false - -# List of admin commands to execute on SIGUSR2. -# -# Similar to admin_execute, but these commands are executed when the -# server receives SIGUSR2 on supporting platforms. -# -#admin_signal_execute = [] - -# Controls the max log level for admin command log captures (logs -# generated from running admin commands). Defaults to "info" on release -# builds, else "debug" on debug builds. -# -#admin_log_capture = "info" - -# The default room tag to apply on the admin room. -# -# On some clients like Element, the room tag "m.server_notice" is a -# special pinned room at the very bottom of your room list. The -# continuwuity admin room can be pinned here so you always have an -# easy-to-access shortcut dedicated to your admin room. -# -#admin_room_tag = "m.server_notice" - -# Sentry.io crash/panic reporting, performance monitoring/metrics, etc. -# This is NOT enabled by default. -# -#sentry = false - -# Sentry reporting URL, if a custom one is desired. -# -#sentry_endpoint = "" - -# Report your continuwuity server_name in Sentry.io crash reports and -# metrics. -# -#sentry_send_server_name = false - -# Performance monitoring/tracing sample rate for Sentry.io. -# -# Note that too high values may impact performance, and can be disabled by -# setting it to 0.0 (0%) This value is read as a percentage to Sentry, -# represented as a decimal. Defaults to 15% of traces (0.15) -# -#sentry_traces_sample_rate = 0.15 - -# Whether to attach a stacktrace to Sentry reports. -# -#sentry_attach_stacktrace = false - -# Send panics to Sentry. This is true by default, but Sentry has to be -# enabled. The global `sentry` config option must be enabled to send any -# data. -# -#sentry_send_panic = true - -# Send errors to sentry. This is true by default, but sentry has to be -# enabled. This option is only effective in release-mode; forced to false -# in debug-mode. -# -#sentry_send_error = true - -# Controls the tracing log level for Sentry to send things like -# breadcrumbs and transactions -# -#sentry_filter = "info" - -# Enable the tokio-console. This option is only relevant to developers. -# -# For more information, see: -# https://continuwuity.org/development.html#debugging-with-tokio-console -# -#tokio_console = false - -# This item is undocumented. Please contribute documentation for it. -# -#test = false - -# Controls whether admin room notices like account registrations, password -# changes, account deactivations, room directory publications, etc will be -# sent to the admin room. Update notices and normal admin command -# responses will still be sent. -# -#admin_room_notices = true - -# Enable database pool affinity support. On supporting systems, block -# device queue topologies are detected and the request pool is optimized -# for the hardware; db_pool_workers is determined automatically. -# -#db_pool_affinity = true - -# Sets the number of worker threads in the frontend-pool of the database. -# This number should reflect the I/O capabilities of the system, -# such as the queue-depth or the number of simultaneous requests in -# flight. Defaults to 32 or four times the number of CPU cores, whichever -# is greater. -# -# Note: This value is only used if db_pool_affinity is disabled or not -# detected on the system, otherwise it is determined automatically. -# -#db_pool_workers = 32 - -# When db_pool_affinity is enabled and detected, the size of any worker -# group will not exceed the determined value. This is necessary when -# thread-pooling approach does not scale to the full capabilities of -# high-end hardware; using detected values without limitation could -# degrade performance. -# -# The value is multiplied by the number of cores which share a device -# queue, since group workers can be scheduled on any of those cores. -# -#db_pool_workers_limit = 64 - -# Determines the size of the queues feeding the database's frontend-pool. -# The size of the queue is determined by multiplying this value with the -# number of pool workers. When this queue is full, tokio tasks conducting -# requests will yield until space is available; this is good for -# flow-control by avoiding buffer-bloat, but can inhibit throughput if -# too low. -# -#db_pool_queue_mult = 4 - -# Sets the initial value for the concurrency of streams. This value simply -# allows overriding the default in the code. The default is 32, which is -# the same as the default in the code. Note this value is itself -# overridden by the computed stream_width_scale, unless that is disabled; -# this value can serve as a fixed-width instead. -# -#stream_width_default = 32 - -# Scales the stream width starting from a base value detected for the -# specific system. The base value is the database pool worker count -# determined from the hardware queue size (e.g. 32 for SSD or 64 or 128+ -# for NVMe). This float allows scaling the width up or down by multiplying -# it (e.g. 1.5, 2.0, etc). The maximum result can be the size of the pool -# queue (see: db_pool_queue_mult) as any larger value will stall the tokio -# task. The value can also be scaled down (e.g. 0.5) to improve -# responsiveness for many users at the cost of throughput for each. -# -# Setting this value to 0.0 causes the stream width to be fixed at the -# value of stream_width_default. The default scale is 1.0 to match the -# capabilities detected for the system. -# -#stream_width_scale = 1.0 - -# Sets the initial amplification factor. This controls batch sizes of -# requests made by each pool worker, multiplying the throughput of each -# stream. This value is somewhat abstract from specific hardware -# characteristics and can be significantly larger than any thread count or -# queue size. This is because each database query may require several -# index lookups, thus many database queries in a batch may make progress -# independently while also sharing index and data blocks which may or may -# not be cached. It is worthwhile to submit huge batches to reduce -# complexity. The maximum value is 32768, though sufficient hardware is -# still advised for that. -# -#stream_amplification = 1024 - -# Number of sender task workers; determines sender parallelism. Default is -# '0' which means the value is determined internally, likely matching the -# number of tokio worker-threads or number of cores, etc. Override by -# setting a non-zero value. -# -#sender_workers = 0 - -# Enables listener sockets; can be set to false to disable listening. This -# option is intended for developer/diagnostic purposes only. -# -#listening = true - -# Enables configuration reload when the server receives SIGUSR1 on -# supporting platforms. -# -#config_reload_signal = true - -# This item is undocumented. Please contribute documentation for it. -# -#ldap = false - -[global.tls] - -# Path to a valid TLS certificate file. -# -# example: "/path/to/my/certificate.crt" -# -#certs = - -# Path to a valid TLS certificate private key. -# -# example: "/path/to/my/certificate.key" -# -#key = - # Whether to listen and allow for HTTP and HTTPS connections (insecure!) -# +# This config option is only available if conduwuit was built with `axum_dual_protocol` feature (not default feature) +# Defaults to false #dual_protocol = false -[global.well_known] -# The server URL that the client well-known file will serve. This should -# not contain a port, and should just be a valid HTTPS URL. +# If you are using delegation via well-known files and you cannot serve them from your reverse proxy, you can +# uncomment these to serve them directly from conduwuit. This requires proxying all requests to conduwuit, not just `/_matrix` to work. # -# example: "https://matrix.example.com" +#[global.well_known] +#server = "matrix.example.com:443" +#client = "https://matrix.example.com" # -#client = - -# The server base domain of the URL with a specific port that the server -# well-known file will serve. This should contain a port at the end, and -# should not be a URL. +# A single contact and/or support page for /.well-known/matrix/support +# All options here are strings. Currently only supports 1 single contact. +# No default. # -# example: "matrix.example.com:443" -# -#server = - -# URL to a support page for the server, which will be served as part of -# the MSC1929 server support endpoint at /.well-known/matrix/support. -# Will be included alongside any contact information -# -#support_page = - -# Role string for server support contacts, to be served as part of the -# MSC1929 server support endpoint at /.well-known/matrix/support. -# -#support_role = "m.role.admin" - -# Email address for server support contacts, to be served as part of the -# MSC1929 server support endpoint. -# This will be used along with support_mxid if specified. -# -#support_email = - -# Matrix ID for server support contacts, to be served as part of the -# MSC1929 server support endpoint. -# This will be used along with support_email if specified. -# -# If no email or mxid is specified, all of the server's admins will be -# listed. -# -#support_mxid = - -[global.blurhashing] - -# blurhashing x component, 4 is recommended by https://blurha.sh/ -# -#components_x = 4 - -# blurhashing y component, 3 is recommended by https://blurha.sh/ -# -#components_y = 3 - -# Max raw size that the server will blurhash, this is the size of the -# image after converting it to raw data, it should be higher than the -# upload limit but not too high. The higher it is the higher the -# potential load will be for clients requesting blurhashes. The default -# is 33.55MB. Setting it to 0 disables blurhashing. -# -#blurhash_max_raw_size = 33554432 - -[global.ldap] - -# Whether to enable LDAP login. -# -# example: "true" -# -#enable = false - -# Whether to force LDAP authentication or authorize classical password -# login. -# -# example: "true" -# -#ldap_only = false - -# URI of the LDAP server. -# -# example: "ldap://ldap.example.com:389" -# -#uri = "" - -# Root of the searches. -# -# example: "ou=users,dc=example,dc=org" -# -#base_dn = "" - -# Bind DN if anonymous search is not enabled. -# -# You can use the variable `{username}` that will be replaced by the -# entered username. In such case, the password used to bind will be the -# one provided for the login and not the one given by -# `bind_password_file`. Beware: automatically granting admin rights will -# not work if you use this direct bind instead of a LDAP search. -# -# example: "cn=ldap-reader,dc=example,dc=org" or -# "cn={username},ou=users,dc=example,dc=org" -# -#bind_dn = "" - -# Path to a file on the system that contains the password for the -# `bind_dn`. -# -# The server must be able to access the file, and it must not be empty. -# -#bind_password_file = "" - -# Search filter to limit user searches. -# -# You can use the variable `{username}` that will be replaced by the -# entered username for more complex filters. -# -# example: "(&(objectClass=person)(memberOf=matrix))" -# -#filter = "(objectClass=*)" - -# Attribute to use to uniquely identify the user. -# -# example: "uid" or "cn" -# -#uid_attribute = "uid" - -# Attribute containing the display name of the user. -# -# example: "givenName" or "sn" -# -#name_attribute = "givenName" - -# Root of the searches for admin users. -# -# Defaults to `base_dn` if empty. -# -# example: "ou=admins,dc=example,dc=org" -# -#admin_base_dn = "" - -# The LDAP search filter to find administrative users for continuwuity. -# -# If left blank, administrative state must be configured manually for each -# user. -# -# You can use the variable `{username}` that will be replaced by the -# entered username for more complex filters. -# -# example: "(objectClass=conduwuitAdmin)" or "(uid={username})" -# -#admin_filter = "" +#support_page = "" +#support_role = "" +#support_email = "" +#support_mxid = "" diff --git a/debian/README.md b/debian/README.md new file mode 100644 index 00000000..3fe62212 --- /dev/null +++ b/debian/README.md @@ -0,0 +1,22 @@ +# conduwuit for Debian + +Information about downloading and deploying the Debian package. This may also be referenced for other `apt`-based distros such as Ubuntu. + +### Installation + +It is recommended to see the [generic deployment guide](../deploying/generic.md) for further information if needed as usage of the Debian package is generally related. + +### Configuration + +When installed, the example config is placed at `/etc/conduwuit/conduwuit.toml` as the default config. At the minimum, you will need to change your `server_name` here. + +You can tweak more detailed settings by uncommenting and setting the config options +in `/etc/conduwuit/conduwuit.toml`. + +### Running + +The package uses the [`conduwuit.service`](../configuration.md#example-systemd-unit-file) systemd unit file to start and stop conduwuit. The binary is installed at `/usr/sbin/conduwuit`. + +This package assumes by default that conduwuit will be placed behind a reverse proxy. The default config options apply (listening on `localhost` and TCP port `6167`). Matrix federation requires a valid domain name and TLS, so you will need to set up TLS certificates and renewal for it to work properly if you intend to federate. + +Consult various online documentation and guides on setting up a reverse proxy and TLS. Caddy is documented at the [generic deployment guide](../deploying/generic.md#setting-up-the-reverse-proxy) as it's the easiest and most user friendly. diff --git a/pkg/conduwuit.service b/debian/conduwuit.service similarity index 65% rename from pkg/conduwuit.service rename to debian/conduwuit.service index db9aca1a..ef59f098 100644 --- a/pkg/conduwuit.service +++ b/debian/conduwuit.service @@ -1,24 +1,19 @@ [Unit] -Description=Continuwuity - Matrix homeserver -Documentation=https://continuwuity.org/ -Wants=network-online.target +Description=conduwuit Matrix homeserver +Documentation=https://conduwuit.puppyirl.gay/ After=network-online.target -Alias=matrix-conduwuit.service [Service] DynamicUser=yes User=conduwuit Group=conduwuit -Type=notify-reload -ReloadSignal=SIGUSR1 +Type=notify -Environment="CONTINUWUITY_CONFIG=/etc/conduwuit/conduwuit.toml" +Environment="CONDUWUIT_CONFIG=/etc/conduwuit/conduwuit.toml" -Environment="CONTINUWUITY_LOG_TO_JOURNALD=true" -Environment="CONTINUWUITY_JOURNALD_IDENTIFIER=%N" -Environment="CONTINUWUITY_DATABASE_PATH=/var/lib/conduwuit" +ExecStart=/usr/sbin/conduwuit -ExecStart=/usr/bin/conduwuit +ReadWritePaths=/var/lib/conduwuit /etc/conduwuit AmbientCapabilities= CapabilityBoundingSet= @@ -27,7 +22,7 @@ DevicePolicy=closed LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes -#ProcSubset=pid +ProcSubset=pid ProtectClock=yes ProtectControlGroups=yes ProtectHome=yes @@ -51,17 +46,16 @@ SystemCallArchitectures=native SystemCallFilter=@system-service @resources SystemCallFilter=~@clock @debug @module @mount @reboot @swap @cpu-emulation @obsolete @timer @chown @setuid @privileged @keyring @ipc SystemCallErrorNumber=EPERM +#StateDirectory=conduwuit -StateDirectory=conduwuit -ConfigurationDirectory=conduwuit RuntimeDirectory=conduwuit RuntimeDirectoryMode=0750 Restart=on-failure RestartSec=5 -TimeoutStopSec=4m -TimeoutStartSec=4m +TimeoutStopSec=2m +TimeoutStartSec=2m StartLimitInterval=1m StartLimitBurst=5 diff --git a/pkg/debian/config b/debian/config similarity index 100% rename from pkg/debian/config rename to debian/config diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 00000000..f82cbfff --- /dev/null +++ b/debian/postinst @@ -0,0 +1,44 @@ +#!/bin/sh +set -e + +# TODO: implement debconf support that is maintainable without duplicating the config +#. /usr/share/debconf/confmodule + +CONDUWUIT_DATABASE_PATH=/var/lib/conduwuit +CONDUWUIT_CONFIG_PATH=/etc/conduwuit +CONDUWUIT_CONFIG_FILE="${CONDUWUIT_CONFIG_PATH}/conduwuit.toml" + +case "$1" in + configure) + # Create the `conduwuit` user if it does not exist yet. + if ! getent passwd conduwuit > /dev/null ; then + echo 'Adding system user for the conduwuit Matrix homeserver' 1>&2 + adduser --system --group --quiet \ + --home "$CONDUWUIT_DATABASE_PATH" \ + --disabled-login \ + --shell "/usr/sbin/nologin" \ + --verbose \ + conduwuit + fi + + # Create the database path if it does not exist yet and fix up ownership + # and permissions for the config. + mkdir -v -p "$CONDUWUIT_DATABASE_PATH" + + # symlink the previous location for compatibility + ln -s -v "$CONDUWUIT_DATABASE_PATH" "/var/lib/matrix-conduit" + + chown -v conduwuit:conduwuit -R "$CONDUWUIT_DATABASE_PATH" + chown -v conduwuit:conduwuit -R "$CONDUWUIT_CONFIG_PATH" + + chmod -v 740 "$CONDUWUIT_DATABASE_PATH" + + echo '' + echo 'Make sure you edit the example config at /etc/conduwuit/conduwuit.toml before starting!' + echo 'To start the server, run: systemctl start conduwuit.service' + echo '' + + ;; +esac + +#DEBHELPER# diff --git a/pkg/debian/postrm b/debian/postrm similarity index 57% rename from pkg/debian/postrm rename to debian/postrm index d5a9e0ac..d77a885e 100644 --- a/pkg/debian/postrm +++ b/debian/postrm @@ -5,33 +5,22 @@ set -e CONDUWUIT_CONFIG_PATH=/etc/conduwuit CONDUWUIT_DATABASE_PATH=/var/lib/conduwuit -CONDUWUIT_DATABASE_PATH_SYMLINK=/var/lib/matrix-conduit case $1 in purge) # Remove debconf changes from the db - #db_purge + db_purge # Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior # "configuration files must be preserved when the package is removed, and # only deleted when the package is purged." - - # - if [ -d "$CONDUWUIT_CONFIG_PATH" ]; then - if test -L "$CONDUWUIT_CONFIG_PATH"; then - echo "Deleting continuwuity configuration files" - rm -v -r "$CONDUWUIT_CONFIG_PATH" - fi + rm -v -r "$CONDUWUIT_CONFIG_PATH" fi if [ -d "$CONDUWUIT_DATABASE_PATH" ]; then - if test -L "$CONDUWUIT_DATABASE_PATH"; then - echo "Deleting continuwuity database directory" - rm -r "$CONDUWUIT_DATABASE_PATH" - fi + rm -v -r "$CONDUWUIT_DATABASE_PATH" fi - ;; esac diff --git a/development.md b/development.md deleted file mode 120000 index 35e9aab8..00000000 --- a/development.md +++ /dev/null @@ -1 +0,0 @@ -docs/development.md \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 185c6d6c..00000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,269 +0,0 @@ -ARG RUST_VERSION=1 -ARG DEBIAN_VERSION=bookworm - -FROM --platform=$BUILDPLATFORM docker.io/tonistiigi/xx AS xx -FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-slim-${DEBIAN_VERSION} AS base -FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-slim-${DEBIAN_VERSION} AS toolchain - -# Prevent deletion of apt cache -RUN rm -f /etc/apt/apt.conf.d/docker-clean - -# Match Rustc version as close as possible -# rustc -vV -ARG LLVM_VERSION=20 -# ENV RUSTUP_TOOLCHAIN=${RUST_VERSION} - -# Install repo tools -# Line one: compiler tools -# Line two: curl, for downloading binaries -# Line three: for xx-verify -RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ - --mount=type=cache,target=/var/lib/apt,sharing=locked \ - apt-get update && apt-get install -y \ - pkg-config make jq \ - curl git software-properties-common \ - file - -# LLVM packages -RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ - --mount=type=cache,target=/var/lib/apt,sharing=locked \ - curl https://apt.llvm.org/llvm.sh > llvm.sh && \ - chmod +x llvm.sh && \ - ./llvm.sh ${LLVM_VERSION} && \ - rm llvm.sh - -# Create symlinks for LLVM tools -RUN <> /etc/environment - -# Configure pkg-config -RUN </dev/null 2>/dev/null; then - echo "PKG_CONFIG_LIBDIR=/usr/lib/$(xx-info)/pkgconfig" >> /etc/environment - echo "PKG_CONFIG=/usr/bin/$(xx-info)-pkg-config" >> /etc/environment - fi - echo "PKG_CONFIG_ALLOW_CROSS=true" >> /etc/environment -EOF - -# Configure cc to use clang version -RUN <> /etc/environment - echo "CXX=clang++" >> /etc/environment -EOF - -# Cross-language LTO -RUN <> /etc/environment - echo "CXXFLAGS=-flto" >> /etc/environment - # Linker is set to target-compatible clang by xx - echo "RUSTFLAGS='-Clinker-plugin-lto -Clink-arg=-fuse-ld=lld'" >> /etc/environment -EOF - -# Apply CPU-specific optimizations if TARGET_CPU is provided -ARG TARGET_CPU - -RUN <> /etc/environment - echo "CXXFLAGS='${CXXFLAGS} -march=${TARGET_CPU}'" >> /etc/environment - echo "RUSTFLAGS='${RUSTFLAGS} -C target-cpu=${TARGET_CPU}'" >> /etc/environment - fi -EOF - -# Prepare output directories -RUN mkdir /out - -FROM toolchain AS builder - - -# Get source -COPY . . - -# Restore timestamps from timelord cache if available -RUN --mount=type=cache,target=/timelord/ \ - echo "Restoring timestamps from timelord cache"; \ - timelord sync --source-dir /app --cache-dir /timelord; - -ARG TARGETPLATFORM - -# Verify environment configuration -RUN xx-cargo --print-target-triple - -# Conduwuit version info -ARG GIT_COMMIT_HASH -ARG GIT_COMMIT_HASH_SHORT -ARG GIT_REMOTE_URL -ARG GIT_REMOTE_COMMIT_URL -ARG CONDUWUIT_VERSION_EXTRA -ARG CONTINUWUITY_VERSION_EXTRA -ENV GIT_COMMIT_HASH=$GIT_COMMIT_HASH -ENV GIT_COMMIT_HASH_SHORT=$GIT_COMMIT_HASH_SHORT -ENV GIT_REMOTE_URL=$GIT_REMOTE_URL -ENV GIT_REMOTE_COMMIT_URL=$GIT_REMOTE_COMMIT_URL -ENV CONDUWUIT_VERSION_EXTRA=$CONDUWUIT_VERSION_EXTRA -ENV CONTINUWUITY_VERSION_EXTRA=$CONTINUWUITY_VERSION_EXTRA - -ARG RUST_PROFILE=release - -# Build the binary -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git/db \ - --mount=type=cache,target=/app/target,id=cargo-target-${TARGET_CPU}-${TARGETPLATFORM}-${RUST_PROFILE} \ - bash <<'EOF' - set -o allexport - set -o xtrace - . /etc/environment - TARGET_DIR=($(cargo metadata --no-deps --format-version 1 | \ - jq -r ".target_directory")) - mkdir /out/sbin - PACKAGE=conduwuit - xx-cargo build --locked --profile ${RUST_PROFILE} \ - -p $PACKAGE; - BINARIES=($(cargo metadata --no-deps --format-version 1 | \ - jq -r ".packages[] | select(.name == \"$PACKAGE\") | .targets[] | select( .kind | map(. == \"bin\") | any ) | .name")) - for BINARY in "${BINARIES[@]}"; do - echo $BINARY - xx-verify $TARGET_DIR/$(xx-cargo --print-target-triple)/release/$BINARY - cp $TARGET_DIR/$(xx-cargo --print-target-triple)/release/$BINARY /out/sbin/$BINARY - done -EOF - -# Generate Software Bill of Materials (SBOM) -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git/db \ - bash <<'EOF' - set -o xtrace - mkdir /out/sbom - typeset -A PACKAGES - for BINARY in /out/sbin/*; do - BINARY_BASE=$(basename ${BINARY}) - package=$(cargo metadata --no-deps --format-version 1 | jq -r ".packages[] | select(.targets[] | select( .kind | map(. == \"bin\") | any ) | .name == \"$BINARY_BASE\") | .name") - if [ -z "$package" ]; then - continue - fi - PACKAGES[$package]=1 - done - for PACKAGE in $(echo ${!PACKAGES[@]}); do - echo $PACKAGE - cargo sbom --cargo-package $PACKAGE > /out/sbom/$PACKAGE.spdx.json - done -EOF - -# Extract dynamically linked dependencies -RUN <<'DEPS_EOF' - set -o xtrace - mkdir /out/libs /out/libs-root - - # Process each binary - for BINARY in /out/sbin/*; do - if lddtree_output=$(lddtree "$BINARY" 2>/dev/null) && [ -n "$lddtree_output" ]; then - echo "$lddtree_output" | awk '{print $(NF-0) " " $1}' | sort -u -k 1,1 | \ - awk '{dest = ($2 ~ /^\//) ? "/out/libs-root" $2 : "/out/libs/" $2; print "install -D " $1 " " dest}' | \ - while read cmd; do eval "$cmd"; done - fi - done - - # Show what will be copied to runtime - echo "=== Libraries being copied to runtime image:" - find /out/libs* -type f 2>/dev/null | sort || echo "No libraries found" -DEPS_EOF - -FROM ubuntu:latest AS prepper - -# Create layer structure -RUN mkdir -p /layer1/etc/ssl/certs \ - /layer2/usr/lib \ - /layer3/sbin /layer3/sbom - -# Copy SSL certs and root-path libraries to layer1 (ultra-stable) -COPY --from=base /etc/ssl/certs /layer1/etc/ssl/certs -COPY --from=builder /out/libs-root/ /layer1/ - -# Copy application libraries to layer2 (semi-stable) -COPY --from=builder /out/libs/ /layer2/usr/lib/ - -# Copy binaries and SBOM to layer3 (volatile) -COPY --from=builder /out/sbin/ /layer3/sbin/ -COPY --from=builder /out/sbom/ /layer3/sbom/ - -# Fix permissions after copying -RUN chmod -R 755 /layer1 /layer2 /layer3 - -FROM scratch - -WORKDIR / - -# Copy ultra-stable layer (SSL certs, system libraries) -COPY --from=prepper /layer1/ / - -# Copy semi-stable layer (application libraries) -COPY --from=prepper /layer2/ / - -# Copy volatile layer (binaries, SBOM) -COPY --from=prepper /layer3/ / - -# Inform linker where to find libraries -ENV LD_LIBRARY_PATH=/usr/lib - -# Continuwuity default port -EXPOSE 8008 - -CMD ["/sbin/conduwuit"] diff --git a/docker/musl.Dockerfile b/docker/musl.Dockerfile deleted file mode 100644 index 2221525b..00000000 --- a/docker/musl.Dockerfile +++ /dev/null @@ -1,200 +0,0 @@ -# Why does this exist? -# Debian doesn't provide prebuilt musl packages -# rocksdb requires a prebuilt liburing, and linking fails if a gnu one is provided - -ARG RUST_VERSION=1 -ARG ALPINE_VERSION=3.22 - -FROM --platform=$BUILDPLATFORM docker.io/tonistiigi/xx AS xx -FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine${ALPINE_VERSION} AS base -FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine${ALPINE_VERSION} AS toolchain - -# Install repo tools and dependencies -RUN --mount=type=cache,target=/etc/apk/cache apk add \ - build-base pkgconfig make jq bash \ - curl git file \ - llvm-dev clang clang-static lld - - -# Developer tool versions -# renovate: datasource=github-releases depName=cargo-bins/cargo-binstall -ENV BINSTALL_VERSION=1.13.0 -# renovate: datasource=github-releases depName=psastras/sbom-rs -ENV CARGO_SBOM_VERSION=0.9.1 -# renovate: datasource=crate depName=lddtree -ENV LDDTREE_VERSION=0.3.7 - -# Install unpackaged tools -RUN <> /etc/environment - -# Configure pkg-config -RUN </dev/null 2>/dev/null; then - echo "PKG_CONFIG_LIBDIR=/usr/lib/$(xx-info)/pkgconfig" >> /etc/environment - echo "PKG_CONFIG=/usr/bin/$(xx-info)-pkg-config" >> /etc/environment - fi - echo "PKG_CONFIG_ALLOW_CROSS=true" >> /etc/environment -EOF - -# Configure cc to use clang version -RUN <> /etc/environment - echo "CXX=clang++" >> /etc/environment -EOF - -# Cross-language LTO -RUN <> /etc/environment - echo "CXXFLAGS=-flto" >> /etc/environment - # Linker is set to target-compatible clang by xx - echo "RUSTFLAGS='-Clinker-plugin-lto -Clink-arg=-fuse-ld=lld'" >> /etc/environment -EOF - -# Apply CPU-specific optimizations if TARGET_CPU is provided -ARG TARGET_CPU - -RUN <> /etc/environment - echo "CXXFLAGS='${CXXFLAGS} -march=${TARGET_CPU}'" >> /etc/environment - echo "RUSTFLAGS='${RUSTFLAGS} -C target-cpu=${TARGET_CPU}'" >> /etc/environment - fi -EOF - -# Prepare output directories -RUN mkdir /out - -FROM toolchain AS builder - - -# Get source -COPY . . - -ARG TARGETPLATFORM - -# Verify environment configuration -RUN xx-cargo --print-target-triple - -# Conduwuit version info -ARG GIT_COMMIT_HASH -ARG GIT_COMMIT_HASH_SHORT -ARG GIT_REMOTE_URL -ARG GIT_REMOTE_COMMIT_URL -ARG CONDUWUIT_VERSION_EXTRA -ARG CONTINUWUITY_VERSION_EXTRA -ENV GIT_COMMIT_HASH=$GIT_COMMIT_HASH -ENV GIT_COMMIT_HASH_SHORT=$GIT_COMMIT_HASH_SHORT -ENV GIT_REMOTE_URL=$GIT_REMOTE_URL -ENV GIT_REMOTE_COMMIT_URL=$GIT_REMOTE_COMMIT_URL -ENV CONDUWUIT_VERSION_EXTRA=$CONDUWUIT_VERSION_EXTRA -ENV CONTINUWUITY_VERSION_EXTRA=$CONTINUWUITY_VERSION_EXTRA - -ARG RUST_PROFILE=release - -# Build the binary -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git/db \ - --mount=type=cache,target=/app/target,id=cargo-target-${TARGET_CPU}-${TARGETPLATFORM}-musl-${RUST_PROFILE} \ - bash <<'EOF' - set -o allexport - set -o xtrace - . /etc/environment - TARGET_DIR=($(cargo metadata --no-deps --format-version 1 | \ - jq -r ".target_directory")) - mkdir /out/sbin - PACKAGE=conduwuit - xx-cargo build --locked --profile ${RUST_PROFILE} \ - -p $PACKAGE --no-default-features --features bindgen-static,release_max_log_level,standard; - BINARIES=($(cargo metadata --no-deps --format-version 1 | \ - jq -r ".packages[] | select(.name == \"$PACKAGE\") | .targets[] | select( .kind | map(. == \"bin\") | any ) | .name")) - for BINARY in "${BINARIES[@]}"; do - echo $BINARY - xx-verify $TARGET_DIR/$(xx-cargo --print-target-triple)/release/$BINARY - cp $TARGET_DIR/$(xx-cargo --print-target-triple)/release/$BINARY /out/sbin/$BINARY - done -EOF - -# Generate Software Bill of Materials (SBOM) -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git/db \ - bash <<'EOF' - set -o xtrace - mkdir /out/sbom - typeset -A PACKAGES - for BINARY in /out/sbin/*; do - BINARY_BASE=$(basename ${BINARY}) - package=$(cargo metadata --no-deps --format-version 1 | jq -r ".packages[] | select(.targets[] | select( .kind | map(. == \"bin\") | any ) | .name == \"$BINARY_BASE\") | .name") - if [ -z "$package" ]; then - continue - fi - PACKAGES[$package]=1 - done - for PACKAGE in $(echo ${!PACKAGES[@]}); do - echo $PACKAGE - cargo sbom --cargo-package $PACKAGE > /out/sbom/$PACKAGE.spdx.json - done -EOF - -# Extract dynamically linked dependencies -RUN <` - -###### **Subcommands:** - -* `appservices` โ€” - Commands for managing appservices -* `users` โ€” - Commands for managing local users -* `rooms` โ€” - Commands for managing rooms -* `federation` โ€” - Commands for managing federation -* `server` โ€” - Commands for managing the server -* `media` โ€” - Commands for managing media -* `check` โ€” - Commands for checking integrity -* `debug` โ€” - Commands for debugging things -* `query` โ€” - Low-level queries for database getters and iterators - - - -## `admin appservices` - -- Commands for managing appservices - -**Usage:** `admin appservices ` - -###### **Subcommands:** - -* `register` โ€” - Register an appservice using its registration YAML -* `unregister` โ€” - Unregister an appservice using its ID -* `show-appservice-config` โ€” - Show an appservice's config using its ID -* `list-registered` โ€” - List all the currently registered appservices - - - -## `admin appservices register` - -- Register an appservice using its registration YAML - -This command needs a YAML generated by an appservice (such as a bridge), which must be provided in a Markdown code block below the command. - -Registering a new bridge using the ID of an existing bridge will replace the old one. - -**Usage:** `admin appservices register` - - - -## `admin appservices unregister` - -- Unregister an appservice using its ID - -You can find the ID using the `list-appservices` command. - -**Usage:** `admin appservices unregister ` - -###### **Arguments:** - -* `` โ€” The appservice to unregister - - - -## `admin appservices show-appservice-config` - -- Show an appservice's config using its ID - -You can find the ID using the `list-appservices` command. - -**Usage:** `admin appservices show-appservice-config ` - -###### **Arguments:** - -* `` โ€” The appservice to show - - - -## `admin appservices list-registered` - -- List all the currently registered appservices - -**Usage:** `admin appservices list-registered` - - - -## `admin users` - -- Commands for managing local users - -**Usage:** `admin users ` - -###### **Subcommands:** - -* `create-user` โ€” - Create a new user -* `reset-password` โ€” - Reset user password -* `deactivate` โ€” - Deactivate a user -* `deactivate-all` โ€” - Deactivate a list of users -* `suspend` โ€” - Suspend a user -* `unsuspend` โ€” - Unsuspend a user -* `list-users` โ€” - List local users in the database -* `list-joined-rooms` โ€” - Lists all the rooms (local and remote) that the specified user is joined in -* `force-join-room` โ€” - Manually join a local user to a room -* `force-leave-room` โ€” - Manually leave a local user from a room -* `force-leave-remote-room` โ€” - Manually leave a remote room for a local user -* `force-demote` โ€” - Forces the specified user to drop their power levels to the room default, if their permissions allow and the auth check permits -* `make-user-admin` โ€” - Grant server-admin privileges to a user -* `put-room-tag` โ€” - Puts a room tag for the specified user and room ID -* `delete-room-tag` โ€” - Deletes the room tag for the specified user and room ID -* `get-room-tags` โ€” - Gets all the room tags for the specified user and room ID -* `redact-event` โ€” - Attempts to forcefully redact the specified event ID from the sender user -* `force-join-list-of-local-users` โ€” - Force joins a specified list of local users to join the specified room -* `force-join-all-local-users` โ€” - Force joins all local users to the specified room - - - -## `admin users create-user` - -- Create a new user - -**Usage:** `admin users create-user [PASSWORD]` - -###### **Arguments:** - -* `` โ€” Username of the new user -* `` โ€” Password of the new user, if unspecified one is generated - - - -## `admin users reset-password` - -- Reset user password - -**Usage:** `admin users reset-password [PASSWORD]` - -###### **Arguments:** - -* `` โ€” Username of the user for whom the password should be reset -* `` โ€” New password for the user, if unspecified one is generated - - - -## `admin users deactivate` - -- Deactivate a user - -User will be removed from all rooms by default. Use --no-leave-rooms to not leave all rooms by default. - -**Usage:** `admin users deactivate [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `-n`, `--no-leave-rooms` - - - -## `admin users deactivate-all` - -- Deactivate a list of users - -Recommended to use in conjunction with list-local-users. - -Users will be removed from joined rooms by default. - -Can be overridden with --no-leave-rooms. - -Removing a mass amount of users from a room may cause a significant amount of leave events. The time to leave rooms may depend significantly on joined rooms and servers. - -This command needs a newline separated list of users provided in a Markdown code block below the command. - -**Usage:** `admin users deactivate-all [OPTIONS]` - -###### **Options:** - -* `-n`, `--no-leave-rooms` โ€” Does not leave any rooms the user is in on deactivation -* `-f`, `--force` โ€” Also deactivate admin accounts and will assume leave all rooms too - - - -## `admin users suspend` - -- Suspend a user - -Suspended users are able to log in, sync, and read messages, but are not able to send events nor redact them, cannot change their profile, and are unable to join, invite to, or knock on rooms. - -Suspended users can still leave rooms and deactivate their account. Suspending them effectively makes them read-only. - -**Usage:** `admin users suspend ` - -###### **Arguments:** - -* `` โ€” Username of the user to suspend - - - -## `admin users unsuspend` - -- Unsuspend a user - -Reverses the effects of the `suspend` command, allowing the user to send messages, change their profile, create room invites, etc. - -**Usage:** `admin users unsuspend ` - -###### **Arguments:** - -* `` โ€” Username of the user to unsuspend - - - -## `admin users list-users` - -- List local users in the database - -**Usage:** `admin users list-users` - - - -## `admin users list-joined-rooms` - -- Lists all the rooms (local and remote) that the specified user is joined in - -**Usage:** `admin users list-joined-rooms ` - -###### **Arguments:** - -* `` - - - -## `admin users force-join-room` - -- Manually join a local user to a room - -**Usage:** `admin users force-join-room ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin users force-leave-room` - -- Manually leave a local user from a room - -**Usage:** `admin users force-leave-room ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin users force-leave-remote-room` - -- Manually leave a remote room for a local user - -**Usage:** `admin users force-leave-remote-room ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin users force-demote` - -- Forces the specified user to drop their power levels to the room default, if their permissions allow and the auth check permits - -**Usage:** `admin users force-demote ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin users make-user-admin` - -- Grant server-admin privileges to a user - -**Usage:** `admin users make-user-admin ` - -###### **Arguments:** - -* `` - - - -## `admin users put-room-tag` - -- Puts a room tag for the specified user and room ID. - -This is primarily useful if you'd like to set your admin room to the special "System Alerts" section in Element as a way to permanently see your admin room without it being buried away in your favourites or rooms. To do this, you would pass your user, your admin room's internal ID, and the tag name `m.server_notice`. - -**Usage:** `admin users put-room-tag ` - -###### **Arguments:** - -* `` -* `` -* `` - - - -## `admin users delete-room-tag` - -- Deletes the room tag for the specified user and room ID - -**Usage:** `admin users delete-room-tag ` - -###### **Arguments:** - -* `` -* `` -* `` - - - -## `admin users get-room-tags` - -- Gets all the room tags for the specified user and room ID - -**Usage:** `admin users get-room-tags ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin users redact-event` - -- Attempts to forcefully redact the specified event ID from the sender user - -This is only valid for local users - -**Usage:** `admin users redact-event ` - -###### **Arguments:** - -* `` - - - -## `admin users force-join-list-of-local-users` - -- Force joins a specified list of local users to join the specified room. - -Specify a codeblock of usernames. - -At least 1 server admin must be in the room to reduce abuse. - -Requires the `--yes-i-want-to-do-this` flag. - -**Usage:** `admin users force-join-list-of-local-users [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--yes-i-want-to-do-this` - - - -## `admin users force-join-all-local-users` - -- Force joins all local users to the specified room. - -At least 1 server admin must be in the room to reduce abuse. - -Requires the `--yes-i-want-to-do-this` flag. - -**Usage:** `admin users force-join-all-local-users [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--yes-i-want-to-do-this` - - - -## `admin rooms` - -- Commands for managing rooms - -**Usage:** `admin rooms ` - -###### **Subcommands:** - -* `list-rooms` โ€” - List all rooms the server knows about -* `info` โ€” - View information about a room we know about -* `moderation` โ€” - Manage moderation of remote or local rooms -* `alias` โ€” - Manage rooms' aliases -* `directory` โ€” - Manage the room directory -* `exists` โ€” - Check if we know about a room - - - -## `admin rooms list-rooms` - -- List all rooms the server knows about - -**Usage:** `admin rooms list-rooms [OPTIONS] [PAGE]` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--exclude-disabled` โ€” Excludes rooms that we have federation disabled with -* `--exclude-banned` โ€” Excludes rooms that we have banned -* `--no-details` โ€” Whether to only output room IDs without supplementary room information - - - -## `admin rooms info` - -- View information about a room we know about - -**Usage:** `admin rooms info ` - -###### **Subcommands:** - -* `list-joined-members` โ€” - List joined members in a room -* `view-room-topic` โ€” - Displays room topic - - - -## `admin rooms info list-joined-members` - -- List joined members in a room - -**Usage:** `admin rooms info list-joined-members [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--local-only` โ€” Lists only our local users in the specified room - - - -## `admin rooms info view-room-topic` - -- Displays room topic - -Room topics can be huge, so this is in its own separate command - -**Usage:** `admin rooms info view-room-topic ` - -###### **Arguments:** - -* `` - - - -## `admin rooms moderation` - -- Manage moderation of remote or local rooms - -**Usage:** `admin rooms moderation ` - -###### **Subcommands:** - -* `ban-room` โ€” - Bans a room from local users joining and evicts all our local users (including server admins) from the room. Also blocks any invites (local and remote) for the banned room, and disables federation entirely with it -* `ban-list-of-rooms` โ€” - Bans a list of rooms (room IDs and room aliases) from a newline delimited codeblock similar to `user deactivate-all`. Applies the same steps as ban-room -* `unban-room` โ€” - Unbans a room to allow local users to join again -* `list-banned-rooms` โ€” - List of all rooms we have banned - - - -## `admin rooms moderation ban-room` - -- Bans a room from local users joining and evicts all our local users (including server admins) from the room. Also blocks any invites (local and remote) for the banned room, and disables federation entirely with it - -**Usage:** `admin rooms moderation ban-room ` - -###### **Arguments:** - -* `` โ€” The room in the format of `!roomid:example.com` or a room alias in the format of `#roomalias:example.com` - - - -## `admin rooms moderation ban-list-of-rooms` - -- Bans a list of rooms (room IDs and room aliases) from a newline delimited codeblock similar to `user deactivate-all`. Applies the same steps as ban-room - -**Usage:** `admin rooms moderation ban-list-of-rooms` - - - -## `admin rooms moderation unban-room` - -- Unbans a room to allow local users to join again - -**Usage:** `admin rooms moderation unban-room ` - -###### **Arguments:** - -* `` โ€” The room in the format of `!roomid:example.com` or a room alias in the format of `#roomalias:example.com` - - - -## `admin rooms moderation list-banned-rooms` - -- List of all rooms we have banned - -**Usage:** `admin rooms moderation list-banned-rooms [OPTIONS]` - -###### **Options:** - -* `--no-details` โ€” Whether to only output room IDs without supplementary room information - - - -## `admin rooms alias` - -- Manage rooms' aliases - -**Usage:** `admin rooms alias ` - -###### **Subcommands:** - -* `set` โ€” - Make an alias point to a room -* `remove` โ€” - Remove a local alias -* `which` โ€” - Show which room is using an alias -* `list` โ€” - List aliases currently being used - - - -## `admin rooms alias set` - -- Make an alias point to a room - -**Usage:** `admin rooms alias set [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” The room id to set the alias on -* `` โ€” The alias localpart to use (`alias`, not `#alias:servername.tld`) - -###### **Options:** - -* `-f`, `--force` โ€” Set the alias even if a room is already using it - - - -## `admin rooms alias remove` - -- Remove a local alias - -**Usage:** `admin rooms alias remove ` - -###### **Arguments:** - -* `` โ€” The alias localpart to remove (`alias`, not `#alias:servername.tld`) - - - -## `admin rooms alias which` - -- Show which room is using an alias - -**Usage:** `admin rooms alias which ` - -###### **Arguments:** - -* `` โ€” The alias localpart to look up (`alias`, not `#alias:servername.tld`) - - - -## `admin rooms alias list` - -- List aliases currently being used - -**Usage:** `admin rooms alias list [ROOM_ID]` - -###### **Arguments:** - -* `` โ€” If set, only list the aliases for this room - - - -## `admin rooms directory` - -- Manage the room directory - -**Usage:** `admin rooms directory ` - -###### **Subcommands:** - -* `publish` โ€” - Publish a room to the room directory -* `unpublish` โ€” - Unpublish a room to the room directory -* `list` โ€” - List rooms that are published - - - -## `admin rooms directory publish` - -- Publish a room to the room directory - -**Usage:** `admin rooms directory publish ` - -###### **Arguments:** - -* `` โ€” The room id of the room to publish - - - -## `admin rooms directory unpublish` - -- Unpublish a room to the room directory - -**Usage:** `admin rooms directory unpublish ` - -###### **Arguments:** - -* `` โ€” The room id of the room to unpublish - - - -## `admin rooms directory list` - -- List rooms that are published - -**Usage:** `admin rooms directory list [PAGE]` - -###### **Arguments:** - -* `` - - - -## `admin rooms exists` - -- Check if we know about a room - -**Usage:** `admin rooms exists ` - -###### **Arguments:** - -* `` - - - -## `admin federation` - -- Commands for managing federation - -**Usage:** `admin federation ` - -###### **Subcommands:** - -* `incoming-federation` โ€” - List all rooms we are currently handling an incoming pdu from -* `disable-room` โ€” - Disables incoming federation handling for a room -* `enable-room` โ€” - Enables incoming federation handling for a room again -* `fetch-support-well-known` โ€” - Fetch `/.well-known/matrix/support` from the specified server -* `remote-user-in-rooms` โ€” - Lists all the rooms we share/track with the specified *remote* user - - - -## `admin federation incoming-federation` - -- List all rooms we are currently handling an incoming pdu from - -**Usage:** `admin federation incoming-federation` - - - -## `admin federation disable-room` - -- Disables incoming federation handling for a room - -**Usage:** `admin federation disable-room ` - -###### **Arguments:** - -* `` - - - -## `admin federation enable-room` - -- Enables incoming federation handling for a room again - -**Usage:** `admin federation enable-room ` - -###### **Arguments:** - -* `` - - - -## `admin federation fetch-support-well-known` - -- Fetch `/.well-known/matrix/support` from the specified server - -Despite the name, this is not a federation endpoint and does not go through the federation / server resolution process as per-spec this is supposed to be served at the server_name. - -Respecting homeservers put this file here for listing administration, moderation, and security inquiries. This command provides a way to easily fetch that information. - -**Usage:** `admin federation fetch-support-well-known ` - -###### **Arguments:** - -* `` - - - -## `admin federation remote-user-in-rooms` - -- Lists all the rooms we share/track with the specified *remote* user - -**Usage:** `admin federation remote-user-in-rooms ` - -###### **Arguments:** - -* `` - - - -## `admin server` - -- Commands for managing the server - -**Usage:** `admin server ` - -###### **Subcommands:** - -* `uptime` โ€” - Time elapsed since startup -* `show-config` โ€” - Show configuration values -* `reload-config` โ€” - Reload configuration values -* `list-features` โ€” - List the features built into the server -* `memory-usage` โ€” - Print database memory usage statistics -* `clear-caches` โ€” - Clears all of Continuwuity's caches -* `backup-database` โ€” - Performs an online backup of the database (only available for RocksDB at the moment) -* `list-backups` โ€” - List database backups -* `admin-notice` โ€” - Send a message to the admin room -* `reload-mods` โ€” - Hot-reload the server -* `restart` โ€” - Restart the server -* `shutdown` โ€” - Shutdown the server - - - -## `admin server uptime` - -- Time elapsed since startup - -**Usage:** `admin server uptime` - - - -## `admin server show-config` - -- Show configuration values - -**Usage:** `admin server show-config` - - - -## `admin server reload-config` - -- Reload configuration values - -**Usage:** `admin server reload-config [PATH]` - -###### **Arguments:** - -* `` - - - -## `admin server list-features` - -- List the features built into the server - -**Usage:** `admin server list-features [OPTIONS]` - -###### **Options:** - -* `-a`, `--available` -* `-e`, `--enabled` -* `-c`, `--comma` - - - -## `admin server memory-usage` - -- Print database memory usage statistics - -**Usage:** `admin server memory-usage` - - - -## `admin server clear-caches` - -- Clears all of Continuwuity's caches - -**Usage:** `admin server clear-caches` - - - -## `admin server backup-database` - -- Performs an online backup of the database (only available for RocksDB at the moment) - -**Usage:** `admin server backup-database` - - - -## `admin server list-backups` - -- List database backups - -**Usage:** `admin server list-backups` - - - -## `admin server admin-notice` - -- Send a message to the admin room - -**Usage:** `admin server admin-notice [MESSAGE]...` - -###### **Arguments:** - -* `` - - - -## `admin server reload-mods` - -- Hot-reload the server - -**Usage:** `admin server reload-mods` - - - -## `admin server restart` - -- Restart the server - -**Usage:** `admin server restart [OPTIONS]` - -###### **Options:** - -* `-f`, `--force` - - - -## `admin server shutdown` - -- Shutdown the server - -**Usage:** `admin server shutdown` - - - -## `admin media` - -- Commands for managing media - -**Usage:** `admin media ` - -###### **Subcommands:** - -* `delete` โ€” - Deletes a single media file from our database and on the filesystem via a single MXC URL or event ID (not redacted) -* `delete-list` โ€” - Deletes a codeblock list of MXC URLs from our database and on the filesystem. This will always ignore errors -* `delete-past-remote-media` โ€” - Deletes all remote (and optionally local) media created before or after [duration] time using filesystem metadata first created at date, or fallback to last modified date. This will always ignore errors by default -* `delete-all-from-user` โ€” - Deletes all the local media from a local user on our server. This will always ignore errors by default -* `delete-all-from-server` โ€” - Deletes all remote media from the specified remote server. This will always ignore errors by default -* `get-file-info` โ€” -* `get-remote-file` โ€” -* `get-remote-thumbnail` โ€” - - - -## `admin media delete` - -- Deletes a single media file from our database and on the filesystem via a single MXC URL or event ID (not redacted) - -**Usage:** `admin media delete [OPTIONS]` - -###### **Options:** - -* `--mxc ` โ€” The MXC URL to delete -* `--event-id ` โ€” - The message event ID which contains the media and thumbnail MXC URLs - - - -## `admin media delete-list` - -- Deletes a codeblock list of MXC URLs from our database and on the filesystem. This will always ignore errors - -**Usage:** `admin media delete-list` - - - -## `admin media delete-past-remote-media` - -- Deletes all remote (and optionally local) media created before or after [duration] time using filesystem metadata first created at date, or fallback to last modified date. This will always ignore errors by default - -**Usage:** `admin media delete-past-remote-media [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” - The relative time (e.g. 30s, 5m, 7d) within which to search - -###### **Options:** - -* `-b`, `--before` โ€” - Only delete media created before [duration] ago -* `-a`, `--after` โ€” - Only delete media created after [duration] ago -* `--yes-i-want-to-delete-local-media` โ€” - Long argument to additionally delete local media - - - -## `admin media delete-all-from-user` - -- Deletes all the local media from a local user on our server. This will always ignore errors by default - -**Usage:** `admin media delete-all-from-user ` - -###### **Arguments:** - -* `` - - - -## `admin media delete-all-from-server` - -- Deletes all remote media from the specified remote server. This will always ignore errors by default - -**Usage:** `admin media delete-all-from-server [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--yes-i-want-to-delete-local-media` โ€” Long argument to delete local media - - - -## `admin media get-file-info` - -**Usage:** `admin media get-file-info ` - -###### **Arguments:** - -* `` โ€” The MXC URL to lookup info for - - - -## `admin media get-remote-file` - -**Usage:** `admin media get-remote-file [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” The MXC URL to fetch - -###### **Options:** - -* `-s`, `--server ` -* `-t`, `--timeout ` - - Default value: `10000` - - - -## `admin media get-remote-thumbnail` - -**Usage:** `admin media get-remote-thumbnail [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” The MXC URL to fetch - -###### **Options:** - -* `-s`, `--server ` -* `-t`, `--timeout ` - - Default value: `10000` -* `--width ` - - Default value: `800` -* `--height ` - - Default value: `800` - - - -## `admin check` - -- Commands for checking integrity - -**Usage:** `admin check ` - -###### **Subcommands:** - -* `check-all-users` โ€” - - - -## `admin check check-all-users` - -**Usage:** `admin check check-all-users` - - - -## `admin debug` - -- Commands for debugging things - -**Usage:** `admin debug ` - -###### **Subcommands:** - -* `echo` โ€” - Echo input of admin command -* `get-auth-chain` โ€” - Get the auth_chain of a PDU -* `parse-pdu` โ€” - Parse and print a PDU from a JSON -* `get-pdu` โ€” - Retrieve and print a PDU by EventID from the Continuwuity database -* `get-short-pdu` โ€” - Retrieve and print a PDU by PduId from the Continuwuity database -* `get-remote-pdu` โ€” - Attempts to retrieve a PDU from a remote server. Inserts it into our database/timeline if found and we do not have this PDU already (following normal event auth rules, handles it as an incoming PDU) -* `get-remote-pdu-list` โ€” - Same as `get-remote-pdu` but accepts a codeblock newline delimited list of PDUs and a single server to fetch from -* `get-room-state` โ€” - Gets all the room state events for the specified room -* `get-signing-keys` โ€” - Get and display signing keys from local cache or remote server -* `get-verify-keys` โ€” - Get and display signing keys from local cache or remote server -* `ping` โ€” - Sends a federation request to the remote server's `/_matrix/federation/v1/version` endpoint and measures the latency it took for the server to respond -* `force-device-list-updates` โ€” - Forces device lists for all local and remote users to be updated (as having new keys available) -* `change-log-level` โ€” - Change tracing log level/filter on the fly -* `sign-json` โ€” - Sign JSON blob -* `verify-json` โ€” - Verify JSON signatures -* `verify-pdu` โ€” - Verify PDU -* `first-pdu-in-room` โ€” - Prints the very first PDU in the specified room (typically m.room.create) -* `latest-pdu-in-room` โ€” - Prints the latest ("last") PDU in the specified room (typically a message) -* `force-set-room-state-from-server` โ€” - Forcefully replaces the room state of our local copy of the specified room, with the copy (auth chain and room state events) the specified remote server says -* `resolve-true-destination` โ€” - Runs a server name through Continuwuity's true destination resolution process -* `memory-stats` โ€” - Print extended memory usage -* `runtime-metrics` โ€” - Print general tokio runtime metric totals -* `runtime-interval` โ€” - Print detailed tokio runtime metrics accumulated since last command invocation -* `time` โ€” - Print the current time -* `list-dependencies` โ€” - List dependencies -* `database-stats` โ€” - Get database statistics -* `trim-memory` โ€” - Trim memory usage -* `database-files` โ€” - List database files - - - -## `admin debug echo` - -- Echo input of admin command - -**Usage:** `admin debug echo [MESSAGE]...` - -###### **Arguments:** - -* `` - - - -## `admin debug get-auth-chain` - -- Get the auth_chain of a PDU - -**Usage:** `admin debug get-auth-chain ` - -###### **Arguments:** - -* `` โ€” An event ID (the $ character followed by the base64 reference hash) - - - -## `admin debug parse-pdu` - -- Parse and print a PDU from a JSON - -The PDU event is only checked for validity and is not added to the database. - -This command needs a JSON blob provided in a Markdown code block below the command. - -**Usage:** `admin debug parse-pdu` - - - -## `admin debug get-pdu` - -- Retrieve and print a PDU by EventID from the Continuwuity database - -**Usage:** `admin debug get-pdu ` - -###### **Arguments:** - -* `` โ€” An event ID (a $ followed by the base64 reference hash) - - - -## `admin debug get-short-pdu` - -- Retrieve and print a PDU by PduId from the Continuwuity database - -**Usage:** `admin debug get-short-pdu ` - -###### **Arguments:** - -* `` โ€” Shortroomid integer -* `` โ€” Shorteventid integer - - - -## `admin debug get-remote-pdu` - -- Attempts to retrieve a PDU from a remote server. Inserts it into our database/timeline if found and we do not have this PDU already (following normal event auth rules, handles it as an incoming PDU) - -**Usage:** `admin debug get-remote-pdu ` - -###### **Arguments:** - -* `` โ€” An event ID (a $ followed by the base64 reference hash) -* `` โ€” Argument for us to attempt to fetch the event from the specified remote server - - - -## `admin debug get-remote-pdu-list` - -- Same as `get-remote-pdu` but accepts a codeblock newline delimited list of PDUs and a single server to fetch from - -**Usage:** `admin debug get-remote-pdu-list [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” Argument for us to attempt to fetch all the events from the specified remote server - -###### **Options:** - -* `-f`, `--force` โ€” If set, ignores errors, else stops at the first error/failure - - - -## `admin debug get-room-state` - -- Gets all the room state events for the specified room. - -This is functionally equivalent to `GET /_matrix/client/v3/rooms/{roomid}/state`, except the admin command does *not* check if the sender user is allowed to see state events. This is done because it's implied that server admins here have database access and can see/get room info themselves anyways if they were malicious admins. - -Of course the check is still done on the actual client API. - -**Usage:** `admin debug get-room-state ` - -###### **Arguments:** - -* `` โ€” Room ID - - - -## `admin debug get-signing-keys` - -- Get and display signing keys from local cache or remote server - -**Usage:** `admin debug get-signing-keys [OPTIONS] [SERVER_NAME]` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--notary ` -* `-q`, `--query` - - - -## `admin debug get-verify-keys` - -- Get and display signing keys from local cache or remote server - -**Usage:** `admin debug get-verify-keys [SERVER_NAME]` - -###### **Arguments:** - -* `` - - - -## `admin debug ping` - -- Sends a federation request to the remote server's `/_matrix/federation/v1/version` endpoint and measures the latency it took for the server to respond - -**Usage:** `admin debug ping ` - -###### **Arguments:** - -* `` - - - -## `admin debug force-device-list-updates` - -- Forces device lists for all local and remote users to be updated (as having new keys available) - -**Usage:** `admin debug force-device-list-updates` - - - -## `admin debug change-log-level` - -- Change tracing log level/filter on the fly - -This accepts the same format as the `log` config option. - -**Usage:** `admin debug change-log-level [OPTIONS] [FILTER]` - -###### **Arguments:** - -* `` โ€” Log level/filter - -###### **Options:** - -* `-r`, `--reset` โ€” Resets the log level/filter to the one in your config - - - -## `admin debug sign-json` - -- Sign JSON blob - -This command needs a JSON blob provided in a Markdown code block below the command. - -**Usage:** `admin debug sign-json` - - - -## `admin debug verify-json` - -- Verify JSON signatures - -This command needs a JSON blob provided in a Markdown code block below the command. - -**Usage:** `admin debug verify-json` - - - -## `admin debug verify-pdu` - -- Verify PDU - -This re-verifies a PDU existing in the database found by ID. - -**Usage:** `admin debug verify-pdu ` - -###### **Arguments:** - -* `` - - - -## `admin debug first-pdu-in-room` - -- Prints the very first PDU in the specified room (typically m.room.create) - -**Usage:** `admin debug first-pdu-in-room ` - -###### **Arguments:** - -* `` โ€” The room ID - - - -## `admin debug latest-pdu-in-room` - -- Prints the latest ("last") PDU in the specified room (typically a message) - -**Usage:** `admin debug latest-pdu-in-room ` - -###### **Arguments:** - -* `` โ€” The room ID - - - -## `admin debug force-set-room-state-from-server` - -- Forcefully replaces the room state of our local copy of the specified room, with the copy (auth chain and room state events) the specified remote server says. - -A common desire for room deletion is to simply "reset" our copy of the room. While this admin command is not a replacement for that, if you know you have split/broken room state and you know another server in the room that has the best/working room state, this command can let you use their room state. Such example is your server saying users are in a room, but other servers are saying they're not in the room in question. - -This command will get the latest PDU in the room we know about, and request the room state at that point in time via `/_matrix/federation/v1/state/{roomId}`. - -**Usage:** `admin debug force-set-room-state-from-server [EVENT_ID]` - -###### **Arguments:** - -* `` โ€” The impacted room ID -* `` โ€” The server we will use to query the room state for -* `` โ€” The event ID of the latest known PDU in the room. Will be found automatically if not provided - - - -## `admin debug resolve-true-destination` - -- Runs a server name through Continuwuity's true destination resolution process - -Useful for debugging well-known issues - -**Usage:** `admin debug resolve-true-destination [OPTIONS] ` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `-n`, `--no-cache` - - - -## `admin debug memory-stats` - -- Print extended memory usage - -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. - -**Usage:** `admin debug memory-stats [OPTS]` - -###### **Arguments:** - -* `` - - - -## `admin debug runtime-metrics` - -- Print general tokio runtime metric totals - -**Usage:** `admin debug runtime-metrics` - - - -## `admin debug runtime-interval` - -- Print detailed tokio runtime metrics accumulated since last command invocation - -**Usage:** `admin debug runtime-interval` - - - -## `admin debug time` - -- Print the current time - -**Usage:** `admin debug time` - - - -## `admin debug list-dependencies` - -- List dependencies - -**Usage:** `admin debug list-dependencies [OPTIONS]` - -###### **Options:** - -* `-n`, `--names` - - - -## `admin debug database-stats` - -- Get database statistics - -**Usage:** `admin debug database-stats [OPTIONS] [PROPERTY]` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `-m`, `--map ` - - - -## `admin debug trim-memory` - -- Trim memory usage - -**Usage:** `admin debug trim-memory` - - - -## `admin debug database-files` - -- List database files - -**Usage:** `admin debug database-files [OPTIONS] [MAP]` - -###### **Arguments:** - -* `` - -###### **Options:** - -* `--level ` - - - -## `admin query` - -- Low-level queries for database getters and iterators - -**Usage:** `admin query ` - -###### **Subcommands:** - -* `account-data` โ€” - account_data.rs iterators and getters -* `appservice` โ€” - appservice.rs iterators and getters -* `presence` โ€” - presence.rs iterators and getters -* `room-alias` โ€” - rooms/alias.rs iterators and getters -* `room-state-cache` โ€” - rooms/state_cache iterators and getters -* `room-timeline` โ€” - rooms/timeline iterators and getters -* `globals` โ€” - globals.rs iterators and getters -* `sending` โ€” - sending.rs iterators and getters -* `users` โ€” - users.rs iterators and getters -* `resolver` โ€” - resolver service -* `pusher` โ€” - pusher service -* `short` โ€” - short service -* `raw` โ€” - raw service - - - -## `admin query account-data` - -- account_data.rs iterators and getters - -**Usage:** `admin query account-data ` - -###### **Subcommands:** - -* `changes-since` โ€” - Returns all changes to the account data that happened after `since` -* `account-data-get` โ€” - Searches the account data for a specific kind - - - -## `admin query account-data changes-since` - -- Returns all changes to the account data that happened after `since` - -**Usage:** `admin query account-data changes-since [ROOM_ID]` - -###### **Arguments:** - -* `` โ€” Full user ID -* `` โ€” UNIX timestamp since (u64) -* `` โ€” Optional room ID of the account data - - - -## `admin query account-data account-data-get` - -- Searches the account data for a specific kind - -**Usage:** `admin query account-data account-data-get [ROOM_ID]` - -###### **Arguments:** - -* `` โ€” Full user ID -* `` โ€” Account data event type -* `` โ€” Optional room ID of the account data - - - -## `admin query appservice` - -- appservice.rs iterators and getters - -**Usage:** `admin query appservice ` - -###### **Subcommands:** - -* `get-registration` โ€” - Gets the appservice registration info/details from the ID as a string -* `all` โ€” - Gets all appservice registrations with their ID and registration info - - - -## `admin query appservice get-registration` - -- Gets the appservice registration info/details from the ID as a string - -**Usage:** `admin query appservice get-registration ` - -###### **Arguments:** - -* `` โ€” Appservice registration ID - - - -## `admin query appservice all` - -- Gets all appservice registrations with their ID and registration info - -**Usage:** `admin query appservice all` - - - -## `admin query presence` - -- presence.rs iterators and getters - -**Usage:** `admin query presence ` - -###### **Subcommands:** - -* `get-presence` โ€” - Returns the latest presence event for the given user -* `presence-since` โ€” - Iterator of the most recent presence updates that happened after the event with id `since` - - - -## `admin query presence get-presence` - -- Returns the latest presence event for the given user - -**Usage:** `admin query presence get-presence ` - -###### **Arguments:** - -* `` โ€” Full user ID - - - -## `admin query presence presence-since` - -- Iterator of the most recent presence updates that happened after the event with id `since` - -**Usage:** `admin query presence presence-since ` - -###### **Arguments:** - -* `` โ€” UNIX timestamp since (u64) - - - -## `admin query room-alias` - -- rooms/alias.rs iterators and getters - -**Usage:** `admin query room-alias ` - -###### **Subcommands:** - -* `resolve-local-alias` โ€” -* `local-aliases-for-room` โ€” - Iterator of all our local room aliases for the room ID -* `all-local-aliases` โ€” - Iterator of all our local aliases in our database with their room IDs - - - -## `admin query room-alias resolve-local-alias` - -**Usage:** `admin query room-alias resolve-local-alias ` - -###### **Arguments:** - -* `` โ€” Full room alias - - - -## `admin query room-alias local-aliases-for-room` - -- Iterator of all our local room aliases for the room ID - -**Usage:** `admin query room-alias local-aliases-for-room ` - -###### **Arguments:** - -* `` โ€” Full room ID - - - -## `admin query room-alias all-local-aliases` - -- Iterator of all our local aliases in our database with their room IDs - -**Usage:** `admin query room-alias all-local-aliases` - - - -## `admin query room-state-cache` - -- rooms/state_cache iterators and getters - -**Usage:** `admin query room-state-cache ` - -###### **Subcommands:** - -* `server-in-room` โ€” -* `room-servers` โ€” -* `server-rooms` โ€” -* `room-members` โ€” -* `local-users-in-room` โ€” -* `active-local-users-in-room` โ€” -* `room-joined-count` โ€” -* `room-invited-count` โ€” -* `room-user-once-joined` โ€” -* `room-members-invited` โ€” -* `get-invite-count` โ€” -* `get-left-count` โ€” -* `rooms-joined` โ€” -* `rooms-left` โ€” -* `rooms-invited` โ€” -* `invite-state` โ€” - - - -## `admin query room-state-cache server-in-room` - -**Usage:** `admin query room-state-cache server-in-room ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query room-state-cache room-servers` - -**Usage:** `admin query room-state-cache room-servers ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache server-rooms` - -**Usage:** `admin query room-state-cache server-rooms ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache room-members` - -**Usage:** `admin query room-state-cache room-members ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache local-users-in-room` - -**Usage:** `admin query room-state-cache local-users-in-room ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache active-local-users-in-room` - -**Usage:** `admin query room-state-cache active-local-users-in-room ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache room-joined-count` - -**Usage:** `admin query room-state-cache room-joined-count ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache room-invited-count` - -**Usage:** `admin query room-state-cache room-invited-count ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache room-user-once-joined` - -**Usage:** `admin query room-state-cache room-user-once-joined ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache room-members-invited` - -**Usage:** `admin query room-state-cache room-members-invited ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache get-invite-count` - -**Usage:** `admin query room-state-cache get-invite-count ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query room-state-cache get-left-count` - -**Usage:** `admin query room-state-cache get-left-count ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query room-state-cache rooms-joined` - -**Usage:** `admin query room-state-cache rooms-joined ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache rooms-left` - -**Usage:** `admin query room-state-cache rooms-left ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache rooms-invited` - -**Usage:** `admin query room-state-cache rooms-invited ` - -###### **Arguments:** - -* `` - - - -## `admin query room-state-cache invite-state` - -**Usage:** `admin query room-state-cache invite-state ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query room-timeline` - -- rooms/timeline iterators and getters - -**Usage:** `admin query room-timeline ` - -###### **Subcommands:** - -* `pdus` โ€” -* `last` โ€” - - - -## `admin query room-timeline pdus` - -**Usage:** `admin query room-timeline pdus [OPTIONS] [FROM]` - -###### **Arguments:** - -* `` -* `` - -###### **Options:** - -* `-l`, `--limit ` - - - -## `admin query room-timeline last` - -**Usage:** `admin query room-timeline last ` - -###### **Arguments:** - -* `` - - - -## `admin query globals` - -- globals.rs iterators and getters - -**Usage:** `admin query globals ` - -###### **Subcommands:** - -* `database-version` โ€” -* `current-count` โ€” -* `last-check-for-announcements-id` โ€” -* `signing-keys-for` โ€” - This returns an empty `Ok(BTreeMap<..>)` when there are no keys found for the server - - - -## `admin query globals database-version` - -**Usage:** `admin query globals database-version` - - - -## `admin query globals current-count` - -**Usage:** `admin query globals current-count` - - - -## `admin query globals last-check-for-announcements-id` - -**Usage:** `admin query globals last-check-for-announcements-id` - - - -## `admin query globals signing-keys-for` - -- This returns an empty `Ok(BTreeMap<..>)` when there are no keys found for the server - -**Usage:** `admin query globals signing-keys-for ` - -###### **Arguments:** - -* `` - - - -## `admin query sending` - -- sending.rs iterators and getters - -**Usage:** `admin query sending ` - -###### **Subcommands:** - -* `active-requests` โ€” - Queries database for all `servercurrentevent_data` -* `active-requests-for` โ€” - Queries database for `servercurrentevent_data` but for a specific destination -* `queued-requests` โ€” - Queries database for `servernameevent_data` which are the queued up requests that will eventually be sent -* `get-latest-edu-count` โ€” - - - -## `admin query sending active-requests` - -- Queries database for all `servercurrentevent_data` - -**Usage:** `admin query sending active-requests` - - - -## `admin query sending active-requests-for` - -- Queries database for `servercurrentevent_data` but for a specific destination - -This command takes only *one* format of these arguments: - -appservice_id server_name user_id AND push_key - -See src/service/sending/mod.rs for the definition of the `Destination` enum - -**Usage:** `admin query sending active-requests-for [OPTIONS]` - -###### **Options:** - -* `-a`, `--appservice-id ` -* `-s`, `--server-name ` -* `-u`, `--user-id ` -* `-p`, `--push-key ` - - - -## `admin query sending queued-requests` - -- Queries database for `servernameevent_data` which are the queued up requests that will eventually be sent - -This command takes only *one* format of these arguments: - -appservice_id server_name user_id AND push_key - -See src/service/sending/mod.rs for the definition of the `Destination` enum - -**Usage:** `admin query sending queued-requests [OPTIONS]` - -###### **Options:** - -* `-a`, `--appservice-id ` -* `-s`, `--server-name ` -* `-u`, `--user-id ` -* `-p`, `--push-key ` - - - -## `admin query sending get-latest-edu-count` - -**Usage:** `admin query sending get-latest-edu-count ` - -###### **Arguments:** - -* `` - - - -## `admin query users` - -- users.rs iterators and getters - -**Usage:** `admin query users ` - -###### **Subcommands:** - -* `count-users` โ€” -* `iter-users` โ€” -* `iter-users2` โ€” -* `password-hash` โ€” -* `list-devices` โ€” -* `list-devices-metadata` โ€” -* `get-device-metadata` โ€” -* `get-devices-version` โ€” -* `count-one-time-keys` โ€” -* `get-device-keys` โ€” -* `get-user-signing-key` โ€” -* `get-master-key` โ€” -* `get-to-device-events` โ€” -* `get-latest-backup` โ€” -* `get-latest-backup-version` โ€” -* `get-backup-algorithm` โ€” -* `get-all-backups` โ€” -* `get-room-backups` โ€” -* `get-backup-session` โ€” -* `get-shared-rooms` โ€” - - - -## `admin query users count-users` - -**Usage:** `admin query users count-users` - - - -## `admin query users iter-users` - -**Usage:** `admin query users iter-users` - - - -## `admin query users iter-users2` - -**Usage:** `admin query users iter-users2` - - - -## `admin query users password-hash` - -**Usage:** `admin query users password-hash ` - -###### **Arguments:** - -* `` - - - -## `admin query users list-devices` - -**Usage:** `admin query users list-devices ` - -###### **Arguments:** - -* `` - - - -## `admin query users list-devices-metadata` - -**Usage:** `admin query users list-devices-metadata ` - -###### **Arguments:** - -* `` - - - -## `admin query users get-device-metadata` - -**Usage:** `admin query users get-device-metadata ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-devices-version` - -**Usage:** `admin query users get-devices-version ` - -###### **Arguments:** - -* `` - - - -## `admin query users count-one-time-keys` - -**Usage:** `admin query users count-one-time-keys ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-device-keys` - -**Usage:** `admin query users get-device-keys ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-user-signing-key` - -**Usage:** `admin query users get-user-signing-key ` - -###### **Arguments:** - -* `` - - - -## `admin query users get-master-key` - -**Usage:** `admin query users get-master-key ` - -###### **Arguments:** - -* `` - - - -## `admin query users get-to-device-events` - -**Usage:** `admin query users get-to-device-events ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-latest-backup` - -**Usage:** `admin query users get-latest-backup ` - -###### **Arguments:** - -* `` - - - -## `admin query users get-latest-backup-version` - -**Usage:** `admin query users get-latest-backup-version ` - -###### **Arguments:** - -* `` - - - -## `admin query users get-backup-algorithm` - -**Usage:** `admin query users get-backup-algorithm ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-all-backups` - -**Usage:** `admin query users get-all-backups ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query users get-room-backups` - -**Usage:** `admin query users get-room-backups ` - -###### **Arguments:** - -* `` -* `` -* `` - - - -## `admin query users get-backup-session` - -**Usage:** `admin query users get-backup-session ` - -###### **Arguments:** - -* `` -* `` -* `` -* `` - - - -## `admin query users get-shared-rooms` - -**Usage:** `admin query users get-shared-rooms ` - -###### **Arguments:** - -* `` -* `` - - - -## `admin query resolver` - -- resolver service - -**Usage:** `admin query resolver ` - -###### **Subcommands:** - -* `destinations-cache` โ€” Query the destinations cache -* `overrides-cache` โ€” Query the overrides cache - - - -## `admin query resolver destinations-cache` - -Query the destinations cache - -**Usage:** `admin query resolver destinations-cache [SERVER_NAME]` - -###### **Arguments:** - -* `` - - - -## `admin query resolver overrides-cache` - -Query the overrides cache - -**Usage:** `admin query resolver overrides-cache [NAME]` - -###### **Arguments:** - -* `` - - - -## `admin query pusher` - -- pusher service - -**Usage:** `admin query pusher ` - -###### **Subcommands:** - -* `get-pushers` โ€” - Returns all the pushers for the user - - - -## `admin query pusher get-pushers` - -- Returns all the pushers for the user - -**Usage:** `admin query pusher get-pushers ` - -###### **Arguments:** - -* `` โ€” Full user ID - - - -## `admin query short` - -- short service - -**Usage:** `admin query short ` - -###### **Subcommands:** - -* `short-event-id` โ€” -* `short-room-id` โ€” - - - -## `admin query short short-event-id` - -**Usage:** `admin query short short-event-id ` - -###### **Arguments:** - -* `` - - - -## `admin query short short-room-id` - -**Usage:** `admin query short short-room-id ` - -###### **Arguments:** - -* `` - - - -## `admin query raw` - -- raw service - -**Usage:** `admin query raw ` - -###### **Subcommands:** - -* `raw-maps` โ€” - List database maps -* `raw-get` โ€” - Raw database query -* `raw-del` โ€” - Raw database delete (for string keys) -* `raw-keys` โ€” - Raw database keys iteration -* `raw-keys-sizes` โ€” - Raw database key size breakdown -* `raw-keys-total` โ€” - Raw database keys total bytes -* `raw-vals-sizes` โ€” - Raw database values size breakdown -* `raw-vals-total` โ€” - Raw database values total bytes -* `raw-iter` โ€” - Raw database items iteration -* `raw-keys-from` โ€” - Raw database keys iteration -* `raw-iter-from` โ€” - Raw database items iteration -* `raw-count` โ€” - Raw database record count -* `compact` โ€” - Compact database - - - -## `admin query raw raw-maps` - -- List database maps - -**Usage:** `admin query raw raw-maps` - - - -## `admin query raw raw-get` - -- Raw database query - -**Usage:** `admin query raw raw-get ` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key - - - -## `admin query raw raw-del` - -- Raw database delete (for string keys) - -**Usage:** `admin query raw raw-del ` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key - - - -## `admin query raw raw-keys` - -- Raw database keys iteration - -**Usage:** `admin query raw raw-keys [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-keys-sizes` - -- Raw database key size breakdown - -**Usage:** `admin query raw raw-keys-sizes [MAP] [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-keys-total` - -- Raw database keys total bytes - -**Usage:** `admin query raw raw-keys-total [MAP] [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-vals-sizes` - -- Raw database values size breakdown - -**Usage:** `admin query raw raw-vals-sizes [MAP] [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-vals-total` - -- Raw database values total bytes - -**Usage:** `admin query raw raw-vals-total [MAP] [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-iter` - -- Raw database items iteration - -**Usage:** `admin query raw raw-iter [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw raw-keys-from` - -- Raw database keys iteration - -**Usage:** `admin query raw raw-keys-from [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Lower-bound - -###### **Options:** - -* `-l`, `--limit ` โ€” Limit - - - -## `admin query raw raw-iter-from` - -- Raw database items iteration - -**Usage:** `admin query raw raw-iter-from [OPTIONS] ` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Lower-bound - -###### **Options:** - -* `-l`, `--limit ` โ€” Limit - - - -## `admin query raw raw-count` - -- Raw database record count - -**Usage:** `admin query raw raw-count [MAP] [PREFIX]` - -###### **Arguments:** - -* `` โ€” Map name -* `` โ€” Key prefix - - - -## `admin query raw compact` - -- Compact database - -**Usage:** `admin query raw compact [OPTIONS]` - -###### **Options:** - -* `-m`, `--map ` -* `--start ` -* `--stop ` -* `--from ` -* `--into ` -* `--parallelism ` โ€” There is one compaction job per column; then this controls how many columns are compacted in parallel. If zero, one compaction job is still run at a time here, but in exclusive-mode blocking any other automatic compaction jobs until complete -* `--exhaustive` - - Default value: `false` diff --git a/docs/appservices.md b/docs/appservices.md index 5c22b7fa..84385ab9 100644 --- a/docs/appservices.md +++ b/docs/appservices.md @@ -2,25 +2,23 @@ ## Getting help -If you run into any problems while setting up an Appservice: ask us in -[#continuwuity:continuwuity.org](https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) or -[open an issue on Forgejo](https://forgejo.ellis.link/continuwuation/continuwuity/issues/new). +If you run into any problems while setting up an Appservice: ask us in [#conduwuit:puppygock.gay](https://matrix.to/#/#conduwuit:puppygock.gay) or [open an issue on GitHub](https://github.com/girlbossceo/conduwuit/issues/new). ## Set up the appservice - general instructions Follow whatever instructions are given by the appservice. This usually includes -downloading, changing its config (setting domain, homeserver url, port etc.) and -later starting it. +downloading, changing its config (setting domain, homeserver url, port etc.) +and later starting it. At some point the appservice guide should ask you to add a registration yaml file to the homeserver. In Synapse you would do this by adding the path to the -homeserver.yaml, but in Continuwuity you can do this from within Matrix: +homeserver.yaml, but in Conduit you can do this from within Matrix: -First, go into the `#admins` room of your homeserver. The first person that +First, go into the #admins room of your homeserver. The first person that registered on the homeserver automatically joins it. Then send a message into the room like this: - !admin appservices register + @conduit:your.server.name: register-appservice ``` paste the @@ -33,13 +31,13 @@ the room like this: ``` You can confirm it worked by sending a message like this: -`!admin appservices list` +`@conduit:your.server.name: appservices list` -The server bot should answer with `Appservices (1): your-bridge` +The `@conduit` bot should answer with `Appservices (1): your-bridge` -Then you are done. Continuwuity will send messages to the appservices and the +Then you are done. Conduit will send messages to the appservices and the appservice can send requests to the homeserver. You don't need to restart -Continuwuity, but if it doesn't work, restarting while the appservice is running +Conduit, but if it doesn't work, restarting while the appservice is running could help. ## Appservice-specific instructions @@ -48,6 +46,16 @@ could help. To remove an appservice go to your admin room and execute -`!admin appservices unregister ` +`@conduit:your.server.name: appservices unregister ` where `` one of the output of `appservices list`. + +### Tested appservices + +These appservices have been tested and work with Conduit without any extra steps: + +- [matrix-appservice-discord](https://github.com/Half-Shot/matrix-appservice-discord) +- [mautrix-hangouts](https://github.com/mautrix/hangouts/) +- [mautrix-telegram](https://github.com/mautrix/telegram/) +- [mautrix-signal](https://github.com/mautrix/signal/) from version `0.2.2` forward. +- [heisenbridge](https://github.com/hifi/heisenbridge/) diff --git a/docs/assets/conduwuit_logo.svg b/docs/assets/conduwuit_logo.svg deleted file mode 100644 index 9be5b453..00000000 --- a/docs/assets/conduwuit_logo.svg +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - diff --git a/docs/assets/gay dog anarchists.png b/docs/assets/gay dog anarchists.png deleted file mode 100644 index 871cf302..00000000 Binary files a/docs/assets/gay dog anarchists.png and /dev/null differ diff --git a/docs/community.md b/docs/community.md deleted file mode 100644 index 1b90bfe8..00000000 --- a/docs/community.md +++ /dev/null @@ -1,139 +0,0 @@ -# Continuwuity Community Guidelines - -Welcome to the Continuwuity commuwunity! We're excited to have you here. Continuwuity is a -continuation of the conduwuit homeserver, which in turn is a hard-fork of the Conduit homeserver, -aimed at making Matrix more accessible and inclusive for everyone. - -This space is dedicated to fostering a positive, supportive, and welcoming environment for everyone. -These guidelines apply to all Continuwuity spaces, including our Matrix rooms and any other -community channels that reference them. We've written these guidelines to help us all create an -environment where everyone feels safe and respected. - -For code and contribution guidelines, please refer to the -[Contributor's Covenant](https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CODE_OF_CONDUCT.md). -Below are additional guidelines specific to the Continuwuity community. - -## Our Values and Expected Behaviors - -We strive to create a community based on mutual respect, collaboration, and inclusivity. We expect -all members to: - -1. **Be Respectful and Inclusive**: Treat everyone with respect. We're committed to a community - where everyone feels safe, regardless of background, identity, or experience. Discrimination, - harassment, or hate speech won't be tolerated. Remember that each person experiences the world - differently; share your own perspective and be open to learning about others'. - -2. **Be Positive and Constructive**: Engage in discussions constructively and support each other. - If you feel angry or frustrated, take a break before participating. Approach disagreements with - the goal of understanding, not winning. Focus on the issue, not the person. - -3. **Communicate Clearly and Kindly**: Our community includes neurodivergent individuals and those - who may not appreciate sarcasm or subtlety. Communicate clearly and kindly. Avoid ambiguity and - ensure your messages can be easily understood by all. Avoid placing the burden of education on - marginalized groups; please make an effort to look into your questions before asking others for - detailed explanations. - -4. **Be Open to Improving Inclusivity**: Actively participate in making our community more inclusive. - Report behaviour that contradicts these guidelines (see Reporting and Enforcement below) and be - open to constructive feedback aimed at improving our community. Understand that discussing - negative experiences can be emotionally taxing; focus on the message, not the tone. - -5. **Commit to Our Values**: Building an inclusive community requires ongoing effort from everyone. - Recognise that addressing bias and discrimination is a continuous process that needs commitment - and action from all members. - -## Unacceptable Behaviors - -To ensure everyone feels safe and welcome, the following behaviors are considered unacceptable -within the Continuwuity community: - -* **Harassment and Discrimination**: Avoid offensive comments related to background, family status, - gender, gender identity or expression, marital status, sex, sexual orientation, native language, - age, ability, race and/or ethnicity, caste, national origin, socioeconomic status, religion, - geographic location, or any other dimension of diversity. Don't deliberately misgender someone or - question the legitimacy of their gender identity. - -* **Violence and Threats**: Do not engage in any form of violence or threats, including inciting - violence towards anyone or encouraging self-harm. Posting or threatening to post someone else's - personally identifying information ("doxxing") is also forbidden. - -* **Personal Attacks**: Disagreements happen, but they should never turn into personal attacks. - Don't insult, demean, or belittle others. - -* **Unwelcome Attention or Contact**: Avoid unwelcome sexual attention, inappropriate physical - contact (or simulation thereof), sexualized comments, jokes, or imagery. - -* **Disruption**: Do not engage in sustained disruption of discussions, events, or other - community activities. - -* **Bad Faith Actions**: Do not intentionally make false reports or otherwise abuse the reporting - process. - -This is not an exhaustive list. Any behaviour that makes others feel unsafe or unwelcome may be -subject to enforcement action. - -## Matrix Community - -These Community Guidelines apply to the entire -[Continuwuity Matrix Space](https://matrix.to/#/#space:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) and its rooms, including: - -### [#continuwuity:continuwuity.org](https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) - -This room is for support and discussions about Continuwuity. Ask questions, share insights, and help -each other out while adhering to these guidelines. - -We ask that this room remain focused on the Continuwuity software specifically: the team are -typically happy to engage in conversations about related subjects in the off-topic room. - -### [#offtopic:continuwuity.org](https://matrix.to/#/#offtopic:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) - -For off-topic community conversations about any subject. While this room allows for a wide range of -topics, the same guidelines apply. Please keep discussions respectful and inclusive, and avoid -divisive or stressful subjects like specific country/world politics unless handled with exceptional -care and respect for diverse viewpoints. - -General topics, such as world events, are welcome as long as they follow the guidelines. If a member -of the team asks for the conversation to end, please respect their decision. - -### [#dev:continuwuity.org](https://matrix.to/#/#dev:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org) - -This room is dedicated to discussing active development of Continuwuity, including ongoing issues or -code development. Collaboration here must follow these guidelines, and please consider raising -[an issue](https://forgejo.ellis.link/continuwuation/continuwuity/issues) on the repository to help -track progress. - -## Reporting and Enforcement - -We take these Community Guidelines seriously to protect our community members. If you witness or -experience unacceptable behaviour, or have any other concerns, please report it. - -**How to Report:** - -* **Alert Moderators in the Room:** If you feel comfortable doing so, you can address the issue - publicly in the relevant room by mentioning the moderation bot, `@rock:continuwuity.org`, which - will immediately alert all available moderators. -* **Direct Message:** If you're not comfortable raising the issue publicly, please send a direct - message (DM) to one of the room moderators. - -Reports will be handled with discretion. We will investigate promptly and thoroughly. - -**Enforcement Actions:** - -Anyone asked to stop unacceptable behaviour is expected to comply immediately. Failure to do so, or -engaging in prohibited behaviour, may result in enforcement action. Moderators may take actions they -deem appropriate, including but not limited to: - -1. **Warning**: A direct message or public warning identifying the violation and requesting - corrective action. -2. **Temporary Mute**: Temporary restriction from participating in discussions for a specified - period. -3. **Kick or Ban**: Removal from a room (kick) or the entire community space (ban). Egregious or - repeated violations may result in an immediate ban. Bans are typically permanent and reviewed - only in exceptional circumstances. - -Retaliation against those who report concerns in good faith will not be tolerated and will be -subject to the same enforcement actions. - -Together, let's build and maintain a community where everyone feels valued, safe, and respected. - -โ€” The Continuwuity Moderation Team diff --git a/docs/configuration.md b/docs/configuration.md index 778e5c56..6627c3b6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1,64 +1,11 @@ -# Configuration +# Example configuration -This chapter describes various ways to configure Continuwuity. - -## Basics - -Continuwuity uses a config file for the majority of the settings, but also supports -setting individual config options via commandline. - -Please refer to the [example config -file](./configuration/examples.md#example-configuration) for all of those -settings. - -The config file to use can be specified on the commandline when running -Continuwuity by specifying the `-c`, `--config` flag. Alternatively, you can use -the environment variable `CONDUWUIT_CONFIG` to specify the config file to used. -Conduit's environment variables are supported for backwards compatibility. - -## Option commandline flag - -Continuwuity supports setting individual config options in TOML format from the -`-O` / `--option` flag. For example, you can set your server name via `-O -server_name=\"example.com\"`. - -Note that the config is parsed as TOML, and shells like bash will remove quotes. -So unfortunately it is required to escape quotes if the config option takes a -string. This does not apply to options that take booleans or numbers: -- `--option allow_registration=true` works โœ… -- `-O max_request_size=99999999` works โœ… -- `-O server_name=example.com` does not work โŒ -- `--option log=\"debug\"` works โœ… -- `--option server_name='"example.com'"` works โœ… - -## Execute commandline flag - -Continuwuity supports running admin commands on startup using the commandline -argument `--execute`. The most notable use for this is to create an admin user -on first startup. - -The syntax of this is a standard admin command without the prefix such as -`./conduwuit --execute "users create_user june"` - -An example output of a success is: -``` -INFO conduwuit_service::admin::startup: Startup command #0 completed: -Created user with user_id: @june:girlboss.ceo and password: `` +``` toml +{{#include ../conduwuit-example.toml}} ``` -This commandline argument can be paired with the `--option` flag. +# Example systemd unit file -## Environment variables - -All of the settings that are found in the config file can be specified by using -environment variables. The environment variable names should be all caps and -prefixed with `CONDUWUIT_`. - -For example, if the setting you are changing is `max_request_size`, then the -environment variable to set is `CONDUWUIT_MAX_REQUEST_SIZE`. - -To modify config options not in the `[global]` context such as -`[global.well_known]`, use the `__` suffix split: `CONDUWUIT_WELL_KNOWN__SERVER` - -Conduit's environment variables are supported for backwards compatibility (e.g. -`CONDUIT_SERVER_NAME`). +``` +{{#include ../debian/conduwuit.service}} +``` diff --git a/docs/configuration/examples.md b/docs/configuration/examples.md deleted file mode 100644 index 9613e252..00000000 --- a/docs/configuration/examples.md +++ /dev/null @@ -1,19 +0,0 @@ -## Example configuration - -
-Example configuration - -```toml -{{#include ../../conduwuit-example.toml}} -``` - -
- -## systemd unit file - -
-systemd unit file - -``` -{{#include ../../pkg/conduwuit.service}} -``` diff --git a/docs/contributing.md b/docs/contributing.md deleted file mode 120000 index 44fcc634..00000000 --- a/docs/contributing.md +++ /dev/null @@ -1 +0,0 @@ -../CONTRIBUTING.md \ No newline at end of file diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 00000000..81ddb505 --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1 @@ +{{#include ../CONTRIBUTING.md}} diff --git a/docs/deploying.md b/docs/deploying.md index be1bf736..fecf7647 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -1,3 +1,3 @@ # Deploying -This chapter describes various ways to deploy Continuwuity. +This chapter describes various ways to deploy Conduwuit. diff --git a/docs/deploying/arch-linux.md b/docs/deploying/arch-linux.md index 70067abc..ec9fe25c 100644 --- a/docs/deploying/arch-linux.md +++ b/docs/deploying/arch-linux.md @@ -1,5 +1,8 @@ -# Continuwuity for Arch Linux +# conduwuit for Arch Linux -Continuwuity is available in the `archlinuxcn` repository and AUR with the same package name `continuwuity`, which includes the latest tagged version. The development version is available on AUR as `continuwuity-git`. +Currently conduwuit is only on the Arch User Repository (AUR). -Simply install the `continuwuity` package. Configure the service in `/etc/conduwuit/conduwuit.toml`, then enable and start the continuwuity.service. +The conduwuit AUR packages are community maintained and are not maintained by conduwuit development team, but the AUR package maintainers are in the Matrix room. Please attempt to verify your AUR package's PKGBUILD file looks fine before asking for support. + +- [conduwuit](https://aur.archlinux.org/packages/conduwuit) - latest tagged conduwuit +- [conduwuit-git](https://aur.archlinux.org/packages/conduwuit-git) - latest git conduwuit from `main` branch diff --git a/docs/deploying/debian.md b/docs/deploying/debian.md index 369638a4..2e8a544a 100644 --- a/docs/deploying/debian.md +++ b/docs/deploying/debian.md @@ -1 +1 @@ -{{#include ../../pkg/debian/README.md}} +{{#include ../../debian/README.md}} diff --git a/docs/deploying/docker-compose.for-traefik.yml b/docs/deploying/docker-compose.for-traefik.yml index f67e603b..ec3e720c 100644 --- a/docs/deploying/docker-compose.for-traefik.yml +++ b/docs/deploying/docker-compose.for-traefik.yml @@ -1,58 +1,44 @@ -# Continuwuity - Behind Traefik Reverse Proxy +# conduwuit - Behind Traefik Reverse Proxy +version: '2.4' # uses '2.4' for cpuset services: - homeserver: - ### If you already built the conduduwit image with 'docker build' or want to use the Docker Hub image, - ### then you are ready to go. - image: forgejo.ellis.link/continuwuation/continuwuity:latest - restart: unless-stopped - volumes: - - db:/var/lib/continuwuity - - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's. - #- ./continuwuity.toml:/etc/continuwuity.toml - networks: - - proxy - labels: - - "traefik.enable=true" - - "traefik.http.routers.continuwuity.rule=(Host(`matrix.example.com`) || (Host(`example.com`) && PathPrefix(`/.well-known/matrix`)))" - - "traefik.http.routers.continuwuity.entrypoints=websecure" # your HTTPS entry point - - "traefik.http.routers.continuwuity.tls=true" - - "traefik.http.routers.continuwuity.service=continuwuity" - - "traefik.http.services.continuwuity.loadbalancer.server.port=6167" - # possibly, depending on your config: - # - "traefik.http.routers.continuwuity.tls.certresolver=letsencrypt" - environment: - CONTINUWUITY_SERVER_NAME: your.server.name.example # EDIT THIS - CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity - CONTINUWUITY_PORT: 6167 # should match the loadbalancer traefik label - CONTINUWUITY_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB - CONTINUWUITY_ALLOW_REGISTRATION: 'true' - CONTINUWUITY_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed. - #CONTINUWUITY_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true' - CONTINUWUITY_ALLOW_FEDERATION: 'true' - CONTINUWUITY_ALLOW_CHECK_FOR_UPDATES: 'true' - CONTINUWUITY_TRUSTED_SERVERS: '["matrix.org"]' - #CONTINUWUITY_LOG: warn,state_res=warn - CONTINUWUITY_ADDRESS: 0.0.0.0 - #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above - - # We need some way to serve the client and server .well-known json. The simplest way is via the CONTINUWUITY_WELL_KNOWN - # variable / config option, there are multiple ways to do this, e.g. in the continuwuity.toml file, and in a separate - # see the override file for more information about delegation - CONTINUWUITY_WELL_KNOWN: | - { - client=https://your.server.name.example, - server=your.server.name.example:443 - } - #cpuset: "0-4" # Uncomment to limit to specific CPU cores - ulimits: # Continuwuity uses quite a few file descriptors, and on some systems it defaults to 1024, so you can tell docker to increase it - nofile: - soft: 1048567 - hard: 1048567 + homeserver: + ### If you already built the conduduwit image with 'docker build' or want to use the Docker Hub image, + ### then you are ready to go. + image: girlbossceo/conduwuit:latest + restart: unless-stopped + volumes: + - db:/var/lib/conduwuit + #- ./conduwuit.toml:/etc/conduwuit.toml + networks: + - proxy + environment: + CONDUWUIT_SERVER_NAME: your.server.name # EDIT THIS + CONDUWUIT_DATABASE_PATH: /var/lib/conduwuit + CONDUWUIT_DATABASE_BACKEND: rocksdb + CONDUWUIT_PORT: 6167 + CONDUWUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB + CONDUWUIT_ALLOW_REGISTRATION: 'true' + CONDUWUIT_ALLOW_FEDERATION: 'true' + CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true' + CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]' + #CONDUWUIT_LOG: warn,state_res=warn + CONDUWUIT_ADDRESS: 0.0.0.0 + #CONDUWUIT_CONFIG: './conduwuit.toml' # Uncomment if you mapped config toml above + #cpuset: "0-4" # Uncomment to limit to specific CPU cores + # We need some way to server the client and server .well-known json. The simplest way is to use a nginx container + # to serve those two as static files. If you want to use a different way, delete or comment the below service, here + # and in the docker compose override file. + well-known: + image: nginx:latest + restart: unless-stopped + volumes: + - ./nginx/matrix.conf:/etc/nginx/conf.d/matrix.conf # the config to serve the .well-known/matrix files + - ./nginx/www:/var/www/ # location of the client and server .well-known-files ### Uncomment if you want to use your own Element-Web App. ### Note: You need to provide a config.json for Element and you also need a second - ### Domain or Subdomain for the communication between Element and Continuwuity + ### Domain or Subdomain for the communication between Element and conduwuit ### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md # element-web: # image: vectorim/element-web:latest @@ -65,12 +51,10 @@ services: # - homeserver volumes: - db: + db: networks: - # This is the network Traefik listens to, if your network has a different - # name, don't forget to change it here and in the docker-compose.override.yml - proxy: - external: true - -# vim: ts=2:sw=2:expandtab + # This is the network Traefik listens to, if your network has a different + # name, don't forget to change it here and in the docker-compose.override.yml + proxy: + external: true diff --git a/docs/deploying/docker-compose.override.yml b/docs/deploying/docker-compose.override.yml index c1a7248c..2e937e75 100644 --- a/docs/deploying/docker-compose.override.yml +++ b/docs/deploying/docker-compose.override.yml @@ -1,36 +1,45 @@ -# Continuwuity - Traefik Reverse Proxy Labels +# conduwuit - Traefik Reverse Proxy Labels +version: '2.4' # uses '2.4' for cpuset services: - homeserver: - labels: - - "traefik.enable=true" - - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network + homeserver: + labels: + - "traefik.enable=true" + - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network - - "traefik.http.routers.to-continuwuity.rule=Host(`.`)" # Change to the address on which Continuwuity is hosted - - "traefik.http.routers.to-continuwuity.tls=true" - - "traefik.http.routers.to-continuwuity.tls.certresolver=letsencrypt" - - "traefik.http.routers.to-continuwuity.middlewares=cors-headers@docker" - - "traefik.http.services.to_continuwuity.loadbalancer.server.port=6167" + - "traefik.http.routers.to-conduwuit.rule=Host(`.`)" # Change to the address on which conduwuit is hosted + - "traefik.http.routers.to-conduwuit.tls=true" + - "traefik.http.routers.to-conduwuit.tls.certresolver=letsencrypt" + - "traefik.http.routers.to-conduwuit.middlewares=cors-headers@docker" - - "traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*" - - "traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization" - - "traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS" - # If you want to have your account on , but host Continuwuity on a subdomain, - # you can let it only handle the well known file on that domain instead - #- "traefik.http.routers.to-matrix-wellknown.rule=Host(``) && PathPrefix(`/.well-known/matrix`)" - #- "traefik.http.routers.to-matrix-wellknown.tls=true" - #- "traefik.http.routers.to-matrix-wellknown.tls.certresolver=letsencrypt" - #- "traefik.http.routers.to-matrix-wellknown.middlewares=cors-headers@docker" + # We need some way to server the client and server .well-known json. The simplest way is to use a nginx container + # to serve those two as static files. If you want to use a different way, delete or comment the below service, here + # and in the docker compose file. + well-known: + labels: + - "traefik.enable=true" + - "traefik.docker.network=proxy" - ### Uncomment this if you uncommented Element-Web App in the docker-compose.yml - # element-web: - # labels: - # - "traefik.enable=true" - # - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network + - "traefik.http.routers.to-matrix-wellknown.rule=Host(`.`) && PathPrefix(`/.well-known/matrix`)" + - "traefik.http.routers.to-matrix-wellknown.tls=true" + - "traefik.http.routers.to-matrix-wellknown.tls.certresolver=letsencrypt" + - "traefik.http.routers.to-matrix-wellknown.middlewares=cors-headers@docker" - # - "traefik.http.routers.to-element-web.rule=Host(`.`)" # Change to the address on which Element-Web is hosted - # - "traefik.http.routers.to-element-web.tls=true" - # - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization" + - "traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS" -# vim: ts=2:sw=2:expandtab + + ### Uncomment this if you uncommented Element-Web App in the docker-compose.yml + # element-web: + # labels: + # - "traefik.enable=true" + # - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network + + # - "traefik.http.routers.to-element-web.rule=Host(`.`)" # Change to the address on which Element-Web is hosted + # - "traefik.http.routers.to-element-web.tls=true" + # - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt" diff --git a/docs/deploying/docker-compose.with-caddy.yml b/docs/deploying/docker-compose.with-caddy.yml deleted file mode 100644 index dd6a778f..00000000 --- a/docs/deploying/docker-compose.with-caddy.yml +++ /dev/null @@ -1,56 +0,0 @@ -services: - caddy: - # This compose file uses caddy-docker-proxy as the reverse proxy for Continuwuity! - # For more info, visit https://github.com/lucaslorentz/caddy-docker-proxy - image: lucaslorentz/caddy-docker-proxy:ci-alpine - ports: - - 80:80 - - 443:443 - environment: - - CADDY_INGRESS_NETWORKS=caddy - networks: - - caddy - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./data:/data - restart: unless-stopped - labels: - caddy: example.com - caddy.0_respond: /.well-known/matrix/server {"m.server":"matrix.example.com:443"} - caddy.1_respond: /.well-known/matrix/client {"m.server":{"base_url":"https://matrix.example.com"},"m.homeserver":{"base_url":"https://matrix.example.com"},"org.matrix.msc3575.proxy":{"url":"https://matrix.example.com"}} - - homeserver: - ### If you already built the Continuwuity image with 'docker build' or want to use a registry image, - ### then you are ready to go. - image: forgejo.ellis.link/continuwuation/continuwuity:latest - restart: unless-stopped - volumes: - - db:/var/lib/continuwuity - - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's. - #- ./continuwuity.toml:/etc/continuwuity.toml - environment: - CONTINUWUITY_SERVER_NAME: example.com # EDIT THIS - CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity - CONTINUWUITY_PORT: 6167 - CONTINUWUITY_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB - CONTINUWUITY_ALLOW_REGISTRATION: 'true' - CONTINUWUITY_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed. - #CONTINUWUITY_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true' - CONTINUWUITY_ALLOW_FEDERATION: 'true' - CONTINUWUITY_ALLOW_CHECK_FOR_UPDATES: 'true' - CONTINUWUITY_TRUSTED_SERVERS: '["matrix.org"]' - #CONTINUWUITY_LOG: warn,state_res=warn - CONTINUWUITY_ADDRESS: 0.0.0.0 - #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above - networks: - - caddy - labels: - caddy: matrix.example.com - caddy.reverse_proxy: "{{upstreams 6167}}" - -volumes: - db: - -networks: - caddy: - external: true diff --git a/docs/deploying/docker-compose.with-traefik.yml b/docs/deploying/docker-compose.with-traefik.yml index 8021e034..c93f5414 100644 --- a/docs/deploying/docker-compose.with-traefik.yml +++ b/docs/deploying/docker-compose.with-traefik.yml @@ -1,65 +1,48 @@ -# Continuwuity - Behind Traefik Reverse Proxy +# conduwuit - Behind Traefik Reverse Proxy +version: '2.4' # uses '2.4' for cpuset services: - homeserver: - ### If you already built the Continuwuity image with 'docker build' or want to use the Docker Hub image, - ### then you are ready to go. - image: forgejo.ellis.link/continuwuation/continuwuity:latest - restart: unless-stopped - volumes: - - db:/var/lib/continuwuity - - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's. - #- ./continuwuity.toml:/etc/continuwuity.toml - networks: - - proxy - labels: - - "traefik.enable=true" - - "traefik.http.routers.continuwuity.rule=(Host(`matrix.example.com`) || (Host(`example.com`) && PathPrefix(`/.well-known/matrix`)))" - - "traefik.http.routers.continuwuity.entrypoints=websecure" - - "traefik.http.routers.continuwuity.tls.certresolver=letsencrypt" - - "traefik.http.services.continuwuity.loadbalancer.server.port=6167" - # Uncomment and adjust the following if you want to use middleware - # - "traefik.http.routers.continuwuity.middlewares=secureHeaders@file" - environment: - CONTINUWUITY_SERVER_NAME: your.server.name.example # EDIT THIS - CONTINUWUITY_TRUSTED_SERVERS: '["matrix.org"]' - CONTINUWUITY_ALLOW_REGISTRATION: 'false' # After setting a secure registration token, you can enable this - CONTINUWUITY_REGISTRATION_TOKEN: "" # This is a token you can use to register on the server - #CONTINUWUITY_REGISTRATION_TOKEN_FILE: "" # Alternatively you can configure a path to a token file to read - CONTINUWUITY_ADDRESS: 0.0.0.0 - CONTINUWUITY_PORT: 6167 # you need to match this with the traefik load balancer label if you're want to change it - CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity - #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above - ### Uncomment and change values as desired, note that Continuwuity has plenty of config options, so you should check out the example example config too - # Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging - # CONTINUWUITY_LOG: info # default is: "warn,state_res=warn" - # CONTINUWUITY_ALLOW_ENCRYPTION: 'true' - # CONTINUWUITY_ALLOW_FEDERATION: 'true' - # CONTINUWUITY_ALLOW_CHECK_FOR_UPDATES: 'true' - # CONTINUWUITY_ALLOW_INCOMING_PRESENCE: true - # CONTINUWUITY_ALLOW_OUTGOING_PRESENCE: true - # CONTINUWUITY_ALLOW_LOCAL_PRESENCE: true - # CONTINUWUITY_WORKERS: 10 - # CONTINUWUITY_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB - # CONTINUWUITY_NEW_USER_DISPLAYNAME_SUFFIX = "๐Ÿณ<200d>โšง" + homeserver: + ### If you already built the conduwuit image with 'docker build' or want to use the Docker Hub image, + ### then you are ready to go. + image: girlbossceo/conduwuit:latest + restart: unless-stopped + volumes: + - db:/srv/conduwuit/.local/share/conduwuit + #- ./conduwuit.toml:/etc/conduwuit.toml + networks: + - proxy + environment: + CONDUWUIT_SERVER_NAME: your.server.name # EDIT THIS + CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]' + CONDUWUIT_ALLOW_REGISTRATION : 'true' + #CONDUWUIT_CONFIG: './conduwuit.toml' # Uncomment if you mapped config toml above + ### Uncomment and change values as desired + # CONDUWUIT_ADDRESS: 0.0.0.0 + # CONDUWUIT_PORT: 6167 + # CONDUWUIT_LOG: info # default is: "warn,state_res=warn" + # CONDUWUIT_ALLOW_JAEGER: 'false' + # CONDUWUIT_ALLOW_ENCRYPTION: 'true' + # CONDUWUIT_ALLOW_FEDERATION: 'true' + # CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true' + # CONDUWUIT_DATABASE_PATH: /srv/conduwuit/.local/share/conduwuit + # CONDUWUIT_WORKERS: 10 + # CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB + #cpuset: "0-4" # Uncomment to limit to specific CPU cores - # We need some way to serve the client and server .well-known json. The simplest way is via the CONTINUWUITY_WELL_KNOWN - # variable / config option, there are multiple ways to do this, e.g. in the continuwuity.toml file, and in a separate - # reverse proxy, but since you do not have a reverse proxy and following this guide, this example is included - CONTINUWUITY_WELL_KNOWN: | - { - client=https://your.server.name.example, - server=your.server.name.example:443 - } - #cpuset: "0-4" # Uncomment to limit to specific CPU cores - ulimits: # Continuwuity uses quite a few file descriptors, and on some systems it defaults to 1024, so you can tell docker to increase it - nofile: - soft: 1048567 - hard: 1048567 + # We need some way to server the client and server .well-known json. The simplest way is to use a nginx container + # to serve those two as static files. If you want to use a different way, delete or comment the below service, here + # and in the docker compose override file. + well-known: + image: nginx:latest + restart: unless-stopped + volumes: + - ./nginx/matrix.conf:/etc/nginx/conf.d/matrix.conf # the config to serve the .well-known/matrix files + - ./nginx/www:/var/www/ # location of the client and server .well-known-files ### Uncomment if you want to use your own Element-Web App. ### Note: You need to provide a config.json for Element and you also need a second - ### Domain or Subdomain for the communication between Element and Continuwuity + ### Domain or Subdomain for the communication between Element and conduwuit ### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md # element-web: # image: vectorim/element-web:latest @@ -71,79 +54,29 @@ services: # depends_on: # - homeserver - traefik: - image: "traefik:latest" - container_name: "traefik" - restart: "unless-stopped" - ports: - - "80:80" - - "443:443" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock:z" - - "acme:/etc/traefik/acme" - #- "./traefik_config:/etc/traefik:z" - labels: - - "traefik.enable=true" + traefik: + image: "traefik:latest" + container_name: "traefik" + restart: "unless-stopped" + ports: + - "80:80" + - "443:443" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + # - "./traefik_config:/etc/traefik" + - "acme:/etc/traefik/acme" + labels: + - "traefik.enable=true" - # middleware redirect - - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" - # global redirect to https - - "traefik.http.routers.redirs.rule=hostregexp(`{host:.+}`)" - - "traefik.http.routers.redirs.entrypoints=web" - - "traefik.http.routers.redirs.middlewares=redirect-to-https" + # middleware redirect + - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" + # global redirect to https + - "traefik.http.routers.redirs.rule=hostregexp(`{host:.+}`)" + - "traefik.http.routers.redirs.entrypoints=http" + - "traefik.http.routers.redirs.middlewares=redirect-to-https" - configs: - - source: dynamic.yml - target: /etc/traefik/dynamic.yml - - environment: - TRAEFIK_LOG_LEVEL: DEBUG - TRAEFIK_ENTRYPOINTS_WEB: true - TRAEFIK_ENTRYPOINTS_WEB_ADDRESS: ":80" - TRAEFIK_ENTRYPOINTS_WEB_HTTP_REDIRECTIONS_ENTRYPOINT_TO: websecure - - TRAEFIK_ENTRYPOINTS_WEBSECURE: true - TRAEFIK_ENTRYPOINTS_WEBSECURE_ADDRESS: ":443" - TRAEFIK_ENTRYPOINTS_WEBSECURE_HTTP_TLS_CERTRESOLVER: letsencrypt - #TRAEFIK_ENTRYPOINTS_WEBSECURE_HTTP_MIDDLEWARES: secureHeaders@file # if you want to enabled STS - - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT: true - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_EMAIL: # Set this to the email you want to receive certificate expiration emails for - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_KEYTYPE: EC384 - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_HTTPCHALLENGE: true - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_HTTPCHALLENGE_ENTRYPOINT: web - TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_STORAGE: "/etc/traefik/acme/acme.json" - - TRAEFIK_PROVIDERS_DOCKER: true - TRAEFIK_PROVIDERS_DOCKER_ENDPOINT: "unix:///var/run/docker.sock" - TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT: false - - TRAEFIK_PROVIDERS_FILE: true - TRAEFIK_PROVIDERS_FILE_FILENAME: "/etc/traefik/dynamic.yml" - -configs: - dynamic.yml: - content: | - # Optionally set STS headers, like in https://hstspreload.org - # http: - # middlewares: - # secureHeaders: - # headers: - # forceSTSHeader: true - # stsIncludeSubdomains: true - # stsPreload: true - # stsSeconds: 31536000 - tls: - options: - default: - cipherSuites: - - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 - minVersion: VersionTLS12 + networks: + - proxy volumes: db: @@ -151,5 +84,3 @@ volumes: networks: proxy: - -# vim: ts=2:sw=2:expandtab diff --git a/docs/deploying/docker-compose.yml b/docs/deploying/docker-compose.yml index fbb50e35..066c8fe1 100644 --- a/docs/deploying/docker-compose.yml +++ b/docs/deploying/docker-compose.yml @@ -1,34 +1,35 @@ -# Continuwuity +# conduwuit +version: '2.4' # uses '2.4' for cpuset services: homeserver: - ### If you already built the Continuwuity image with 'docker build' or want to use a registry image, + ### If you already built the conduwuit image with 'docker build' or want to use a registry image, ### then you are ready to go. - image: forgejo.ellis.link/continuwuation/continuwuity:latest + image: girlbossceo/conduwuit:latest restart: unless-stopped ports: - 8448:6167 volumes: - - db:/var/lib/continuwuity - #- ./continuwuity.toml:/etc/continuwuity.toml + - db:/var/lib/conduwuit + #- ./conduwuit.toml:/etc/conduwuit.toml environment: - CONTINUWUITY_SERVER_NAME: your.server.name # EDIT THIS - CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity - CONTINUWUITY_PORT: 6167 - CONTINUWUITY_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB - CONTINUWUITY_ALLOW_REGISTRATION: 'true' - CONTINUWUITY_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed. - #CONTINUWUITY_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true' - CONTINUWUITY_ALLOW_FEDERATION: 'true' - CONTINUWUITY_ALLOW_CHECK_FOR_UPDATES: 'true' - CONTINUWUITY_TRUSTED_SERVERS: '["matrix.org"]' - #CONTINUWUITY_LOG: warn,state_res=warn - CONTINUWUITY_ADDRESS: 0.0.0.0 - #CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above + CONDUWUIT_SERVER_NAME: your.server.name # EDIT THIS + CONDUWUIT_DATABASE_PATH: /var/lib/conduwuit + CONDUWUIT_DATABASE_BACKEND: rocksdb + CONDUWUIT_PORT: 6167 + CONDUWUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB + CONDUWUIT_ALLOW_REGISTRATION: 'true' + CONDUWUIT_ALLOW_FEDERATION: 'true' + CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true' + CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]' + #CONDUWUIT_LOG: warn,state_res=warn + CONDUWUIT_ADDRESS: 0.0.0.0 + #CONDUWUIT_CONFIG: './conduwuit.toml' # Uncomment if you mapped config toml above + #cpuset: "0-4" # Uncomment to limit to specific CPU cores # ### Uncomment if you want to use your own Element-Web App. ### Note: You need to provide a config.json for Element and you also need a second - ### Domain or Subdomain for the communication between Element and Continuwuity + ### Domain or Subdomain for the communication between Element and conduwuit ### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md # element-web: # image: vectorim/element-web:latest diff --git a/docs/deploying/docker.md b/docs/deploying/docker.md index a928d081..e6826768 100644 --- a/docs/deploying/docker.md +++ b/docs/deploying/docker.md @@ -1,117 +1,90 @@ -# Continuwuity for Docker +# conduwuit for Docker ## Docker -To run Continuwuity with Docker, you can either build the image yourself or pull it -from a registry. +To run conduwuit with Docker you can either build the image yourself or pull it from a registry. + ### Use a registry -OCI images for Continuwuity are available in the registries listed below. +OCI images for conduwuit are available in the registries listed below. -| Registry | Image | Notes | -| --------------- | --------------------------------------------------------------- | -----------------------| -| Forgejo Registry| [forgejo.ellis.link/continuwuation/continuwuity:latest][fj] | Latest tagged image. | -| Forgejo Registry| [forgejo.ellis.link/continuwuation/continuwuity:main][fj] | Main branch image. | +| Registry | Image | Size | Notes | +| --------------- | --------------------------------------------------------------- | ----------------------------- | ---------------------- | +| GitHub Registry | [ghcr.io/girlbossceo/conduwuit:latest][gh] | ![Image Size][shield-latest] | Stable tagged image. | +| GitLab Registry | [registry.gitlab.com/conduwuit/conduwuit:latest][gl] | ![Image Size][shield-latest] | Stable tagged image. | +| Docker Hub | [docker.io/girlbossceo/conduwuit:latest][dh] | ![Image Size][shield-latest] | Stable tagged image. | +| GitHub Registry | [ghcr.io/girlbossceo/conduwuit:main][gh] | ![Image Size][shield-main] | Stable main branch. | +| GitLab Registry | [registry.gitlab.com/conduwuit/conduwuit:main][gl] | ![Image Size][shield-main] | Stable main branch. | +| Docker Hub | [docker.io/girlbossceo/conduwuit:main][dh] | ![Image Size][shield-main] | Stable main branch. | + +[dh]: https://hub.docker.com/repository/docker/girlbossceo/conduwuit +[gh]: https://github.com/girlbossceo/conduwuit/pkgs/container/conduwuit +[gl]: https://gitlab.com/conduwuit/conduwuit/container_registry/6351657 +[shield-latest]: https://img.shields.io/docker/image-size/girlbossceo/conduwuit/latest +[shield-main]: https://img.shields.io/docker/image-size/girlbossceo/conduwuit/main -[fj]: https://forgejo.ellis.link/continuwuation/-/packages/container/continuwuity Use - ```bash -docker image pull $LINK +docker image pull ``` - to pull it to your machine. + ### Run -When you have the image, you can simply run it with +When you have the image you can simply run it with ```bash docker run -d -p 8448:6167 \ - -v db:/var/lib/continuwuity/ \ - -e CONTINUWUITY_SERVER_NAME="your.server.name" \ - -e CONTINUWUITY_ALLOW_REGISTRATION=false \ - --name continuwuity $LINK + -v db:/var/lib/conduwuit/ \ + -e CONDUIT_SERVER_NAME="your.server.name" \ + -e CONDUIT_DATABASE_BACKEND="rocksdb" \ + -e CONDUIT_ALLOW_REGISTRATION=false \ + -e CONDUIT_ALLOW_FEDERATION=true \ + -e CONDUIT_MAX_REQUEST_SIZE="40000000" \ + -e CONDUIT_TRUSTED_SERVERS="[\"matrix.org\"]" \ + -e CONDUIT_LOG="warn,ruma_state_res=warn" \ + --name conduit ``` -or you can use [Docker Compose](#docker-compose). +or you can use [docker compose](#docker-compose). -The `-d` flag lets the container run in detached mode. You may supply an -optional `continuwuity.toml` config file, the example config can be found -[here](../configuration/examples.md). You can pass in different env vars to -change config values on the fly. You can even configure Continuwuity completely by -using env vars. For an overview of possible values, please take a look at the -[`docker-compose.yml`](docker-compose.yml) file. +The `-d` flag lets the container run in detached mode. You may supply an optional `conduwuit.toml` config file, the example config can be found [here](../configuration.md). +You can pass in different env vars to change config values on the fly. You can even configure conduwuit completely by using env vars. For an overview of possible +values, please take a look at the [`docker-compose.yml`](docker-compose.yml) file. -If you just want to test Continuwuity for a short time, you can use the `--rm` -flag, which cleans up everything related to your container after you stop -it. +If you just want to test conduwuit for a short time, you can use the `--rm` flag, which will clean up everything related to your container after you stop it. ### Docker-compose -If the `docker run` command is not suitable for you or your setup, you can also use one -of the provided `docker-compose` files. +If the `docker run` command is not for you or your setup, you can also use one of the provided `docker-compose` files. -Depending on your proxy setup, you can use one of the following files: - -- If you already have a `traefik` instance set up, use -[`docker-compose.for-traefik.yml`](docker-compose.for-traefik.yml) -- If you don't have a `traefik` instance set up and would like to use it, use -[`docker-compose.with-traefik.yml`](docker-compose.with-traefik.yml) -- If you want a setup that works out of the box with `caddy-docker-proxy`, use -[`docker-compose.with-caddy.yml`](docker-compose.with-caddy.yml) and replace all -`example.com` placeholders with your own domain +Depending on your proxy setup, you can use one of the following files; +- If you already have a `traefik` instance set up, use [`docker-compose.for-traefik.yml`](docker-compose.for-traefik.yml) +- If you don't have a `traefik` instance set up (or any other reverse proxy), use [`docker-compose.with-traefik.yml`](docker-compose.with-traefik.yml) - For any other reverse proxy, use [`docker-compose.yml`](docker-compose.yml) -When picking the Traefik-related compose file, rename it to -`docker-compose.yml`, and rename the override file to -`docker-compose.override.yml`. Edit the latter with the values you want for your -server. +When picking the traefik-related compose file, rename it so it matches `docker-compose.yml`, and +rename the override file to `docker-compose.override.yml`. Edit the latter with the values you want +for your server. -When picking the `caddy-docker-proxy` compose file, it's important to first -create the `caddy` network before spinning up the containers: - -```bash -docker network create caddy -``` - -After that, you can rename it to `docker-compose.yml` and spin up the -containers! - -Additional info about deploying Continuwuity can be found [here](generic.md). +Additional info about deploying conduwuit can be found [here](generic.md). ### Build -Official Continuwuity images are built using **Docker Buildx** and the Dockerfile found at [`docker/Dockerfile`][dockerfile-path]. This approach uses common Docker tooling and enables efficient multi-platform builds. - -The resulting images are widely compatible with Docker and other container runtimes like Podman or containerd. - -The images *do not contain a shell*. They contain only the Continuwuity binary, required libraries, TLS certificates, and metadata. Please refer to the [`docker/Dockerfile`][dockerfile-path] for the specific details of the image composition. - -To build an image locally using Docker Buildx, you can typically run a command like: +To build the conduwuit image with docker-compose, you first need to open and modify the `docker-compose.yml` file. There you need to comment the `image:` option and uncomment the `build:` option. Then call docker compose with: ```bash -# Build for the current platform and load into the local Docker daemon -docker buildx build --load --tag continuwuity:latest -f docker/Dockerfile . - -# Example: Build for specific platforms and push to a registry. -# docker buildx build --platform linux/amd64,linux/arm64 --tag registry.io/org/continuwuity:latest -f docker/Dockerfile . --push - -# Example: Build binary optimized for the current CPU -# docker buildx build --load --tag continuwuity:latest --build-arg TARGET_CPU=native -f docker/Dockerfile . +docker compose up ``` -Refer to the Docker Buildx documentation for more advanced build options. - -[dockerfile-path]: ../../docker/Dockerfile +This will also start the container right afterwards, so if want it to run in detached mode, you also should use the `-d` flag. ### Run -If you have already built the image or want to use one from the registries, you -can start the container and everything else in the compose file in detached -mode with: +If you already have built the image or want to use one from the registries, you can just start the container and everything else in the compose file in detached mode with: ```bash docker compose up -d @@ -121,26 +94,20 @@ docker compose up -d ### Use Traefik as Proxy -As a container user, you probably know about Traefik. It is an easy-to-use -reverse proxy for making containerized apps and services available through the -web. With the two provided files, +As a container user, you probably know about Traefik. It is a easy to use reverse proxy for making +containerized app and services available through the web. With the two provided files, [`docker-compose.for-traefik.yml`](docker-compose.for-traefik.yml) (or [`docker-compose.with-traefik.yml`](docker-compose.with-traefik.yml)) and -[`docker-compose.override.yml`](docker-compose.override.yml), it is equally easy -to deploy and use Continuwuity, with a small caveat. If you have already looked at -the files, you should have seen the `well-known` service, which is the -small caveat. Traefik is simply a proxy and load balancer and cannot -serve any kind of content. For Continuwuity to federate, we need to either -expose ports `443` and `8448` or serve two endpoints: `.well-known/matrix/client` -and `.well-known/matrix/server`. +[`docker-compose.override.yml`](docker-compose.override.yml), it is equally easy to deploy +and use conduwuit, with a little caveat. If you already took a look at the files, then you should have +seen the `well-known` service, and that is the little caveat. Traefik is simply a proxy and +loadbalancer and is not able to serve any kind of content, but for conduwuit to federate, we need to +either expose ports `443` and `8448` or serve two endpoints `.well-known/matrix/client` and +`.well-known/matrix/server`. -With the service `well-known`, we use a single `nginx` container that serves -those two files. +With the service `well-known` we use a single `nginx` container that will serve those two files. -Alternatively, you can use Continuwuity's built-in delegation file capability. Set up the delegation files in the configuration file, and then proxy paths under `/.well-known/matrix` to continuwuity. For example, the label ``traefik.http.routers.continuwuity.rule=(Host(`matrix.ellis.link`) || (Host(`ellis.link`) && PathPrefix(`/.well-known/matrix`)))`` does this for the domain `ellis.link`. ## Voice communication See the [TURN](../turn.md) page. - -[nix-buildlayeredimage]: https://ryantm.github.io/nixpkgs/builders/images/dockertools/#ssec-pkgs-dockerTools-buildLayeredImage diff --git a/docs/deploying/freebsd.md b/docs/deploying/freebsd.md deleted file mode 100644 index c637e0d9..00000000 --- a/docs/deploying/freebsd.md +++ /dev/null @@ -1,5 +0,0 @@ -# Continuwuity for FreeBSD - -Continuwuity currently does not provide FreeBSD builds or FreeBSD packaging. However, Continuwuity does build and work on FreeBSD using the system-provided RocksDB. - -Contributions to get Continuwuity packaged for FreeBSD are welcome. diff --git a/docs/deploying/generic.md b/docs/deploying/generic.md index 9f5051f7..e23c75d4 100644 --- a/docs/deploying/generic.md +++ b/docs/deploying/generic.md @@ -1,251 +1,128 @@ # Generic deployment documentation -> ### Getting help +> ## Getting help > -> If you run into any problems while setting up Continuwuity, ask us in -> `#continuwuity:continuwuity.org` or [open an issue on -> Forgejo](https://forgejo.ellis.link/continuwuation/continuwuity/issues/new). +> If you run into any problems while setting up conduwuit, ask us +> in `#conduwuit:puppygock.gay` or [open an issue on GitHub](https://github.com/girlbossceo/conduwuit/issues/new). -## Installing Continuwuity +## Installing conduwuit -### Static prebuilt binary +You may simply download the binary that fits your machine. Run `uname -m` to see what you need. -You may simply download the binary that fits your machine architecture (x86_64 -or aarch64). Run `uname -m` to see what you need. +Prebuilt binaries can be downloaded from the latest tagged release [here](https://github.com/girlbossceo/conduwuit/releases/latest). -You can download prebuilt fully static musl binaries from the latest tagged -release [here](https://forgejo.ellis.link/continuwuation/continuwuity/releases/latest) or -from the `main` CI branch workflow artifact output. These also include Debian/Ubuntu -packages. +The latest tagged release also includes the Debian packages. -You can download these directly using curl. The `ci-bins` are CI workflow binaries organized by commit -hash/revision, and `releases` are tagged releases. Sort by descending last -modified date to find the latest. +Alternatively, you may compile the binary yourself. We recommend using [Lix](https://lix.systems) to build conduwuit as this has the most guaranteed +reproducibiltiy and easiest to get a build environment and output going. -These binaries have jemalloc and io_uring statically linked and included with -them, so no additional dynamic dependencies need to be installed. +Otherwise, follow standard Rust project build guides (installing git and cloning the repo, getting the Rust toolchain via rustup, installing LLVM toolchain + libclang, installing liburing for io_uring and RocksDB, etc). -For the **best** performance: if you are using an `x86_64` CPU made in the last ~15 years, -we recommend using the `-haswell-` optimized binaries. These set -`-march=haswell`, which provides the most compatible and highest performance with -optimized binaries. The database backend, RocksDB, benefits most from this as it -uses hardware-accelerated CRC32 hashing/checksumming, which is critical -for performance. +## Adding a conduwuit user -### Compiling +While conduwuit can run as any user it is better to use dedicated users for different services. This also allows +you to make sure that the file permissions are correctly set up. -Alternatively, you may compile the binary yourself. - -### Building with the Rust toolchain - -If wanting to build using standard Rust toolchains, make sure you install: - -- (On linux) `liburing-dev` on the compiling machine, and `liburing` on the target host -- (On linux) `pkg-config` on the compiling machine to allow finding `liburing` -- A C++ compiler and (on linux) `libclang` for RocksDB - -You can build Continuwuity using `cargo build --release`. - -### Building with Nix - -If you prefer, you can use Nix (or [Lix](https://lix.systems)) to build Continuwuity. This provides improved reproducibility and makes it easy to set up a build environment and generate output. This approach also allows for easy cross-compilation. - -You can run the `nix build -L .#static-x86_64-linux-musl-all-features` or -`nix build -L .#static-aarch64-linux-musl-all-features` commands based -on architecture to cross-compile the necessary static binary located at -`result/bin/conduwuit`. This is reproducible with the static binaries produced -in our CI. - -## Adding a Continuwuity user - -While Continuwuity can run as any user, it is better to use dedicated users for -different services. This also ensures that the file permissions -are set up correctly. - -In Debian, you can use this command to create a Continuwuity user: +In Debian or RHEL, you can use this command to create a conduwuit user: ```bash -sudo adduser --system continuwuity --group --disabled-login --no-create-home +sudo adduser --system conduwuit --group --disabled-login --no-create-home ``` -For distros without `adduser` (or where it's a symlink to `useradd`): +For distros without `adduser`: ```bash -sudo useradd -r --shell /usr/bin/nologin --no-create-home continuwuity +sudo useradd -r --shell /usr/bin/nologin --no-create-home conduwuit ``` ## Forwarding ports in the firewall or the router -Matrix's default federation port is 8448, and clients must use port 443. -If you would like to use only port 443 or a different port, you will need to set up -delegation. Continuwuity has configuration options for delegation, or you can configure -your reverse proxy to manually serve the necessary JSON files for delegation -(see the `[global.well_known]` config section). +conduwuit uses the ports 443 and 8448 both of which need to be open in the firewall. -If Continuwuity runs behind a router or in a container and has a different public -IP address than the host system, you need to forward these public ports directly -or indirectly to the port mentioned in the configuration. - -Note for NAT users: if you have trouble connecting to your server from inside -your network, check if your router supports "NAT -hairpinning" or "NAT loopback". - -If your router does not support this feature, you need to research doing local -DNS overrides and force your Matrix DNS records to use your local IP internally. -This can be done at the host level using `/etc/hosts`. If you need this to be -on the network level, consider something like NextDNS or Pi-Hole. +If conduwuit runs behind a router or in a container and has a different public IP address than the host system these public ports need to be forwarded directly or indirectly to the port mentioned in the config. ## Setting up a systemd service -You can find two example systemd units for Continuwuity -[on the configuration page](../configuration/examples.md#debian-systemd-unit-file). -You may need to change the `ExecStart=` path to match where you placed the Continuwuity -binary if it is not in `/usr/bin/conduwuit`. +The systemd unit for conduwuit can be found [here](../configuration.md#example-systemd-unit-file). You may need to change the `ExecStart=` path to where you placed the conduwuit binary. -On systems where rsyslog is used alongside journald (i.e. Red Hat-based distros -and OpenSUSE), put `$EscapeControlCharactersOnReceive off` inside -`/etc/rsyslog.conf` to allow color in logs. +## Creating the conduwuit configuration file -If you are using a different `database_path` than the systemd unit's -configured default `/var/lib/conduwuit`, you need to add your path to the -systemd unit's `ReadWritePaths=`. You can do this by either directly editing -`conduwuit.service` and reloading systemd, or by running `systemctl edit conduwuit.service` -and entering the following: +Now we need to create the conduwuit's config file in `/etc/conduwuit/conduwuit.toml`. The example config can be found at [conduwuit-example.toml](../configuration.md).**Please take a moment to read it. You need to change at least the server name.** -``` -[Service] -ReadWritePaths=/path/to/custom/database/path -``` - -## Creating the Continuwuity configuration file - -Now you need to create the Continuwuity configuration file in -`/etc/continuwuity/continuwuity.toml`. You can find an example configuration at -[conduwuit-example.toml](../configuration/examples.md). - -**Please take a moment to read the config. You need to change at least the -server name.** - -RocksDB is the only supported database backend. +RocksDB (`rocksdb`) is the only supported database backend. SQLite only exists for historical reasons and is not recommended. Any performance issues, storage issues, database issues, etc will not be assisted if using SQLite and you will be asked to migrate to RocksDB first. ## Setting the correct file permissions -If you are using a dedicated user for Continuwuity, you need to allow it to -read the configuration. To do this, run: +If you are using a dedicated user for conduwuit, you will need to allow it to read the config. To do that you can run this command on + +Debian or RHEL: ```bash sudo chown -R root:root /etc/conduwuit -sudo chmod -R 755 /etc/conduwuit +sudo chmod 755 /etc/conduwuit ``` If you use the default database path you also need to run this: ```bash sudo mkdir -p /var/lib/conduwuit/ -sudo chown -R continuwuity:continuwuity /var/lib/conduwuit/ +sudo chown -R conduwuit:conduwuit /var/lib/conduwuit/ sudo chmod 700 /var/lib/conduwuit/ ``` ## Setting up the Reverse Proxy -We recommend Caddy as a reverse proxy because it is trivial to use and handles TLS certificates, reverse proxy headers, etc. transparently with proper defaults. -For other software, please refer to their respective documentation or online guides. +Refer to the documentation or various guides online of your chosen reverse proxy software. A [Caddy](https://caddyserver.com/) example will be provided as this is the recommended reverse proxy for new users and is very trivial to use (handles TLS, reverse proxy headers, etc transparently with proper defaults). ### Caddy -After installing Caddy via your preferred method, create `/etc/caddy/conf.d/conduwuit_caddyfile` -and enter the following (substitute your actual server name): +Create `/etc/caddy/conf.d/conduwuit_caddyfile` and enter this (substitute for your server name). -```caddyfile +```caddy your.server.name, your.server.name:8448 { - # TCP reverse_proxy - reverse_proxy 127.0.0.1:6167 - # UNIX socket - #reverse_proxy unix//run/conduwuit/conduwuit.sock + # TCP + reverse_proxy 127.0.0.1:6167 + + # UNIX socket + #reverse_proxy unix//run/conduwuit/conduwuit.sock } ``` That's it! Just start and enable the service and you're set. ```bash -sudo systemctl enable --now caddy +$ sudo systemctl enable --now caddy ``` -### Other Reverse Proxies +## You're done! -As we prefer our users to use Caddy, we do not provide configuration files for other proxies. - -You will need to reverse proxy everything under the following routes: -- `/_matrix/` - core Matrix C-S and S-S APIs -- `/_conduwuit/` and/or `/_continuwuity/` - ad-hoc Continuwuity routes such as `/local_user_count` and -`/server_version` - -You can optionally reverse proxy the following individual routes: -- `/.well-known/matrix/client` and `/.well-known/matrix/server` if using -Continuwuity to perform delegation (see the `[global.well_known]` config section) -- `/.well-known/matrix/support` if using Continuwuity to send the homeserver admin -contact and support page (formerly known as MSC1929) -- `/` if you would like to see `hewwo from conduwuit woof!` at the root - -See the following spec pages for more details on these files: -- [`/.well-known/matrix/server`](https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixserver) -- [`/.well-known/matrix/client`](https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient) -- [`/.well-known/matrix/support`](https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixsupport) - -Examples of delegation: -- -- - -For Apache and Nginx there are many examples available online. - -Lighttpd is not supported as it appears to interfere with the `X-Matrix` Authorization -header, making federation non-functional. If you find a workaround, please share it so we can add it to this documentation. - -If using Apache, you need to use `nocanon` in your `ProxyPass` directive to prevent httpd from interfering with the `X-Matrix` header (note that Apache is not ideal as a general reverse proxy, so we discourage using it if alternatives are available). - -If using Nginx, you need to pass the request URI to Continuwuity using `$request_uri`, like this: -- `proxy_pass http://127.0.0.1:6167$request_uri;` -- `proxy_pass http://127.0.0.1:6167;` - -Nginx users need to increase the `client_max_body_size` setting (default is 1M) to match the -`max_request_size` defined in conduwuit.toml. - -## You're done - -Now you can start Continuwuity with: +Now you can start conduwuit with: ```bash -sudo systemctl start conduwuit +$ sudo systemctl start conduwuit ``` Set it to start automatically when your system boots with: ```bash -sudo systemctl enable conduwuit +$ sudo systemctl enable conduwuit ``` ## How do I know it works? -You can open [a Matrix client](https://matrix.org/ecosystem/clients), enter your -homeserver address, and try to register. +You can open [a Matrix client](https://matrix.org/ecosystem/clients), enter your homeserver and try to register. -You can also use these commands as a quick health check (replace -`your.server.name`). +You can also use these commands as a quick health check. ```bash -curl https://your.server.name/_conduwuit/server_version +$ curl https://your.server.name/_conduwuit/server_version # If using port 8448 -curl https://your.server.name:8448/_conduwuit/server_version - -# If federation is enabled -curl https://your.server.name:8448/_matrix/federation/v1/version +$ curl https://your.server.name:8448/_conduwuit/server_version ``` -- To check if your server can communicate with other homeservers, use the -[Matrix Federation Tester](https://federationtester.matrix.org/). If you can -register but cannot join federated rooms, check your configuration and verify -that port 8448 is open and forwarded correctly. +- To check if your server can talk with other homeservers, you can use the [Matrix Federation Tester](https://federationtester.matrix.org/). + If you can register but cannot join federated rooms check your config again and also check if the port 8448 is open and forwarded correctly. # What's next? @@ -255,5 +132,4 @@ For Audio/Video call functionality see the [TURN Guide](../turn.md). ## Appservices -If you want to set up an appservice, take a look at the [Appservice -Guide](../appservices.md). +If you want to set up an appservice, take a look at the [Appservice Guide](../appservices.md). diff --git a/docs/deploying/kubernetes.md b/docs/deploying/kubernetes.md deleted file mode 100644 index 2750e3fb..00000000 --- a/docs/deploying/kubernetes.md +++ /dev/null @@ -1,9 +0,0 @@ -# Continuwuity for Kubernetes - -Continuwuity doesn't support horizontal scalability or distributed loading -natively. However, a community-maintained Helm Chart is available here to run -conduwuit on Kubernetes: - -This should be compatible with Continuwuity, but you will need to change the image reference. - -If changes need to be made, please reach out to the maintainer, as this is not maintained or controlled by the Continuwuity maintainers. diff --git a/docs/deploying/nixos.md b/docs/deploying/nixos.md index 29517416..6074e2a7 100644 --- a/docs/deploying/nixos.md +++ b/docs/deploying/nixos.md @@ -1,130 +1,31 @@ -# Continuwuity for NixOS +# conduwuit for NixOS -NixOS packages Continuwuity as `matrix-continuwuity`. This package includes both the Continuwuity software and a dedicated NixOS module for configuration and deployment. +conduwuit can be acquired by [Lix][lix] from various places: -## Installation methods +* The `flake.nix` at the root of the repo +* The `default.nix` at the root of the repo +* From conduwuit's binary cache -You can acquire Continuwuity with Nix (or [Lix][lix]) from these sources: +A binary cache for conduwuit that the CI/CD publishes to is available at the +following places (both are the same just different names): +``` +https://attic.kennel.juneis.dog/conduit +conduit:Isq8FGyEC6FOXH6nD+BOeAA+bKp6X6UIbupSlGEPuOg= -* Directly from Nixpkgs using the official package (`pkgs.matrix-continuwuity`) -* The `flake.nix` at the root of the Continuwuity repo -* The `default.nix` at the root of the Continuwuity repo - -## NixOS module - -Continuwuity now has an official NixOS module that simplifies configuration and deployment. The module is available in Nixpkgs as `services.matrix-continuwuity` from NixOS 25.05. - -Here's a basic example of how to use the module: - -```nix -{ config, pkgs, ... }: - -{ - services.matrix-continuwuity = { - enable = true; - settings = { - global = { - server_name = "example.com"; - # Listening on localhost by default - # address and port are handled automatically - allow_registration = false; - allow_encryption = true; - allow_federation = true; - trusted_servers = [ "matrix.org" ]; - }; - }; - }; -} +https://attic.kennel.juneis.dog/conduwuit +conduwuit:lYPVh7o1hLu1idH4Xt2QHaRa49WRGSAqzcfFd94aOTw= ``` -### Available options +If specifying a URL in your flake, please use the GitHub remote: `github:girlbossceo/conduwuit` -The NixOS module provides these configuration options: +The `flake.nix` and `default.nix` do not (currently) provide a NixOS module, so +(for now) [`services.matrix-conduit`][module] from Nixpkgs should be used to +configure conduwuit. -- `enable`: Enable the Continuwuity service -- `user`: The user to run Continuwuity as (defaults to "continuwuity") -- `group`: The group to run Continuwuity as (defaults to "continuwuity") -- `extraEnvironment`: Extra environment variables to pass to the Continuwuity server -- `package`: The Continuwuity package to use -- `settings`: The Continuwuity configuration (in TOML format) - -Use the `settings` option to configure Continuwuity itself. See the [example configuration file](../configuration/examples.md#example-configuration) for all available options. - -### UNIX sockets - -The NixOS module natively supports UNIX sockets through the `global.unix_socket_path` option. When using UNIX sockets, set `global.address` to `null`: - -```nix -services.matrix-continuwuity = { - enable = true; - settings = { - global = { - server_name = "example.com"; - address = null; # Must be null when using unix_socket_path - unix_socket_path = "/run/continuwuity/continuwuity.sock"; - unix_socket_perms = 660; # Default permissions for the socket - # ... - }; - }; -}; -``` - -The module automatically sets the correct `RestrictAddressFamilies` in the systemd service configuration to allow access to UNIX sockets. - -### RocksDB database - -Continuwuity exclusively uses RocksDB as its database backend. The system configures the database path automatically to `/var/lib/continuwuity/` and you cannot change it due to the service's reliance on systemd's StateDir. - -If you're migrating from Conduit with SQLite, use this [tool to migrate a Conduit SQLite database to RocksDB](https://github.com/ShadowJonathan/conduit_toolbox/). - -### jemalloc and hardened profile - -Continuwuity uses jemalloc by default. This may interfere with the [`hardened.nix` profile][hardened.nix] because it uses `scudo` by default. Either disable/hide `scudo` from Continuwuity or disable jemalloc like this: - -```nix -services.matrix-continuwuity = { - enable = true; - package = pkgs.matrix-continuwuity.override { - enableJemalloc = false; - }; - # ... -}; -``` - -## Upgrading from Conduit - -If you previously used Conduit with the `services.matrix-conduit` module: - -1. Ensure your Conduit uses the RocksDB backend, or migrate from SQLite using the [migration tool](https://github.com/ShadowJonathan/conduit_toolbox/) -2. Switch to the new module by changing `services.matrix-conduit` to `services.matrix-continuwuity` in your configuration -3. Update any custom configuration to match the new module's structure - -## Reverse proxy configuration - -You'll need to set up a reverse proxy (like nginx or caddy) to expose Continuwuity to the internet. Configure your reverse proxy to forward requests to `/_matrix` on port 443 and 8448 to your Continuwuity instance. - -Here's an example nginx configuration: - -```nginx -server { - listen 443 ssl; - listen [::]:443 ssl; - listen 8448 ssl; - listen [::]:8448 ssl; - - server_name example.com; - - # SSL configuration here... - - location /_matrix/ { - proxy_pass http://127.0.0.1:6167$request_uri; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } -} -``` +If you want to run the latest code, you should get Conduwuit from the `flake.nix` +or `default.nix` and set [`services.matrix-conduit.package`][package] +appropriately. [lix]: https://lix.systems/ -[hardened.nix]: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/hardened.nix +[module]: https://search.nixos.org/options?channel=unstable&query=services.matrix-conduit +[package]: https://search.nixos.org/options?channel=unstable&query=services.matrix-conduit.package diff --git a/docs/development.md b/docs/development.md index dd587da4..18cd6c2e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,140 +1,23 @@ # Development Information about developing the project. If you are only interested in using -it, you can safely ignore this page. If you plan on contributing, see the -[contributor's guide](./contributing.md) and [code style guide](./development/code_style.md). - -## Continuwuity project layout - -Continuwuity uses a collection of sub-crates, packages, or workspace members -that indicate what each general area of code is for. All of the workspace -members are under `src/`. The workspace definition is at the top level / root -`Cargo.toml`. - -The crate names are generally self-explanatory: -- `admin` is the admin room -- `api` is the HTTP API, Matrix C-S and S-S endpoints, etc -- `core` is core Continuwuity functionality like config loading, error definitions, -global utilities, logging infrastructure, etc -- `database` is RocksDB methods, helpers, RocksDB config, and general database definitions, -utilities, or functions -- `macros` are Continuwuity Rust [macros][macros] like general helper macros, logging -and error handling macros, and [syn][syn] and [procedural macros][proc-macro] -used for admin room commands and others -- `main` is the "primary" sub-crate. This is where the `main()` function lives, -tokio worker and async initialisation, Sentry initialisation, [clap][clap] init, -and signal handling. If you are adding new [Rust features][features], they *must* -go here. -- `router` is the webserver and request handling bits, using axum, tower, tower-http, -hyper, etc, and the [global server state][state] to access `services`. -- `service` is the high-level database definitions and functions for data, -outbound/sending code, and other business logic such as media fetching. - -It is highly unlikely you will ever need to add a new workspace member, but -if you truly find yourself needing to, we recommend reaching out to us in -the Matrix room for discussions about it beforehand. - -The primary inspiration for this design was apart of hot reloadable development, -to support "Continuwuity as a library" where specific parts can simply be swapped out. -There is evidence Conduit wanted to go this route too as `axum` is technically an -optional feature in Conduit, and can be compiled without the binary or axum library -for handling inbound web requests; but it was never completed or worked. - -See the Rust documentation on [Workspaces][workspaces] for general questions -and information on Cargo workspaces. - -## Adding compile-time [features][features] - -If you'd like to add a compile-time feature, you must first define it in -the `main` workspace crate located in `src/main/Cargo.toml`. The feature must -enable a feature in the other workspace crate(s) you intend to use it in. Then -the said workspace crate(s) must define the feature there in its `Cargo.toml`. - -So, if this is adding a feature to the API such as `woof`, you define the feature -in the `api` crate's `Cargo.toml` as `woof = []`. The feature definition in `main`'s -`Cargo.toml` will be `woof = ["conduwuit-api/woof"]`. - -The rationale for this is due to Rust / Cargo not supporting -["workspace level features"][9], we must make a choice of; either scattering -features all over the workspace crates, making it difficult for anyone to add -or remove default features; or define all the features in one central workspace -crate that propagate down/up to the other workspace crates. It is a Cargo pitfall, -and we'd like to see better developer UX in Rust's Workspaces. - -Additionally, the definition of one single place makes "feature collection" in our -Nix flake a million times easier instead of collecting and deduping them all from -searching in all the workspace crates' `Cargo.toml`s. Though we wouldn't need to -do this if Rust supported workspace-level features to begin with. - -## List of forked dependencies - -During Continuwuity (and prior projects) development, we have had to fork some dependencies to support our use-cases. -These forks exist for various reasons including features that upstream projects won't accept, -faster-paced development, Continuwuity-specific usecases, or lack of time to upstream changes. - -All forked dependencies are maintained under the [continuwuation organization on Forgejo](https://forgejo.ellis.link/continuwuation): - -- [ruwuma][continuwuation-ruwuma] - Fork of [ruma/ruma][ruma] with various performance improvements, more features and better client/server interop -- [rocksdb][continuwuation-rocksdb] - Fork of [facebook/rocksdb][rocksdb] via [`@zaidoon1`][8] with liburing build fixes and GCC debug build fixes -- [jemallocator][continuwuation-jemallocator] - Fork of [tikv/jemallocator][jemallocator] fixing musl builds, suspicious code, - and adding support for redzones in Valgrind -- [rustyline-async][continuwuation-rustyline-async] - Fork of [zyansheep/rustyline-async][rustyline-async] with tab completion callback - and `CTRL+\` signal quit event for Continuwuity console CLI -- [rust-rocksdb][continuwuation-rust-rocksdb] - Fork of [rust-rocksdb/rust-rocksdb][rust-rocksdb] fixing musl build issues, - removing unnecessary `gtest` include, and using our RocksDB and jemallocator forks -- [tracing][continuwuation-tracing] - Fork of [tokio-rs/tracing][tracing] implementing `Clone` for `EnvFilter` to - support dynamically changing tracing environments +it, you can safely ignore this section. If you plan on contributing, see the +[contributor's guide](contributing.md). ## Debugging with `tokio-console` -[`tokio-console`][7] can be a useful tool for debugging and profiling. To make a -`tokio-console`-enabled build of Continuwuity, enable the `tokio_console` feature, -disable the default `release_max_log_level` feature, and set the `--cfg -tokio_unstable` flag to enable experimental tokio APIs. A build might look like -this: +[`tokio-console`][1] can be a useful tool for debugging and profiling. To make +a `tokio-console`-enabled build of Conduwuit, enable the `tokio_console` feature, +disable the default `release_max_log_level` feature, and set the +`--cfg tokio_unstable` flag to enable experimental tokio APIs. A build might +look like this: ```bash -RUSTFLAGS="--cfg tokio_unstable" cargo +nightly build \ +RUSTFLAGS="--cfg tokio_unstable" cargo build \ --release \ --no-default-features \ - --features=systemd,element_hacks,gzip_compression,brotli_compression,zstd_compression,tokio_console + --features + backend_rocksdb,systemd,element_hacks,sentry_telemetry,gzip_compression,brotli_compression,zstd_compression,tokio_console ``` -You will also need to enable the `tokio_console` config option in Continuwuity when -starting it. This was due to tokio-console causing gradual memory leak/usage -if left enabled. - -## Building Docker Images - -To build a Docker image for Continuwuity, use the standard Docker build command: - -```bash -docker build -f docker/Dockerfile . -``` - -The image can be cross-compiled for different architectures. - -[continuwuation-ruwuma]: https://forgejo.ellis.link/continuwuation/ruwuma -[continuwuation-rocksdb]: https://forgejo.ellis.link/continuwuation/rocksdb -[continuwuation-jemallocator]: https://forgejo.ellis.link/continuwuation/jemallocator -[continuwuation-rustyline-async]: https://forgejo.ellis.link/continuwuation/rustyline-async -[continuwuation-rust-rocksdb]: https://forgejo.ellis.link/continuwuation/rust-rocksdb -[continuwuation-tracing]: https://forgejo.ellis.link/continuwuation/tracing - -[ruma]: https://github.com/ruma/ruma/ -[rocksdb]: https://github.com/facebook/rocksdb/ -[jemallocator]: https://github.com/tikv/jemallocator/ -[rustyline-async]: https://github.com/zyansheep/rustyline-async/ -[rust-rocksdb]: https://github.com/rust-rocksdb/rust-rocksdb/ -[tracing]: https://github.com/tokio-rs/tracing/ - -[7]: https://docs.rs/tokio-console/latest/tokio_console/ -[8]: https://github.com/zaidoon1/ -[9]: https://github.com/rust-lang/cargo/issues/12162 -[workspaces]: https://doc.rust-lang.org/cargo/reference/workspaces.html -[macros]: https://doc.rust-lang.org/book/ch19-06-macros.html -[syn]: https://docs.rs/syn/latest/syn/ -[proc-macro]: https://doc.rust-lang.org/reference/procedural-macros.html -[clap]: https://docs.rs/clap/latest/clap/ -[features]: https://doc.rust-lang.org/cargo/reference/features.html -[state]: https://docs.rs/axum/latest/axum/extract/struct.State.html +[1]: https://docs.rs/tokio-console/latest/tokio_console/ diff --git a/docs/development/assets/libraries.png b/docs/development/assets/libraries.png deleted file mode 100644 index e8edf878..00000000 Binary files a/docs/development/assets/libraries.png and /dev/null differ diff --git a/docs/development/assets/reload_order.png b/docs/development/assets/reload_order.png deleted file mode 100644 index 18eaa3e4..00000000 Binary files a/docs/development/assets/reload_order.png and /dev/null differ diff --git a/docs/development/code_style.md b/docs/development/code_style.md deleted file mode 100644 index 7fa9d6bb..00000000 --- a/docs/development/code_style.md +++ /dev/null @@ -1,331 +0,0 @@ -# Code Style Guide - -This guide outlines the coding standards and best practices for Continuwuity development. These guidelines help avoid bugs and maintain code consistency, readability, and quality across the project. - -These guidelines apply to new code on a best-effort basis. When modifying existing code, follow existing patterns in the immediate area you're changing and then gradually improve code style when making substantial changes. - -## General Principles - -- **Clarity over cleverness**: Write code that is easy to understand and maintain -- **Consistency**: Pragmatically follow existing patterns in the codebase, rather than adding new dependencies. -- **Safety**: Prefer safe, explicit code over unsafe code with implicit requirements -- **Performance**: Consider performance implications, but not at the expense of correctness or maintainability - -## Formatting and Linting - -All code must satisfy lints (clippy, rustc, rustdoc, etc) and be formatted using **nightly** rustfmt (`cargo +nightly fmt`). Many of the `rustfmt.toml` features depend on the nightly toolchain. - -If you need to allow a lint, ensure it's either obvious why (e.g. clippy saying redundant clone but it's actually required) or add a comment explaining the reason. Do not write inefficient code just to satisfy lints. If a lint is wrong and provides a less efficient solution, allow the lint and mention that in a comment. - -If making large formatting changes across unrelated files, create a separate commit so it can be added to the `.git-blame-ignore-revs` file. - -## Rust-Specific Guidelines - -### Naming Conventions - -Follow standard Rust naming conventions as outlined in the [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/naming.html): - -- Use `snake_case` for functions, variables, and modules -- Use `PascalCase` for types, traits, and enum variants -- Use `SCREAMING_SNAKE_CASE` for constants and statics -- Use descriptive names that clearly indicate purpose - -```rs -// Good -fn process_user_request(user_id: &UserId) -> Result { ... } - -const MAX_RETRY_ATTEMPTS: usize = 3; - -struct UserSession { - session_id: String, - created_at: SystemTime, -} - -// Avoid -fn proc_reqw(id: &str) -> Result { ... } -``` - -### Error Handling - -- Use `Result` for operations that can fail -- Prefer specific error types over generic ones -- Use `?` operator for error propagation -- Provide meaningful error messages -- If needed, create or use an error enum. - -```rs -// Good -fn parse_server_name(input: &str) -> Result { - ServerName::parse(input) - .map_err(|_| InvalidServerNameError::new(input)) -} - -// Avoid -fn parse_server_name(input: &str) -> Result> { - Ok(ServerName::parse(input).unwrap()) -} -``` - -### Option Handling - -- Prefer explicit `Option` handling over unwrapping -- Use combinators like `map`, `and_then`, `unwrap_or_else` when appropriate - -```rs -// Good -let display_name = user.display_name - .as_ref() - .map(|name| name.trim()) - .filter(|name| !name.is_empty()) - .unwrap_or(&user.localpart); - -// Avoid -let display_name = if user.display_name.is_some() { - user.display_name.as_ref().unwrap() -} else { - &user.localpart -}; -``` - -## Logging Guidelines - -### Structured Logging - -**Always use structured logging instead of string interpolation.** This improves log parsing, filtering, and observability. - -```rs -// Good - structured parameters -debug!( - room_id = %room_id, - user_id = %user_id, - event_type = ?event.event_type(), - "Processing room event" -); - -info!( - server_name = %server_name, - response_time_ms = response_time.as_millis(), - "Federation request completed successfully" -); - -// Avoid - string interpolation -debug!("Processing room event for {room_id} from {user_id}"); -info!("Federation request to {server_name} took {response_time:?}"); -``` - -### Log Levels - -Use appropriate log levels: - -- `error!`: Unrecoverable errors that affect functionality -- `warn!`: Potentially problematic situations that don't stop execution -- `info!`: General information about application flow -- `debug!`: Detailed information for debugging -- `trace!`: Very detailed information, typically only useful during development - -Keep in mind the frequency that the log will be reached, and the relevancy to a server operator. - -```rs -// Good -error!( - error = %err, - room_id = %room_id, - "Failed to send event to room" -); - -warn!( - server_name = %server_name, - attempt = retry_count, - "Federation request failed, retrying" -); - -info!( - user_id = %user_id, - "User registered successfully" -); - -debug!( - event_id = %event_id, - auth_events = ?auth_event_ids, - "Validating event authorization" -); -``` - -### Sensitive Information - -Never log sensitive information such as: -- Access tokens -- Passwords -- Private keys -- Personal user data (unless specifically needed for debugging) - -```rs -// Good -debug!( - user_id = %user_id, - session_id = %session_id, - "Processing authenticated request" -); - -// Avoid -debug!( - user_id = %user_id, - access_token = %access_token, - "Processing authenticated request" -); -``` - -## Lock Management - -### Explicit Lock Scopes - -**Always use closure guards instead of implicitly dropped guards.** This makes lock scopes explicit and helps prevent deadlocks. - -Use the `WithLock` trait from `core::utils::with_lock`: - -```rs -use conduwuit::utils::with_lock::WithLock; - -// Good - explicit closure guard -shared_data.with_lock(|data| { - data.counter += 1; - data.last_updated = SystemTime::now(); - // Lock is explicitly released here -}); - -// Avoid - implicit guard -{ - let mut data = shared_data.lock().unwrap(); - data.counter += 1; - data.last_updated = SystemTime::now(); - // Lock released when guard goes out of scope - less explicit -} -``` - -For async contexts, use the async variant: - -```rs -use conduwuit::utils::with_lock::WithLockAsync; - -// Good - async closure guard -async_shared_data.with_lock(|data| { - data.process_async_update(); -}).await; -``` - -### Lock Ordering - -When acquiring multiple locks, always acquire them in a consistent order to prevent deadlocks: - -```rs -// Good - consistent ordering (e.g., by memory address or logical hierarchy) -let locks = [&lock_a, &lock_b, &lock_c]; -locks.sort_by_key(|lock| lock as *const _ as usize); - -for lock in locks { - lock.with_lock(|data| { - // Process data - }); -} - -// Avoid - inconsistent ordering that can cause deadlocks -lock_b.with_lock(|data_b| { - lock_a.with_lock(|data_a| { - // Deadlock risk if another thread acquires in A->B order - }); -}); -``` - -## Documentation - -### Code Comments - -- Reference related documentation or parts of the specification -- When a task has multiple ways of being acheved, explain your reasoning for your decision -- Update comments when code changes - -```rs -/// Processes a federation request with automatic retries and backoff. -/// -/// Implements exponential backoff to handle temporary -/// network issues and server overload gracefully. -pub async fn send_federation_request( - destination: &ServerName, - request: FederationRequest, -) -> Result { - // Retry with exponential backoff because federation can be flaky - // due to network issues or temporary server overload - let mut retry_delay = Duration::from_millis(100); - - for attempt in 1..=MAX_RETRIES { - match try_send_request(destination, &request).await { - Ok(response) => return Ok(response), - Err(err) if err.is_retriable() && attempt < MAX_RETRIES => { - warn!( - destination = %destination, - attempt = attempt, - error = %err, - retry_delay_ms = retry_delay.as_millis(), - "Federation request failed, retrying" - ); - - tokio::time::sleep(retry_delay).await; - retry_delay *= 2; // Exponential backoff - } - Err(err) => return Err(err), - } - } - - unreachable!("Loop should have returned or failed by now") -} -``` - -### Async Patterns - -- Use `async`/`await` appropriately -- Avoid blocking operations in async contexts -- Consider using `tokio::task::spawn_blocking` for CPU-intensive work - -```rs -// Good - non-blocking async operation -pub async fn fetch_user_profile( - &self, - user_id: &UserId, -) -> Result { - let profile = self.db - .get_user_profile(user_id) - .await?; - - Ok(profile) -} - -// Good - CPU-intensive work moved to blocking thread -pub async fn generate_thumbnail( - &self, - image_data: Vec, -) -> Result, Error> { - tokio::task::spawn_blocking(move || { - image::generate_thumbnail(image_data) - }) - .await - .map_err(|_| Error::TaskJoinError)? -} -``` - -## Inclusivity and Diversity Guidelines - -All code and documentation must be written with inclusivity and diversity in mind. This ensures our software is welcoming and accessible to all users and contributors. Follow the [Google guide on writing inclusive code and documentation](https://developers.google.com/style/inclusive-documentation) for comprehensive guidance. - -The following types of language are explicitly forbidden in all code, comments, documentation, and commit messages: - -**Ableist language:** Avoid terms like "sanity check", "crazy", "insane", "cripple", or "blind to". Use alternatives like "validation", "unexpected", "disable", or "unaware of". - -**Socially-charged technical terms:** Replace overly divisive terminology with neutral alternatives: -- "whitelist/blacklist" โ†’ "allowlist/denylist" or "permitted/blocked" -- "master/slave" โ†’ "primary/replica", "controller/worker", or "parent/child" - -When working with external dependencies that use non-inclusive terminology, avoid propagating them in your own APIs and variable names. - -Use diverse examples in documentation that avoid culturally-specific references, assumptions about user demographics, or unnecessarily gendered language. Design with accessibility and inclusivity in mind by providing clear error messages and considering diverse user needs. - -This software is intended to be used by everyone regardless of background, identity, or ability. Write code and documentation that reflects this commitment to inclusivity. diff --git a/docs/development/hot_reload.md b/docs/development/hot_reload.md deleted file mode 100644 index eabf21c3..00000000 --- a/docs/development/hot_reload.md +++ /dev/null @@ -1,200 +0,0 @@ -# Hot Reloading ("Live" Development) - -Note that hot reloading has not been refactored in quite a while and is not -guaranteed to work at this time. - -### Summary - -When developing in debug-builds with the nightly toolchain, Continuwuity is modular -using dynamic libraries and various parts of the application are hot-reloadable -while the server is running: http api handlers, admin commands, services, -database, etc. These are all split up into individual workspace crates as seen -in the `src/` directory. Changes to sourcecode in a crate rebuild that crate and -subsequent crates depending on it. Reloading then occurs for the changed crates. - -Release builds still produce static binaries which are unaffected. Rust's -soundness guarantees are in full force. Thus you cannot hot-reload release -binaries. - -### Requirements - -Currently, this development setup only works on x86_64 and aarch64 Linux glibc. -[musl explicitly does not support hot reloadable libraries, and does not -implement `dlclose`][2]. macOS does not fully support our usage of `RTLD_GLOBAL` -possibly due to some thread-local issues. [This Rust issue][3] may be of -relevance, specifically [this comment][4]. It may be possible to get it working -on only very modern macOS versions such as at least Sonoma, as currently loading -dylibs is supported, but not unloading them in our setup, and the cited comment -mentions an Apple WWDC confirming there have been TLS changes to somewhat make -this possible. - -As mentioned above this requires the nightly toolchain. This is due to reliance -on various Cargo.toml features that are only available on nightly, most -specifically `RUSTFLAGS` in Cargo.toml. Some of the implementation could also be -simpler based on other various nightly features. We hope lots of nightly -features start making it out of nightly sooner as there have been dozens of very -helpful features that have been stuck in nightly ("unstable") for at least 5+ -years that would make this simpler. We encourage greater community consensus to -move these features into stability. - -This currently only works on x86_64/aarch64 Linux with a glibc C library. musl C -library, macOS, and likely other host architectures are not supported (if other -architectures work, feel free to let us know and/or make a PR updating this). -This should work on GNU ld and lld (rust-lld) and gcc/clang, however if you -happen to have linker issues it's recommended to try using `mold` or `gold` -linkers, and please let us know in the [Continuwuity Matrix room][7] the linker -error and what linker solved this issue so we can figure out a solution. Ideally -there should be minimal friction to using this, and in the future a build script -(`build.rs`) may be suitable to making this easier to use if the capabilities -allow us. - -### Usage - -As of 19 May 2024, the instructions for using this are: - -0. Have patience. Don't hesitate to join the [Continuwuity Matrix room][7] to - receive help using this. As indicated by the various rustflags used and some -of the interesting issues linked at the bottom, this is definitely not something -the Rust ecosystem or toolchain is used to doing. - -1. Install the nightly toolchain using rustup. You may need to use `rustup - override set nightly` in your local Continuwuity directory, or use `cargo -+nightly` for all actions. - -2. Uncomment `cargo-features` at the top level / root Cargo.toml - -3. Scroll down to the `# Developer profile` section and uncomment ALL the - rustflags for each dev profile and their respective packages. - -4. In each workspace crate's Cargo.toml (everything under `src/*` AND - `deps/rust-rocksdb/Cargo.toml`), uncomment the `dylib` crate type under -`[lib]`. - -5. Due to [this rpath issue][5], you must export the `LD_LIBRARY_PATH` - environment variable to your nightly Rust toolchain library directory. If -using rustup (hopefully), use this: `export -LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/` - -6. Start the server. You can use `cargo +nightly run` for this along with the - standard. - -7. Make some changes where you need to. - -8. In a separate terminal window in the same directory (or using a terminal - multiplexer like tmux), run the *build* Cargo command `cargo +nightly build`. - Cargo should only rebuild what was changed / what's necessary, so it should - not be rebuilding all the crates. - -9. In your Continuwuity server terminal, hit/send `CTRL+C` signal. This will tell - Continuwuity to find which libraries need to be reloaded, and reloads them as - necessary. - -10. If there were no errors, it will tell you it successfully reloaded `#` - modules, and your changes should now be visible. Repeat 7 - 9 as needed. - -To shutdown Continuwuity in this setup, hit/send `CTRL+\`. Normal builds still -shutdown with `CTRL+C` as usual. - -Steps 1 - 5 are the initial first-time steps for using this. To remove the hot -reload setup, revert/comment all the Cargo.toml changes. - -As mentioned in the requirements section, if you happen to have some linker -issues, try using the `-fuse-ld=` rustflag and specify mold or gold in all the -`rustflags` definitions in the top level Cargo.toml, and please let us know in -the [Continuwuity Matrix room][7] the problem. mold can be installed typically -through your distro, and gold is provided by the binutils package. - -It's possible a helper script can be made to do all of this, or most preferably -a specially made build script (build.rs). `cargo watch` support will be -implemented soon which will eliminate the need to manually run `cargo build` all -together. - -### Addendum - -Conduit was inherited as a single crate without modularity or reloading in its -design. Reasonable partitioning and abstraction allowed a split into several -crates, though many circular dependencies had to be corrected. The resulting -crates now form a directed graph as depicted in figures below. The interfacing -between these crates is still extremely broad which is not mitigable. - -Initially [hot_lib_reload][6] was investigated but found appropriate for a -project designed with modularity through limited interfaces, not a large and -complex existing codebase. Instead a bespoke solution built directly on -[libloading][8] satisfied our constraints. This required relatively minimal -modifications and zero maintenance burden compared to what would be required -otherwise. The technical difference lies with relocation processing: we leverage -global bindings (`RTLD_GLOBAL`) in a very intentional way. Most libraries and -off-the-shelf module systems (such as [hot_lib_reload][6]) restrict themselves -to local bindings (`RTLD_LOCAL`). This allows them to release software to -multiple platforms with much greater consistency, but at the cost of burdening -applications to explicitly manage these bindings. In our case with an optional -feature for developers, we shrug any such requirement to enjoy the cost/benefit -on platforms where global relocations are properly cooperative. - -To make use of `RTLD_GLOBAL` the application has to be oriented as a directed -acyclic graph. The primary rule is simple and illustrated in the figure below: -**no crate is allowed to call a function or use a variable from a crate below -it.** - -![Continuwuity's dynamic library setup diagram - created by Jason -Volk](assets/libraries.png) - -When a symbol is referenced between crates they become bound: **crates cannot be -unloaded until their calling crates are first unloaded.** Thus we start the -reloading process from the crate which has no callers. There is a small problem -though: the first crate is called by the base executable itself! This is solved -by using an `RTLD_LOCAL` binding for just one link between the main executable -and the first crate, freeing the executable from all modules as no global -binding ever occurs between them. - -![Continuwuity's reload and load order diagram - created by Jason -Volk](assets/reload_order.png) - -Proper resource management is essential for reliable reloading to occur. This is -a very basic ask in RAII-idiomatic Rust and the exposure to reloading hazards is -remarkably low, generally stemming from poor patterns and practices. -Unfortunately static analysis doesn't enforce reload-safety programmatically -(though it could one day), for now hazards can be avoided by knowing a few basic -do's and dont's: - -1. Understand that code is memory. Just like one is forbidden from referencing - free'd memory, one must not transfer control to free'd code. Exposure to this -is primarily from two things: - - - Callbacks, which this project makes very little use of. - - Async tasks, which are addressed below. - -2. Tie all resources to a scope or object lifetime with greatest possible -symmetry (locality). For our purposes this applies to code resources, which -means async blocks and tokio tasks. - - - **Never spawn a task without receiving and storing its JoinHandle**. - - **Always wait on join handles** before leaving a scope or in another cleanup - function called by an owning scope. - -3. Know any minor specific quirks documented in code or here: - - - Don't use `tokio::spawn`, instead use our `Handle` in `core/server.rs`, which - is reachable in most of the codebase via `services()` or other state. This is - due to some bugs or assumptions made in tokio, as it happens in `unsafe {}` - blocks, which are mitigated by circumventing some thread-local variables. Using - runtime handles is good practice in any case. - -The initial implementation PR is available [here][1]. - -### Interesting related issues/bugs - -- [DT_RUNPATH produced in binary with rpath = true is wrong (cargo)][5] -- [Disabling MIR Optimization in Rust Compilation -(cargo)](https://internals.rust-lang.org/t/disabling-mir-optimization-in-rust-compilation/19066/5) -- [Workspace-level metadata -(cargo-deb)](https://github.com/kornelski/cargo-deb/issues/68) - -[1]: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/387 -[2]: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Unloading-libraries -[3]: https://github.com/rust-lang/rust/issues/28794 -[4]: https://github.com/rust-lang/rust/issues/28794#issuecomment-368693049 -[5]: https://github.com/rust-lang/cargo/issues/12746 -[6]: https://crates.io/crates/hot-lib-reloader/ -[7]: https://matrix.to/#/#continuwuity:continuwuity.org?via=continuwuity.org&via=ellis.link&via=explodie.org&via=matrix.org -[8]: https://crates.io/crates/libloading diff --git a/docs/development/testing.md b/docs/development/testing.md index d28bb874..f3fb7d9d 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -5,28 +5,16 @@ Have a look at [Complement's repository][complement] for an explanation of what it is. -To test against Complement, with Nix (or [Lix](https://lix.systems) and -[direnv installed and set up][direnv] (run `direnv allow` after setting up the hook), you can: +To test against Complement, with [Lix][lix] and direnv installed and set up, you can: -* Run `./bin/complement "$COMPLEMENT_SRC"` to build a Complement image, run -the tests, and output the logs and results to the specified paths. This will also output the OCI image -at `result` +* Run `./bin/complement "$COMPLEMENT_SRC" ./path/to/logs.jsonl ./path/to/results.jsonl` + to build a Complement image, run the tests, and output the logs and results + to the specified paths. This will also output the OCI image at `result` * Run `nix build .#complement` from the root of the repository to just build a -Complement OCI image outputted to `result` (it's a `.tar.gz` file) -* Or download the latest Complement OCI image from the CI workflow artifacts -output from the commit/revision you want to test (e.g. from main) -[here][ci-workflows] + Complement OCI image outputted to `result` (it's a `.tar.gz` file) +* Or download the latest Complement OCI image from the CI workflow artifacts output + from the commit/revision you want to test (e.g. from main) [here][ci-workflows] -If you want to use your own prebuilt OCI image (such as from our CI) without needing -Nix installed, put the image at `complement_oci_image.tar.gz` in the root of the repo -and run the script. - -If you're on macOS and need to build an image, run `nix build .#linux-complement`. - -We have a Complement fork as some tests have needed to be fixed. This can be found -at: - -[ci-workflows]: -https://forgejo.ellis.link/continuwuation/continuwuity/actions/?workflow=ci.yml&actor=0&status=1 +[lix]: https://lix.systems/ +[ci-workflows]: https://github.com/girlbossceo/conduwuit/actions/workflows/ci.yml?query=event%3Apush+is%3Asuccess+actor%3Agirlbossceo [complement]: https://github.com/matrix-org/complement -[direnv]: https://direnv.net/docs/hook.html diff --git a/docs/differences.md b/docs/differences.md new file mode 100644 index 00000000..5135c529 --- /dev/null +++ b/docs/differences.md @@ -0,0 +1,159 @@ +#### **Note: This list may not up to date. There are rapidly more and more improvements, fixes, changes, etc being made that it is becoming more difficult to maintain this list. I recommend that you give conduwuit a try and see the differences for yourself. If you have any concerns, feel free to join the conduwuit Matrix room and ask any pre-usage questions.** + +### list of features, bug fixes, etc that conduwuit does that Conduit does not: + +Outgoing typing indicators, outgoing read receipts, **and** outgoing presence! + +## Performance: +- Concurrency support for key fetching for faster remote room joins and room joins that will error less frequently +- Send `Cache-Control` response header with `immutable` and 1 year cache length for all media requests (download and thumbnail) to instruct clients to cache media, and reduce server load from media requests that could be otherwise cached +- Add feature flags and config options to enable/build with zstd, brotli, and/or gzip HTTP body compression (response and request) +- Eliminate all usage of the thread-blocking `getaddrinfo(3)` call upon DNS queries, significantly improving federation latency/ping and cache DNS results (NXDOMAINs, successful queries, etc) using hickory-dns / hickory-resolver +- Vastly improve RocksDB default settings to use new features that help with performance significantly, uses settings tailored to SSDs, various ways to tweak RocksDB, and a conduwuit setting to tell RocksDB to use settings that are tailored to HDDs or slow spinning rust storage or buggy filesystems. +- Add a Cargo build profile for aggressive build-time performance optimisations for release builds (1 codegen unit, no debug, fat LTO, etc, and optimise all crates with same) +- Implement database flush and cleanup conduwuit operations when using RocksDB +- Implement RocksDB write buffer corking and coalescing in database write-heavy areas +- Perform connection pooling and keepalives where necessary to significantly improve federation performance and latency +- Various config options to tweak connection pooling, request timeouts, connection timeouts, DNS timeouts and settings, etc with good defaults which also help huge with performance via reusing connections and retrying where needed +- Implement building conduwuit with jemalloc (which extends to the RocksDB jemalloc feature for maximum gains) or hardened_malloc light variant, and produce CI builds with jemalloc for performance (Nix doesn't seem to build [hardened_malloc-rs](https://github.com/girlbossceo/hardened_malloc-rs) properly) +- Add support for caching DNS results with hickory-dns / hickory-resolver in conduwuit (not a replacement for a proper resolver cache, but still far better than nothing) +- Add config option for using DNS over TCP, and config option for controlling A/AAAA record lookup strategy (e.g. don't query AAAA records if you don't have IPv6 connectivity) +- Overall significant database, Client-Server, and federation performance and latency improvements (check out the ping room leaderboards if you don't believe me :>) +- Add config options for RocksDB compression and bottommost compression, including choosing the algorithm and compression level +- Use [loole](https://github.com/mahdi-shojaee/loole) MPSC channels instead of tokio MPSC channels for huge performance boosts in sending channels (mainly relevant for federation) and presence channels +- Use `tracing`/`log`'s `release_max_level_info` feature to improve performance, build speeds, binary size, and CPU usage in release builds by avoid compiling debug/trace log level macros that users will generally never use (can be disabled with a build-time feature flag) +- Enable RocksDB async read I/O via `io_uring` by default + + +## General Fixes: +- Raise and improve all the various request timeouts making some things like room joins and client bugs error less or none at all than they should, and make them all user configurable +- Add missing `reason` field to user ban events (`/ban`) +- Fixed spec compliance issue with room version 8 - 11 joins (https://github.com/matrix-org/synapse/issues/16717 / https://github.com/matrix-org/matrix-spec/issues/1708) +- Safer and cleaner shutdowns on both database side as we run cleanup on shutdown and exits database loop better (no potential hanging issues in database loop), overall cleaner shutdown logic +- Stop sending `make_join` requests on room joins if 15 servers respond with `M_UNSUPPORTED_ROOM_VERSION` or `M_INVALID_ROOM_VERSION` +- Stop sending `make_join` requests if 50 servers cannot provide `make_join` for us +- Respect *most* client parameters for `/media/` requests (`allow_redirect` still needs work) +- Increased graceful shutdown timeout from a low 60 seconds to 180 seconds to avoid killing connections and let the remaining ones finish processing +- Return joined member count of rooms for push rules/conditions instead of a hardcoded value of 10 +- Make `CONDUIT_CONFIG` optional, relevant for container users that configure only by environment variables and no longer need to set `CONDUIT_CONFIG` to an empty string. +- Allow HEAD and PATCH (MSC4138) HTTP requests in CORS for clients (despite not being explicity mentioned in Matrix spec, HTTP spec says all HEAD requests need to behave the same as GET requests, Synapse supports HEAD requests) +- Resolve and remove some "features" from upstream that result in concurrency hazards, exponential backoff issues, or arbitrary performance limiters +- Find more servers for outbound federation `/hierarchy` requests instead of just the room ID server name +- Support for suggesting servers to join through at `/_matrix/client/v3/directory/room/{roomAlias}` +- Support for suggesting servers to join through us at `/_matrix/federation/v1/query/directory` +- Add workaround for [Out Of Your Element](https://gitdab.com/cadence/out-of-your-element) appservice bridge to make it functional on conduwuit (bug has already been reported) + + +## Moderation: +- (Also see [Admin Room](#admin-room) for all the admin commands pertaining to moderation, there's a lot!) +- Add support for room banning/blocking by ID using admin command +- Add support for serving `support` well-known from `[well_known.support]` (MSC1929) +- Config option to forbid publishing rooms to the room directory (`lockdown_public_room_directory`) except for admins +- Admin commands to delete room aliases and unpublish rooms from our room directory +- For all [`/report`](https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidreporteventid) requests: check if the reported event ID belongs to the reported room ID, raise report reasoning character limit to 750, fix broken formatting, make a small delayed random response per spec suggestion on privacy, and check if the sender user is in the reported room. +- Support blocking servers from downloading remote media from, returning a 404 +- Don't allow `m.call.invite` events to be sent in public rooms (prevents calling the entire room) +- On new public room creations, only allow moderators to send `m.call.invite`, `org.matrix.msc3401.call`, and `org.matrix.msc3401.call.member` events +- Add support for a "global ACLs" feature (`forbidden_remote_server_names`) that blocks inbound remote room invites, room joins by room ID on server name, room joins by room alias on server name, incoming federated joins, and incoming federated room directory requests. This is very helpful for blocking servers that are purely toxic/bad and serve no value in allowing our users to suffer from things like room invite spam or such. Please note that this is not a substitute for room ACLs. +- Add support for a config option to forbid our local users from sending federated room directory requests for (`forbidden_remote_room_directory_server_names`). Similar to above, useful for blocking servers that help prevent our users from wandering into bad areas of Matrix via room directories of those malicious servers. +- Add config option for auto remediating/deactivating local non-admin users who attempt to join bad/forbidden rooms (`auto_deactivate_banned_room_attempts`) + + +## Privacy/Security: +- Add config option for device name federation with a privacy-friendly default (disabled) +- Add config option for requiring authentication to the `/publicRooms` endpoint (room directory) with a default enabled for privacy +- Add config option for federating `/publicRooms` endpoint (room directory) to other servers with a default disabled for privacy +- Uses proper `argon2` crate by RustCrypto instead of questionable `rust-argon2` crate +- Generate passwords with 25 characters instead of 15 +- Config option `ip_range_denylist` to support refusing to send requests (typically federation) to specific IP ranges, typically RFC 1918, non-routable, testnet, etc addresses like Synapse for security (note: this is not a guaranteed protection, and you should be using a firewall with zones if you want guaranteed protection as doing this on the application level is prone to bypasses). +- Config option to block non-admin users from sending room invites or receiving remote room invites. Admin users are still allowed. +- Config option to disable incoming and/or outgoing remote read receipts +- Config option to disable incoming and/or outgoing remote typing indicators +- Config option to disable incoming, outgoing, and/or local presence +- Sanitise file names for the `Content-Disposition` header for all media requests (thumbnails, downloads, uploads) +- Return `inline` or `attachment` based on the detected file MIME type for the `Content-Disposition` and only allow images/videos/text/audio to be `inline` +- Send secure default HTTP headers such as a strong restrictive CSP, deny iframes, disable `X-XSS-Protection`, disable interest cohort in `Permission-Policy`, etc to mitigate any potential attack surface such as from untrusted media + + +## Administration/Logging: +- Commandline argument to specify the path to a config file instead of relying on `CONDUIT_CONFIG` +- Revamped admin room infrastructure and commands +- Substantially clean up, improve, and fix logging (less noisy dead server logging, registration attempts, more useful troubleshooting logging, proper error propagation, etc) +- Configurable RocksDB logging (`LOG` files) with proper defaults (rotate, max size, verbosity, etc) to stop LOG files from accumulating so much +- Explicit startup error if your configuration allows open registration without a token or such like Synapse with a way to bypass it if needed +- Replace the lightning bolt emoji option with support for setting any arbitrary text (e.g. another emoji) to suffix to all new user registrations, with a conduwuit default of ๐Ÿณ๏ธโ€โšง๏ธ +- Implement config option to auto join rooms upon registration +- Warn on unknown config options specified +- Add `/_conduwuit/server_version` route to return the version of conduwuit without relying on the federation API `/_matrix/federation/v1/version` +- Add configurable RocksDB recovery modes to aid in recovering corrupted RocksDB databases +- Support config options via `CONDUWUIT_` prefix and accessing non-global struct config options with the `__` split (e.g. `CONDUWUIT_WELL_KNOWN__SERVER`) +- Add support for listening on multiple TCP ports +- Disable update check by default as it's not useful for conduwuit +- **Opt-in** Sentry.io telemetry and metrics, mainly used for crash reporting + + +## Maintenance/Stability: +- GitLab CI ported to GitHub Actions +- Repo is mirrored to GitHub, GitLab, git.gay, git.girlcock.ceo, sourcehut, and Codeberg (see README.md for their links) +- Docker container images published to GitLab Container Registry, GitHub Container Registry, and Dockerhub +- Extensively revamp the example config to be extremely helpful and useful to both new users and power users +- Fixed every single clippy (default lints) and rustc warnings, including some that were performance related or potential safety issues / unsoundness +- Add a **lot** of other clippy and rustc lints and a rustfmt.toml file +- Has [Renovate](https://docs.renovatebot.com/), [Trivy](https://github.com/aquasecurity/trivy-action), and keeps ALL dependencies as up to date as possible +- Attempts and interest in removing extreme and unnecessary panics/unwraps/expects that can lead to denial of service or such (upstream and upstream contributors want this unusual behaviour for some reason) +- Purge unmaintained/irrelevant/broken database backends (heed, sled, persy) and other unnecessary code or overhead +- webp support for images +- Add cargo audit support to CI +- CI tests with all features +- Add timestamp by commit date support to building OCI images for keeping image build reproducibility and still have a meaningful "last modified date" for OCI image metadata +- Update rusqlite/sqlite (not that you should be using it) +- Startup check if conduwuit running in a container and is listening on 127.0.0.1 (generally containers are using NAT networking and 0.0.0.0 is the intended listening address) + + +## Admin Room: +- Fix admin room handler to not panic/crash if the admin room command response fails (e.g. too large message) +- Add command to dynamically change conduwuit's tracing log level filter on the fly +- Add admin command to fetch a server's `/.well-known/matrix/support` file +- Add debug admin command to force update user device lists (could potentially resolve some E2EE flukes) +- Implement **RocksDB online backups**, listing RocksDB backups, and listing database file counts all via admin commands +- Add various database visibility commands such as being able to query the getters and iterators used in conduwuit, a very helpful online debugging utility +- Forbid the admin room from being made public or world readable history +- Add `!admin` as a way to call the admin bot +- Extend clear cache admin command to support clearing more caches such as DNS and TLS name overrides +- Admin debug command to send a federation request/ping to a server's `/_matrix/federation/v1/version` endpoint and measures the latency it took +- Add admin command to bulk delete media via a codeblock list of MXC URLs. +- Add admin command to delete both the thumbnail and media MXC URLs from an event ID (e.g. from an abuse report) +- Add admin command to list all the rooms a local user is joined in +- Add admin command to delete all remote media in the past X minutes as a form of deleting media that you don't want on your server that a remote user posted in a room +- Add admin command to return a room's state +- Admin debug command to fetch a PDU from a remote server and inserts it into our database/timeline as backfill +- Add admin command to delete media via a specific MXC. This deletes the MXC from our database, and the file locally. +- Add admin commands for banning (blocking) room IDs from our local users joining (admins are always allowed) and evicts all our local users from that room, in addition to bulk room banning support, and blocks room invites (remote and local) to the banned room, as a moderation feature +- Add admin commands to output jemalloc memory stats and memory usage +- Add admin command to get conduwuit's uptime +- Add admin command to get rooms a *remote* user shares with us + + +## Misc: +- Support for creating rooms with custom room IDs like Maunium Synapse (`room_id` request body field to `/createRoom`) +- Query parameter `?format=event|content` for returning either the room state event's content (default) for the full room state event on ` /_matrix/client/v3/rooms/{roomId}/state/{eventType}[/{stateKey}]` requests (see https://github.com/matrix-org/matrix-spec/issues/1047) +- Add **optional** feature flag to use SHA256 key names for media instead of base64 to overcome filesystem file name length limitations (OS error file name too long) +- Send a User-Agent on all of our requests +- Send `avatar_url` on invite room membership events/changes +- Support sending [`well_known` response to client login responses](https://spec.matrix.org/v1.10/client-server-api/#post_matrixclientv3login) if using config option `[well_known.client]` +- Implement `include_state` search criteria support for `/search` requests (response now can include room states) +- Declare various missing Matrix versions and features at `/_matrix/client/versions` +- Implement legacy Matrix `/v1/` media endpoints that some clients and servers may still call +- Config option to change Conduit's behaviour of homeserver key fetching (`query_trusted_key_servers_first`). This option sets whether conduwuit will query trusted notary key servers first before the individual homeserver(s), or vice versa which may help in joining certain rooms. +- Implement unstable MSC2666 support for querying mutual rooms with a user +- Assume well-knowns are broken if they exceed past 10000 characters. +- Add support for the Matrix spec compliance test suite [Complement](https://github.com/matrix-org/complement/) via the Nix flake and various other fixes for it +- Add support for listening on both HTTP and HTTPS if using direct TLS with conduwuit for usecases such as Complement +- Implement running and diff'ing Complement results in CI +- Interest in supporting other operating systems such as macOS, BSDs, and Windows, and getting them added into CI and doing builds for them +- Add config option for disabling RocksDB Direct IO if needed +- Add various documentation on maintaining conduwuit, using RocksDB online backups, some troubleshooting, using admin commands, etc +- (Developers): Add support for tokio-console +- (Developers): Add support for tracing flame graphs +- Add `release-debuginfo` Cargo build profile +- No cryptocurrency donations allowed, conduwuit is fully maintained by independent queer maintainers, and with a strong priority on inclusitivity and comfort for protected groups ๐Ÿณ๏ธโ€โšง๏ธ diff --git a/docs/introduction.md b/docs/introduction.md index d193f7c7..17d7e83f 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -1,15 +1,18 @@ -# Continuwuity +# Conduwuit {{#include ../README.md:catchphrase}} {{#include ../README.md:body}} +#### What's different about your fork than upstream Conduit? + +See the [differences](differences.md) page + #### How can I deploy my own? - [Deployment options](deploying.md) -If you want to connect an appservice to Continuwuity, take a look at the -[appservices documentation](appservices.md). +If you want to connect an Appservice to Conduwuit, take a look at the [appservices documentation](appservices.md). #### How can I contribute? diff --git a/docs/maintenance.md b/docs/maintenance.md index 16ec5a4e..407340bf 100644 --- a/docs/maintenance.md +++ b/docs/maintenance.md @@ -1,135 +1,63 @@ -# Maintaining your Continuwuity setup +# Maintaining your conduwuit setup ## Moderation -Continuwuity has moderation through admin room commands. "binary commands" (medium -priority) and an admin API (low priority) is planned. Some moderation-related -config options are available in the example config such as "global ACLs" and -blocking media requests to certain servers. See the example config for the -moderation config options under the "Moderation / Privacy / Security" section. - -Continuwuity has moderation admin commands for: +conduwuit has moderation through admin room commands. "binary commands" (medium priority) and an admin API (low priority) is planned. Some moderation-related config options are available in the example config such as "global ACLs" and blocking media requests to certain servers. See the example config for the moderation config options under the "Moderation / Privacy / Security" section. +conduwuit has moderation admin commands for: - managing room aliases (`!admin rooms alias`) - managing room directory (`!admin rooms directory`) - managing room banning/blocking and user removal (`!admin rooms moderation`) - managing user accounts (`!admin users`) - fetching `/.well-known/matrix/support` from servers (`!admin federation`) -- blocking incoming federation for certain rooms (not the same as room banning) -(`!admin federation`) +- blocking incoming federation for certain rooms (not the same as room banning) (`!admin federation`) - deleting media (see [the media section](#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: +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: ```` !admin rooms moderation ban-list-of-rooms ``` !roomid1:server.name -#badroomalias1:server.name !roomid2:server.name !roomid3:server.name -#badroomalias2:server.name ``` ```` -## Database (RocksDB) +## Database -Generally there is very little you need to do. [Compaction][rocksdb-compaction] -is ran automatically based on various defined thresholds tuned for Continuwuity to -be high performance with the least I/O amplifcation or overhead. Manually -running compaction is not recommended, or compaction via a timer, due to -creating unnecessary I/O amplification. RocksDB is built with io_uring support -via liburing for improved read performance. +If using RocksDB, there's very little you need to do. Compaction is ran automatically based on various defined thresholds tuned for conduwuit to be high performance with the least I/O amplifcation or overhead. Manually running compaction is not recommended, or compaction via a timer. RocksDB is built with io_uring support via liburing for async read I/O. + +Some RocksDB settings can be adjusted such as the compression method chosen. See the RocksDB section in the [example config](configuration.md). btrfs users may benefit from disabling compression on RocksDB if CoW is in use. RocksDB troubleshooting can be found [in the RocksDB section of troubleshooting](troubleshooting.md). -### Compression - -Some RocksDB settings can be adjusted such as the compression method chosen. See -the RocksDB section in the [example config](configuration/examples.md). - -btrfs users have reported that database compression does not need to be disabled -on Continuwuity as the filesystem already does not attempt to compress. This can be -validated by using `filefrag -v` on a `.SST` file in your database, and ensure -the `physical_offset` matches (no filesystem compression). It is very important -to ensure no additional filesystem compression takes place as this can render -unbuffered Direct IO inoperable, significantly slowing down read and write -performance. See - -> Compression is done using the COW mechanism so itโ€™s incompatible with -> nodatacow. Direct IO read works on compressed files but will fall back to -> buffered writes and leads to no compression even if force compression is set. -> Currently nodatasum and compression donโ€™t work together. - -### Files in database - -Do not touch any of the files in the database directory. This must be said due -to users being mislead by the `.log` files in the RocksDB directory, thinking -they're server logs or database logs, however they are critical RocksDB files -related to WAL tracking. - -The only safe files that can be deleted are the `LOG` files (all caps). These -are the real RocksDB telemetry/log files, however Continuwuity has already -configured to only store up to 3 RocksDB `LOG` files due to generally being -useless for average users unless troubleshooting something low-level. If you -would like to store nearly none at all, see the `rocksdb_max_log_files` -config option. - ## Backups -Currently only RocksDB supports online backups. If you'd like to backup your -database online without any downtime, see the `!admin server` command for the -backup commands and the `database_backup_path` config options in the example -config. Please note that the format of the database backup is not the exact -same. This is unfortunately a bad design choice by Facebook as we are using the -database backup engine API from RocksDB, however the data is still there and can -still be joined together. +Currently only RocksDB supports online backups. If you'd like to backup your database online without any downtime, see the `!admin server` command for the backup commands and the `database_backup_path` config options in the example config. Please note that the format of the database backup is not the exact same. This is unfortunately a bad design choice by Facebook as we are using the database backup engine API from RocksDB, however the data is still there and can still be joined together. To restore a backup from an online RocksDB backup: - -- shutdown Continuwuity +- shutdown conduwuit - create a new directory for merging together the data -- in the online backup created, copy all `.sst` files in -`$DATABASE_BACKUP_PATH/shared_checksum` to your new directory -- trim all the strings so instead of `######_sxxxxxxxxx.sst`, it reads -`######.sst`. A way of doing this with sed and bash is `for file in *.sst; do mv -"$file" "$(echo "$file" | sed 's/_s.*/.sst/')"; done` -- copy all the files in `$DATABASE_BACKUP_PATH/1` (or the latest backup number -if you have multiple) to your new directory -- set your `database_path` config option to your new directory, or replace your -old one with the new one you crafted -- start up Continuwuity again and it should open as normal +- in the online backup created, copy all `.sst` files in `$DATABASE_BACKUP_PATH/shared_checksum` to your new directory +- trim all the strings so instead of `######_sxxxxxxxxx.sst`, it reads `######.sst`. A way of doing this with sed and bash is `for file in *.sst; do mv "$file" "$(echo "$file" | sed 's/_s.*/.sst/')"; done` +- copy all the files in `$DATABASE_BACKUP_PATH/1` to your new directory +- set your `database_path` config option to your new directory, or replace your old one with the new one you crafted +- start up conduwuit again and it should open as normal -If you'd like to do an offline backup, shutdown Continuwuity and copy your -`database_path` directory elsewhere. This can be restored with no modifications -needed. +If you'd like to do an offline backup, shutdown conduwuit and copy your `database_path` directory elsewhere. This can be restored with no modifications needed. -Backing up media is also just copying the `media/` directory from your database -directory. +Backing up media is also just copying the `media/` directory from your database directory. ## Media -Media still needs various work, however Continuwuity implements media deletion via: - -- MXC URI or Event ID (unencrypted and attempts to find the MXC URI in the -event) +Media still needs various work, however conduwuit implements media deletion via: +- MXC URI - Delete list of MXC URIs -- Delete remote media in the past `N` seconds/minutes via filesystem metadata on -the file created time (`btime`) or file modified time (`mtime`) +- Delete remote media in the past `N` seconds/minutes -See the `!admin media` command for further information. All media in Continuwuity -is stored at `$DATABASE_DIR/media`. This will be configurable soon. +See the `!admin media` command for further information. All media in conduwuit is stored at `$DATABASE_DIR/media`. This will be configurable soon. -If you are finding yourself needing extensive granular control over media, we -recommend looking into [Matrix Media -Repo](https://github.com/t2bot/matrix-media-repo). Continuwuity intends to -implement various utilities for media, but MMR is dedicated to extensive media -management. +If you are finding yourself needing extensive granular control over media, we recommend looking into [Matrix Media Repo](https://github.com/t2bot/matrix-media-repo). conduwuit intends to implement various utilities for media, but MMR is dedicated to extensive media management. -Built-in S3 support is also planned, but for now using a "S3 filesystem" on -`media/` works. Continuwuity also sends a `Cache-Control` header of 1 year and -immutable for all media requests (download and thumbnail) to reduce unnecessary -media requests from browsers, reduce bandwidth usage, and reduce load. - -[rocksdb-compaction]: https://github.com/facebook/rocksdb/wiki/Compaction +Built-in S3 support is also planned, but for now using a "S3 filesystem" on `media/` works. conduwuit also sends a `Cache-Control` header of 1 year and immutable for all media requests (download and thumbnail) to reduce unnecessary media requests from browsers. diff --git a/docs/security.md b/docs/security.md deleted file mode 100644 index b4474cf5..00000000 --- a/docs/security.md +++ /dev/null @@ -1 +0,0 @@ -{{#include ../SECURITY.md}} diff --git a/docs/server_reference.md b/docs/server_reference.md deleted file mode 100644 index e34bc51e..00000000 --- a/docs/server_reference.md +++ /dev/null @@ -1,21 +0,0 @@ -# Command-Line Help for `continuwuity` - -This document contains the help content for the `continuwuity` command-line program. - -**Command Overview:** - -* [`continuwuity`โ†ด](#continuwuity) - -## `continuwuity` - -a very cool Matrix chat homeserver written in Rust - -**Usage:** `continuwuity [OPTIONS]` - -###### **Options:** - -* `-c`, `--config ` โ€” Path to the config TOML file (optional) -* `-O`, `--option