Skip to content

Repository Guide

node3 edited this page Sep 18, 2026 · 15 revisions

Repository Guide

Top level

Path What it is
Package.swift The supported SwiftPM manifest for applications. Package WebTransport.
Swift/Package.swift Nested manifest over the same sources, package WebTransportSwift. Adds LibrarySmokeClient / LibrarySmokeServer and the nested-only test target. Use it to build the smoke pair, not to depend on the package.
Swift/ All Swift sources, tests, scripts and interop assets.
C99/ The portable C99 CMake project. Self-contained; shares no files with Swift/.
VERSION The single source of the version (1.5.1), mirrored in the C99 header and WebTransportVersion.swift.
AGENTS.md Repository instructions for coding agents. CLAUDE.md imports it.
README.md Repository overview.
RELEASE.md The release standard. Read it before cutting a release.
SECURITY.md Vulnerability reporting and the automated scans.
release-macos-arm64.sh Builds and packs both release archives. Dry run unless given --publish.
docs/ The release notes, which are the changelog: release-notes-v1.4.0.md, release-notes-v1.5.0.md, release-notes-v1.5.1.md.
.github/workflows/ swift-ci.yml, c99-ci.yml, security-scan.yml.

Which manifest to use

  • Depending on the Swift package as an application: repository-root Package.swift. It publishes the WebTransport product plus the six lower-level library products and the two executables.
  • Building the smoke pair or the nested test target inside this repository: swift build --package-path Swift.
  • Both manifests compile Swift/Sources/. They are kept in sync for shared targets by Swift/check-manifest-sync.sh, which CI runs. They intentionally publish different product sets.
  • Linking the C99 library: C99/CMakeLists.txt, consumed through find_package(webtransport_c99) after cmake --install.

Swift layout

Path Contents
Swift/Sources/WebTransport/ The public API (WebTransport.swift, WebTransportVersion.swift) and the DocC catalog WebTransport.docc/.
Swift/Sources/WebTransportNetworkRuntime/ Network.framework runtime, endpoint and trust types, WebTransportServerIdentity, WebTransportServerPolicy, the interoperable runtime.
Swift/Sources/WebTransportHTTP3Core/ HTTP/3, QPACK, sessions, streams, datagrams, capsules, flow control.
Swift/Sources/WebTransportQUICCore/ QUIC codecs and state primitives.
Swift/Sources/WebTransportTLSCore/ TLS 1.3 messages, key schedule, handshake state.
Swift/Sources/WebTransportCryptoApple/, Swift/Sources/WebTransportUDPApple/ Apple crypto helpers and the Darwin loopback UDP helper.
Swift/Sources/WebTransportSecurityShim/ The only non-Swift target: an Objective-C frame around SecPKCS12Import. Internal.
Swift/Sources/WebTransportCLIConformance/ The shared scenario catalog and runners.
Swift/Sources/WebTransportClient/, Swift/Sources/WebTransportServer/ Executable entry points (conformance flags and the loopback network mode).
Swift/Sources/LibrarySmokeClient/, LibrarySmokeServer/, WebTransportTestSupport/ Smoke pair and test support, declared by the nested manifest.
Swift/Tests/ Seven test targets: WebTransportTests, WebTransportNetworkRuntimeTests, WebTransportHTTP3CoreTests, WebTransportQUICCoreTests, WebTransportTLSCoreTests, WebTransportCryptoAppleTests, WebTransportUDPAppleTests, plus WebTransportLoopbackTestSupport and the nested-only WebTransportTestSupportTests.
Swift/Tests/WebTransportNetworkRuntimeTests/Resources/ Committed PKCS#12 fixtures for the identity-import path, with regeneration instructions and checksums in its README.md.
Swift/*.sh Toolchain, manifest, version, target-import and API-compatibility checks; release, soak, smoke and interop runners.
Swift/interop-docker/ Container definitions for pywebtransport, quinn and quiche, used by Swift/run-docker-interop.sh.
Swift/Experiments/ AppleQUICSpike, NativeQUICCoreSpike. Not products and never released.

C99 layout

Path Contents
C99/CMakeLists.txt Project definition: libraries, tools, tests, install/export rules, version check.
C99/cmake/ WTCompilerWarnings.cmake, webtransport_c99Config.cmake.in, toolchains/mingw-w64.cmake.
C99/include/webtransport/ 67 public headers, mirroring src/ (api/, cli/, crypto/, http3/, quic/, runtime/, tls/, webtransport/, plus the core headers and webtransport.h). 64 of them are installed.
C99/src/ core/, crypto/, quic/, tls/, http3/, runtime/, webtransport/, api/, cli/. See Architecture.
C99/apps/ wt-client-c99/, wt-server-c99/, wt-conformance-c99/, wt-api-sample/ (a consumer of the umbrella header, built and run by CTest) and support/ (the app-private session loop and capsule stream used by the tools).
C99/tests/unit/ 84 test programs, one file each.
C99/tests/fuzz/ fuzz_parsers.c, fuzz_driver.c.
C99/tests/vectors/ Generated RFC vector headers and the Python extractors that derive them: RFC 7541 Huffman, RFC 7748 X25519, RFC 8448 key schedule, RFC 9001 Initial keys / client Initial / Retry, RFC 9204 static table. tests/vectors/trust/ holds the real CA, leaf and negative fixtures (make-fixtures.sh).
C99/tests/interop/ client/ (the container client) and peer/ (peer servers plus the two patches the interop matrix depends on).
C99/tests/package/ The find_package(webtransport_c99) consumer.
C99/tests/windows/ The Windows-only datagram test and the two socket probes.
C99/scripts/ The build loop and every gate. See Development and Testing.
C99/platform/ Per-platform packaging entry points: macos26/compile-dylib.sh, debian/compile-so.sh, freebsd/compile-so.sh, windows11/compile-dll.ps1.
C99/docs/ COMPLIANCE-MATRIX.md, DIAGNOSTICS.md, PORTABILITY.md, PUBLIC-API.md.
C99/IMPLEMENTATION_PLAN.md The phase plan and the Definition of Done table that scripts/score-matrix.sh counts.
C99/Experiments/, C99/third_party/ Placeholders; empty.
C99/out/ Generated. Only out/README.md and .gitignore are tracked.

Generated output — do not commit

.build/, Swift/.build/, .webtransport-cli-logs/, C99/out/, and generated proof material under .build/external-interop/, .build/docker-interop/ or C99/out/vps-interop-*. The C99 build directory conventions differ between the dev loop and the packaging scripts; see Development and Testing.

Change discipline

Read the owning source, its nearest tests, both manifests, the CI gates and any affected documentation before editing. Keep the public API, protocol behaviour, trust rules, logging guarantees and release claims synchronised with runnable code and current evidence. There is one task list — the Project Tracker — and no TODO markers in the tree.

Clone this wiki locally