refactor(wsdb): migrate aztec-wsdb to ipc-codegen + ipc-runtime#23611
Merged
Conversation
cd8adea to
e1d3933
Compare
41fcedb to
0588ea3
Compare
fd004f6 to
30fd5bd
Compare
0173890 to
5112588
Compare
30fd5bd to
2bab045
Compare
5112588 to
ffa4943
Compare
2bab045 to
57b6b45
Compare
ffa4943 to
3e62454
Compare
57b6b45 to
9cd2d77
Compare
3e62454 to
66e928d
Compare
9cd2d77 to
187b545
Compare
66e928d to
e6fa350
Compare
187b545 to
ebd9a27
Compare
7e910a7 to
f4dc241
Compare
52b4f2c to
aab166f
Compare
026309b to
4fa21b1
Compare
81bee6d to
787c442
Compare
ludamad
reviewed
Jun 11, 2026
|
|
||
| // Tool to make header only libraries (i.e. CLI11 and msgpack, though it has a bundled copy) | ||
| // not use exceptions with minimally invaslive changes | ||
| // not use exceptions with minimally invaslive changes. |
Collaborator
|
No qualms, but I expect someone more familiar with WSDB should have a look |
ludamad
approved these changes
Jun 11, 2026
2ff7bc6 to
3ab3f30
Compare
bb8aba6 to
01f3595
Compare
3ab3f30 to
4c4c97b
Compare
01f3595 to
6227eeb
Compare
4c4c97b to
f059d43
Compare
6227eeb to
c2c6c29
Compare
f059d43 to
643bb54
Compare
c2c6c29 to
22f0d91
Compare
22f0d91 to
4da4de7
Compare
4da4de7 to
dfdb926
Compare
643bb54 to
1ccafb3
Compare
dfdb926 to
031e54b
Compare
Generate the @aztec/wsdb TS package and the wsdb C++ client/server from wsdb_schema.jsonc via ipc-codegen instead of the hand-written bindings. Add a "bin" entry to the generated package.json (when the package wraps a native binary) so the binary lands on the user's PATH on install. The bin target is a generated JS launcher (src/bin.ts -> dest/bin.js) that resolves the native binary via the same per-arch resolution as the spawned client and execs it forwarding argv/stdio/exit code — the binary itself ships in the per-arch optional-dependency packages, and npm only links the main package's own bin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates
aztec-wsdbto the shared/ipc-codegen+/ipc-runtimefoundation from #23610, and introduces the generated@aztec/wsdbTypeScript service package.This is the second PR in the single IPC stack.
Stack
cl/ipc-foundationcl/ipc-wsdb-migrate— this PRcl/ipc-bb-migratecl/ipc-bb-rs-migratecl/ipc-bb-js-migratecl/ipc-3-avm-wsdb-cutovercl/ipc-4-avm-binarycl/ipc-5-avm-cutoverWhat changes
C++ wsdb
wsdb_schema.jsonnext to the wsdb C++ service.ipc_runtimeserver/client helpers and signal handling.ipc_runtimeCMake target, include path, throw macro guard, and msgpack adaptor guards so legacy bb serialization and generated IPC support can coexist.Generated TypeScript package
wsdb/package generated from the wsdb schema.wsdb/bootstrap.shgenerateswsdb/ts, builds it, copies the hostaztec-wsdbbinary, and prepares the host arch package.@aztec/wsdb-{linux,darwin}-{x64,arm64}as optional dependencies directly inpackage.json.@aztec/wsdband get the matching arch package automatically.ci3/release_prep_package_jsonnow only stamps declared dependencies; it no longer discovers and injects arch packages at release time.Validation
wsdb/bootstrap.sh@aztec/wsdb.@aztec/ipc-runtime, and wsdb arch package deps stamp to the release version../bootstrap.shpassed on this branch during stack validation.wsdb/bootstrap.shafter moving the barretenberg C++ integration from feat(ipc): add /ipc-codegen and /ipc-runtime foundation packages #23610 into this PR.