Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d4ea1d4
third_party: the shared block of webcpp::hash's C libraries
Nov 15, 2026
b26519d
guidelines: hash is accepted, in chapter 17
Nov 15, 2026
62dfde0
guidelines: hash's chapter 17 entry names its C libraries in one sent…
Nov 15, 2026
bc1d553
third_party: XKCP's Keccak-p[1600], built with webcpp::hash's adapter…
Nov 15, 2026
faab9ff
tools: webcpp.run's <webcpp-node-raw-fs>off links NODEFS, for a test …
Nov 15, 2026
33a1f01
third_party: libsodium 1.0.22, built file by file with webcpp::hash's…
Nov 15, 2026
712bf67
tools: <webcpp-node-raw-fs>off is documented for every rule it reaches
Nov 15, 2026
d39bc76
third_party: libsodium's inline=__inline reaches MSVC's C alone, its …
Nov 15, 2026
65c742c
tools: third_party_test's list of cases without a stray blank line
Nov 15, 2026
d260499
third_party: BLAKE3's C implementation, portable on WebAssembly and d…
Nov 15, 2026
f7541c1
third_party: BLAKE3's instruction set from a probe of the configured …
Nov 15, 2026
7c6a45c
third_party: BLAKE3's MSVC flags quoted, as b2 reads a colon
Nov 15, 2026
f3ff21d
third_party: BearSSL carries webcpp::hash's canary
Nov 15, 2026
3567cc7
tools: openssl_one_copy_test.py counts webcpp::hash's OpenSSL program…
Nov 15, 2026
9d0a6ce
tools: openssl_one_copy_test.py reads the link lines of WASI programs
Nov 15, 2026
e864c83
third_party: libsodium's programs grow their memory on Emscripten
Nov 15, 2026
f4a9cb5
tools: third_party_test.py checks libs/hash's refusal again, within t…
Nov 15, 2026
5fdd0c2
third_party: the release notes give BLAKE3's build in lines of at mos…
Nov 15, 2026
63d1a4c
tools: the user's Jamfiles of webcpp::hash as fixtures
Nov 15, 2026
de2da41
tools: one module for the user's Jamfiles tests, and every message of…
Nov 15, 2026
01dd3b6
tools: webcpp::hash's measured table
Nov 15, 2026
94de0e2
tools: the measure lane's setup on the CI, and spec 4.2's order rule …
Nov 15, 2026
3b2a20d
tools: webcpp::hash's guide tables and llms.txt, generated and checked
Nov 15, 2026
f5be580
tools: doc_tables.py gives each HKDF step its own measured order
Nov 15, 2026
d74d366
tools: doc_tables.py says which hmac its orders are, that the machine…
Nov 15, 2026
5e1faf2
tools: measure.py's overrides.hpp carries the Doc Comments of its two…
Nov 15, 2026
622f5a5
tools: measure.py moves a backend only when its median is more than 1…
Nov 15, 2026
4a04922
tools: the Emscripten fixtures of argon2id's and scrypt's override to…
Nov 15, 2026
7d120cd
guidelines: the outcome file's paragraph wrapped at 80 columns
Nov 15, 2026
20217be
tools: the lint analyses natively what a lane for every target also c…
Nov 15, 2026
79ec490
tools: the lint's twins without exceptions leave a lane's WebAssembly…
Nov 15, 2026
673a65d
tools: clang-tidy accepts the backend tags webcpp::crypto and webcpp:…
Nov 15, 2026
3eff7b6
tools: the lint analyses a native lane's em++-only command as emscrip…
Nov 15, 2026
d2f7d9b
tools: clang-tidy's forward-declaration check back on for the whole tree
Nov 15, 2026
7675b40
tools: doc_tables.py names the hmacs the table does not measure as ra…
Nov 15, 2026
d949fb5
guidelines: the rulebook records hash's increment 1 and its three exc…
Nov 15, 2026
420a0be
tools: hash's measure and its tests say their reasons rather than the…
Nov 15, 2026
9192bbe
third_party: crypto's and hash's C libraries share their properties, …
Nov 15, 2026
a26c570
AGENTS.md: third_party/ names hash's submodules, xkcp, libsodium and …
Nov 15, 2026
931e356
guidelines: the nodiscard results rule names hash beside crypto among…
Nov 15, 2026
9cd74ea
tools: crypto_jamfiles_format_test.py's two blank lines before the ar…
Nov 15, 2026
1119b98
tools/doc: a stacked table's cell breaks a word wider than its line
Nov 15, 2026
42e1979
tools: doc_tables.py gives each chapter of webcpp::hash two compariso…
Nov 15, 2026
515e085
tools/doc: a stacked table's caption is a block as wide as the table
Nov 15, 2026
166ecdf
tools: hash_doc_tables_test.py's matrix test gives expect a string, a…
Nov 15, 2026
3724513
libs/hash: webcpp::hash as a submodule, at its pull request's head
Nov 16, 2026
4c88664
libs/hash: webcpp::hash at its pull request's head, whose sodium back…
Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@
[submodule "libs/crypto"]
path = libs/crypto
url = ../crypto.git
[submodule "third_party/libs/xkcp"]
path = third_party/libs/xkcp
url = https://github.com/XKCP/XKCP.git
[submodule "third_party/libs/libsodium"]
path = third_party/libs/libsodium
url = https://github.com/jedisct1/libsodium.git
[submodule "third_party/libs/blake3"]
path = third_party/libs/blake3
url = https://github.com/BLAKE3-team/BLAKE3.git
[submodule "libs/hash"]
path = libs/hash
url = ../hash.git
21 changes: 14 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ webcpp/
third_party/ third-party code the libraries and their tests use, not webcpp's: each
a submodule under third_party/libs/, pinned at a commit and keeping its
own licence (openssl, libdatachannel, bearssl, secp256k1, bitcoin for
ctaes, and the test data wycheproof, bips, JSON-Schema-Test-Suite and
nativejson-benchmark), and the Jamfile that declares it as
/webcpp/third_party//<target> and /third_party//<target> (guidelines
chapter 10)
ctaes, xkcp, libsodium, blake3, and the test data wycheproof, bips,
JSON-Schema-Test-Suite and nativejson-benchmark), and the Jamfile that
declares it as /webcpp/third_party//<target> and
/third_party//<target> (guidelines chapter 10)
doc/ the index page (index.adoc, Jamfile)
releases/ each version's release notes, which the index page shows
site/ the site, a repository of its own, webcpporg/webcpporg.github.io, a
Expand Down Expand Up @@ -910,7 +910,14 @@ testing.launcher on emscripten", chapter 6). Every program that node runs
(`webcpp.run`, `webcpp.run-fail`, `webcpp.example`) links
`-sNODERAWFS=1`, so that it reads the host's files and its standard input:
without it, node gives it an empty file system of Emscripten's own, and a
test reads its input file as empty. No other program gets it.
test reads its input file as empty. No other program gets it. A program of
`webcpp.run`, `webcpp.run-fail` or `webcpp.example` that reads a fixed path,
as a C library's own tests read theirs (libsodium's `/test-data`), asks for
`<webcpp-node-raw-fs>off`: it links Emscripten's NODEFS (`-lnodefs.js`) in
place of `-sNODERAWFS=1`, under which nothing can be mounted, and mounts the
host's directories itself where it reads them (`FS.mount`); it then reads no
standard input of the host's, so an example with a `<stem>.input` does not
ask for it.

**A program on emscripten links at its compile's level of optimization**
(the Jamroot's region `emscripten-link-optimization`): `-O0` for
Expand Down Expand Up @@ -1057,15 +1064,15 @@ webcpp.source-only <directory> + ; (reference source trees)
| Rule | Passes when | Notes |
| --- | --- | --- |
| `webcpp.targets t ...` | | the Jamfile's default targets; before its first program, once; each is `native`, `emscripten`, `wasip2` or `wasip3`, or the build stops naming it |
| `webcpp.run` | the program exits with 0 | built once per target it declares; a user's `exception-handling=off` links `tools/throw_exception.cpp`; on emscripten, run by node, linked with `-sNODERAWFS=1`; links `/webcpp//node-test` on every target (Targets, above) |
| `webcpp.run` | the program exits with 0 | built once per target it declares; a user's `exception-handling=off` links `tools/throw_exception.cpp`; on emscripten, run by node, linked with `-sNODERAWFS=1`, or with NODEFS, which the program mounts itself, under `<webcpp-node-raw-fs>off`; links `/webcpp//node-test` on every target (Targets, above) |
| `webcpp.run-fail` | the program exits with another status | built and run as `webcpp.run`'s, and links `/webcpp//node-test` likewise |
| `webcpp.compile` | the sources compile | no program is linked; takes `/webcpp//node-test` for its header |
| `webcpp.compile-fail` | the sources do not compile | left out of clang-tidy; any error passes it, the wrong one included; takes `/webcpp//node-test` for its header |
| `webcpp.link-fail` | the compiled sources fail to link | use a matching successful control to distinguish the intended incompatibility from unrelated failures; the sources remain in clang-tidy |
| `webcpp.compile-diagnostic` | the sources stop with every error they state in clang's `-verify` comments, `// expected-error@<file>:* {{<message>}}` for a header they include or `// expected-error@+1 {{<message>}}` for the next line | compiled with `-Xclang -verify -Xclang -verify-ignore-unexpected=error,note`, so an error not stated and a note are ignored, the cascade that follows a header's `#error` among them; then `tools/compile_diagnostic/check.py` runs the compile again with clang's diagnostic log and fails on any error located in a comment (a `//` one or a `/* */` one over several lines) after an `expected-<kind>` of that comment, which is `-verify`'s own report on a directive it could not read and so dropped (a header it names that cannot be located, a `{{...}}` whose `}}` is not on its line), and on a compile that reports no error at all: each directive clang reads, every one outside a branch the preprocessor skips, must be read whole, the header it names found and included, and its error raised in that header; built on b2's `clang` toolset only (native clang, `clang-wasip2`, `clang-wasip3`) and skipped elsewhere, since `-verify` is clang's: a refusal would turn every gcc and msvc lane red for a declaration that holds; left out of clang-tidy; takes `/webcpp//node-test` for its header |
| `webcpp.boost-test` | every case of the Boost.Test suite passes | native only, whatever the Jamfile declares; the header-only framework, `tools/boost_test_runner.cpp`, is one object of the suite's, always compiled with exceptions |
| `webcpp.source-only` | | declares child source directories whose original Jamfiles are not WebCPP projects; use in `build.jam` before discovery; it changes neither explicit compilation nor lint |
| `webcpp.example` | the program exits with 0, and its standard output, carriage returns removed, equals `<stem>.expected` beside it | its standard input is `<stem>.input` beside it, else empty, never the terminal, on every target (wasmtime passes it through, and node under `-sNODERAWFS=1`); run through `testing.launcher` for WASI, and on emscripten with the node on `PATH`, not the one b2's toolset registered, which b2 gives only to its own testing rules, by `tools/example/run_example.py`, which names a failing exit status (or the signal) before the diff; always run again, and `<stem>.input` is a source of the run; links `/webcpp//node-test` on every target (Targets, above) |
| `webcpp.example` | the program exits with 0, and its standard output, carriage returns removed, equals `<stem>.expected` beside it | its standard input is `<stem>.input` beside it, else empty, never the terminal, on every target (wasmtime passes it through, and node under `-sNODERAWFS=1`, which `<webcpp-node-raw-fs>off` replaces with NODEFS); run through `testing.launcher` for WASI, and on emscripten with the node on `PATH`, not the one b2's toolset registered, which b2 gives only to its own testing rules, by `tools/example/run_example.py`, which names a failing exit status (or the signal) before the diff; always run again, and `<stem>.input` is a source of the run; links `/webcpp//node-test` on every target (Targets, above) |
| `webcpp.link` | the program links | never run: a program for a browser, which node refuses to run (`-sENVIRONMENT=web`), or one that needs the network; b2's `link` test, which `--dump-tests` lists and the report shows as a link test; never linked with `-sNODERAWFS=1`. The explicit target `<name>-program` is the same program, an `exe` of the same sources and requirements, `<name>-program.js` on emscripten, for a target that needs its files, such as a page that loads it. An example Jamfile's is shown on the page by its code, and has no `.expected` (chapter 3) |
| `webcpp.headers-alone` | each public header compiles alone | one test per header, `alone-<path>` with `/` as `-` (`alone-xactor-scheduler`), against `/webcpp/<library>//<library>` and the requirements given, for the targets given or the Jamfile's; `only` restricts a call to the public headers its globs match, relative to `<include-root>/webcpp/` (`wasi/http/response.hpp`), a glob that matches none stopping the build; a library may call it several times, and a header two calls take stops the build, naming it |
| `webcpp.data` | | requirements, or usage requirements, that give a program of `webcpp.run` or `webcpp.run-fail` the absolute directories, each read at the same path on every target: on wasip2 and wasip3 wasmtime preopens it (`wasmtime --dir="<directory>" <program>`); natively and on emscripten (`-sNODERAWFS=1`) the program reads the host's files already. A relative directory stops the build, as does one whose path holds `"`, `$` or a backquote, which the shell would read inside `--dir="..."`, naming the character |
Expand Down
Loading
Loading