OVERVIEW
Custom Bazel rules (`wd_*` macros) for C++, TypeScript, Rust, Cap'n Proto, and test orchestration. Uses bzlmod (`MODULE.bazel`), not WORKSPACE. This is build system definitions, NOT build output (`bazel
8.8k9mo agoReviewMountCreate a free account to mount
when
the `typescript_implemented_streams` compat flag is enabled, plus the
internal-testing `ReadableStreamDrainingReader` under
`expose_draining_reader`.
- Files are auto-discovered (`BUILD.bazel` and `tsconfig.json` both glob
`**/*.ts`). No registration
8.8k9mo agoReviewMountCreate a free account to mount
backed views are read in place.
## PARITY
Both implementations run `crypto-streams-test.js` unmodified, under
`crypto-streams-test.wd-test` (C++) and `crypto-streams-ts-test.wd-test`
(TypeScript). Behavior shared between them belongs in that file so drift
8.8k9mo agoReviewMountCreate a free account to mount
held until the context
is collected.
## PARITY
Both implementations run `webfs-test.js` unmodified, under `webfs-test.wd-test`
(C++) and `webfs-ts-test.wd-test` (TypeScript). Behavior shared between them
belongs in that file so drift
8.8k9mo agoReviewMountCreate a free account to mount
implementation (`ReadableStreamNativeSource` in
`src/workerd/api/js-readable-stream.{h,c++}`) MUST conform to it; JS
mocks in tests exercise the conduit independently. Key addition:
`pull` receives an extension `signal`
argument — the source checks `signal.aborted
8.8k9mo agoReviewMountCreate a free account to mount
from PyPI. Keep existing code for backward compatibility; new features go to workers-py.
## TESTINGTests live in `src/workerd/server/tests/python/`. `py_wd_test.bzl` macro: expands `%PYTHON_FEATURE_FLAGS` template, handles multiple Pyodide versions
8.8k9mo agoReviewMountCreate a free account to mount
Cargo workspace — entirely Bazel-driven (`wd_rust_crate.bzl` / `wd_rust_binary.bzl`). Clippy pedantic+nursery enabled; `allow-unwrap-in-tests`; `clippy.toml` and `rustfmt.toml` live at the repository root and apply to every crate.
Rust does
8.8k9mo agoReviewMountCreate a free account to mount
assume stock cxx-rs behavior when changing bridge generation or runtime code.
## Build and test
Run commands from the workerd repository root:
```sh
bazel build //src/rust/cxx/...
bazel test //src/rust/cxx/...
```
Important
8.8k9mo agoReviewMountCreate a free account to mount
src/tests/node/
Test suites for the parts of the Node.js compatibility layer (`src/node/`)
that sit on top of the Web Streams implementation: the `node:stream`
web-interop adapters, `node:net` sockets
8.8k9mo agoReviewMountCreate a free account to mount
body it pumps into its
`IncomingMessage` — derived from and kept in lockstep with the test suite
in this directory. **The tests are the normative artifact**; this document
maps behaviors
8.8k9mo agoReviewMountCreate a free account to mount
Response` it hands back to `fetch()` — derived from and
kept in lockstep with the test suite in this directory. **The tests are
the normative artifact**; this document maps behaviors
8.8k9mo agoReviewMountCreate a free account to mount
connect()` socket underneath it, derived from
and kept in lockstep with the test suite in this directory. **The tests
are the normative artifact**; this document maps behaviors to the tests
8.8k9mo agoReviewMountCreate a free account to mount
finished`, `addAbortSignal`, `node:stream/web`, `node:stream/consumers` —
derived from and kept in lockstep with the test suite in this directory.
**The tests are the normative artifact**; this document maps behaviors
8.8k9mo agoReviewMountCreate a free account to mount
streams
The Cache API consuming and producing stream bodies under both stream
implementations. **The tests are the normative artifact.** The general
Cache API surface (headers, vary, purge, instrumentation) is owned
8.8k9mo agoReviewMountCreate a free account to mount
Streams classes as
implemented in workerd, derived from — and kept in lockstep with — the test
suite in this directory. **The tests are the normative artifact.** Both the
C++ implementation (`src/workerd/api/streams/compression
8.8k9mo agoReviewMountCreate a free account to mount
hash digest) as implemented in workerd,
derived from — and kept in lockstep with — the test suite in this
directory. **The tests are the normative artifact.** Both the C++
implementation (`src/workerd/api/crypto/crypto
8.8k9mo agoReviewMountCreate a free account to mount
stream classes as
implemented in workerd, derived from — and kept in lockstep with — the test
suite in this directory. **The tests are the normative artifact**; this
document indexes every specified
8.8k9mo agoReviewMountCreate a free account to mount
streamed bodies and FormData serialized INTO a
stream body — under both stream implementations. **The tests are the
normative artifact.** The general FormData surface (W3C API matrix,
urlencoded, entry semantics
8.8k9mo agoReviewMountCreate a free account to mount