Skip to content

Repository Guide

André Borchert edited this page Aug 10, 2026 · 15 revisions

Repository Guide

Top-level layout

Path Purpose
Package.swift Public repository-root SwiftPM package.
Swift/Package.swift Nested Swift package used by smoke tools and helper scripts.
Swift/Sources/WebTransport/ Public API and DocC catalog.
Swift/Sources/WebTransportNetworkRuntime/ Network.framework runtime, trust, endpoint, and session handling.
Swift/Sources/WebTransportHTTP3Core/ HTTP/3, QPACK, WebTransport session, stream, datagram, and flow-control logic.
Swift/Sources/WebTransportQUICCore/ QUIC wire formats and state primitives.
Swift/Sources/WebTransportTLSCore/ TLS 1.3 and QUIC handshake state.
Swift/Sources/WebTransportCryptoApple/ Apple-backed packet crypto helpers.
Swift/Sources/WebTransportUDPApple/ Loopback UDP helper.
Swift/Sources/WebTransportCLIConformance/ Shared command-line conformance scenarios.
Swift/Sources/WebTransportClient/ Client executable entrypoint.
Swift/Sources/WebTransportServer/ Server executable entrypoint.
Swift/Sources/LibrarySmokeClient/ Nested-package client smoke executable.
Swift/Sources/LibrarySmokeServer/ Nested-package server smoke executable.
Swift/Tests/ Swift Testing targets for public API, runtime, protocol, crypto, and UDP behavior.
Swift/*.sh API compatibility, release, and interoperability scripts.
.github/workflows/swift-ci.yml macOS Swift build, documentation, release, test, and conformance CI.
C99/ Planned C99 layout and implementation plan.
CPP/ Planned C++23 layout and implementation plan.

Package manifests

The root package is the public integration surface. It exports the production libraries and the client and server executables.

The nested Swift/Package.swift uses the same core source tree but also defines WebTransportTestSupport, LibrarySmokeClient, and LibrarySmokeServer. Keep both manifests synchronized when changing shared targets or dependencies, while preserving these intentional product differences.

Where to start for a change

Change area Primary source Closest validation
Public API Swift/Sources/WebTransport/ and DocC Public API tests and API compatibility script
Client/server CLI Client/server entrypoints and WebTransportCLIConformance Process tests and both scenario suites
Runtime, endpoints, trust WebTransportNetworkRuntime Runtime tests, public API tests, and loopback process tests
HTTP/3, QPACK, sessions WebTransportHTTP3Core HTTP3Core tests and conformance scenarios
QUIC primitives WebTransportQUICCore QUICCore and parser-hardening tests
TLS and crypto WebTransportTLSCore, WebTransportCryptoApple Matching core tests plus integration tests
UDP helper WebTransportUDPApple/QUICUDPPort.swift UDP tests and IPv4/IPv6 loopback tests
Release and interop CI workflow and Swift/*.sh Relevant script plus CI review
C99 or C++ planning Matching README and implementation plan Verify status claims against actual files

Generated and local output

Do not commit or hand-edit generated output under:

  • .build/
  • Swift/.build/
  • .webtransport-cli-logs/
  • C99/out/
  • CPP/out/

The C99 and C++ out/ directories contain tracked documentation and ignore rules, but generated artifacts beneath them remain local.

Change discipline

Inspect the current source, manifests, tests, CI, and relevant documentation before changing behavior. Keep changes within the responsible module, add or update tests in the corresponding target, and update this Wiki or repository documentation when APIs, setup, commands, workflows, trust rules, or user-visible behavior change.

Clone this wiki locally