Skip to content

Repository Guide

Pummelchen edited this page Sep 13, 2026 · 15 revisions

Repository Guide

Source layout

Path Ownership
Package.swift Public repository-root SwiftPM package.
Swift/Package.swift Extended package used by smoke tools and helper scripts.
Swift/Sources/WebTransport/ High-level public API and DocC catalog.
Swift/Sources/WebTransportNetworkRuntime/ Network.framework runtime, trust, endpoints, and session lifecycle.
Swift/Sources/WebTransportNetworkRuntime/WebTransportServerIdentity.swift Server TLS identity resolution, loopback refusal, and self-signed generation.
Swift/Sources/WebTransportNetworkRuntime/WebTransportServerPolicy.swift Admission policy, transport limits, and the connection rate limiter.
Swift/Sources/WebTransportHTTP3Core/ HTTP/3, QPACK, WebTransport sessions, streams, datagrams, capsules, and flow control.
Swift/Sources/WebTransportQUICCore/ QUIC codecs and state primitives.
Swift/Sources/WebTransportTLSCore/ TLS 1.3 messages, key schedule, and QUIC handshake state.
Swift/Sources/WebTransportCryptoApple/ Apple-backed QUIC key and packet-protection helpers.
Swift/Sources/WebTransportUDPApple/ Darwin loopback UDP helper.
Swift/Sources/WebTransportSecurityShim/ The repository's only non-Swift target. A narrow Objective-C frame around SecPKCS12Import that converts the NSException Security.framework raises for an identity it cannot build into a status code, because Swift cannot catch Objective-C exceptions. Internal; not part of the public product surface.
Swift/Sources/WebTransportCLIConformance/ Shared client/server scenario harness.
Swift/Sources/WebTransportClient/, WebTransportServer/ Executable entry points.
Swift/Tests/ Public API, runtime, protocol, crypto, UDP, process, and stress tests.
Swift/Tests/WebTransportNetworkRuntimeTests/Resources/ Committed PKCS#12 fixtures for the identity import path, with regeneration instructions and checksums in its README.md.
Swift/*.sh API compatibility, release, interoperability, manifest-sync, and soak workflows.
Swift/interop-docker/ Containerized third-party peers used by run-docker-interop.sh.
.github/workflows/swift-ci.yml Build, DocC, API, release, test, and conformance CI.
C99/ The portable C99 port. C99/include/webtransport/ and C99/src/ hold Phases 0 to 8 of C99/IMPLEMENTATION_PLAN.md in one directory per layer -- core/, crypto/, tls/, quic/, http3/, webtransport/ and the consumer-facing api/ -- with C99/tests/ beside them and the CLI applications still to come in Phase 9. C99/tests/vectors/ holds the generated RFC vectors and the scripts that extract them, which C99/scripts/check-vectors.sh re-derives in CI.
.github/workflows/c99-ci.yml C99 build, unit tests, sanitizer tests, package consumer and CLI smoke on macOS and Debian.

Choose the owning module

Change Start in Validate with
Application-facing API WebTransport and DocC WebTransportTests, API compatibility script
Client/server commands CLI entry point and WebTransportCLIConformance Process tests and both scenario suites
Runtime, endpoints, trust WebTransportNetworkRuntime Runtime and public API tests, packet loopback
HTTP/3, QPACK, sessions WebTransportHTTP3Core HTTP3Core tests and relevant scenarios
QUIC primitives WebTransportQUICCore QUICCore tests
TLS or packet crypto WebTransportTLSCore, WebTransportCryptoApple Matching tests plus an integration path
UDP support WebTransportUDPApple UDP and IPv4/IPv6 loopback tests
Security.framework entry points that can raise an Objective-C exception WebTransportSecurityShim The identity tests under WebTransportNetworkRuntimeTests, including the committed PKCS#12 fixtures
Release or interop Swift/*.sh, CI workflow Relevant script and CI

Package manifests

The two manifests intentionally expose different product sets. Keep shared target paths and dependencies synchronized, but preserve the nested package's smoke executables and test-support targets.

Generated output

Do not commit generated content under .build/, Swift/.build/, .webtransport-cli-logs/, or C99/out/. The planned-port out/ directory contains tracked README and ignore files; generated children remain local.

Change discipline

Read the owning source, nearest tests, manifests, CI, and affected documentation before editing. Keep public API, protocol behavior, trust rules, logging guarantees, and release claims synchronized with runnable code and current evidence.

Clone this wiki locally