Repository navigation
Conversation
The CMake build had fallen behind the Bazel one. protoc-gen-phaser did not compile, because the plugin sources and the include paths Bazel remaps were missing. The runtime lacked payload_buffer.cc and message_property.cc, and generated libraries did not link the descriptor bank or the Arrow, Avro and Parquet runtimes that generated code calls. - Build the full plugin, with forwarding headers for the remapped include paths. - Add the phaser_bank_protobuf, phaser_arrow, phaser_avro, phaser_parquet and phaser_c libraries, and link them into generated libraries. - phaser_add_library takes FRONTEND c, and RUST for the Rust bindings over the C API. Their source file is in the library's PHASER_RUST_SOURCE property. - Move the crate attributes out of rust_support.rs into rust_crate_attributes.rs, so that a Cargo crate can include!() the bindings. The Bazel rule prepends them, and its crate is unchanged. - Add a CMake smoke test project and a CI job that builds it, compiles the Rust bindings and runs a program that reads a C++ message through the C API.
dallison
added a commit
to dallison/subspace
that referenced
this pull request
Nov 6, 2026
- crc32.cc included <nmmintrin.h> inside namespace subspace, which broke libc++ on Android x86_64, where SSE4.2 is on by default. - The ASIL oversized response test bound a filesystem socket, but Connect() uses the abstract namespace on Linux. On a failed connect it also hung, as closing a socket does not wake accept() on Linux. - The CMake build of the Rust client had no Phaser bindings. It now generates them with phaser's C frontend and links their C++ code into one shared library for Cargo. The new phaser_c crate includes them. - Pin phaser to dallison/phaser#22, which brings phaser's CMake build up to date and adds the C and Rust output.
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.
The CMake build had fallen behind the Bazel one, so phaser 3.1.1 cannot be built with CMake. Subspace's CMake CI fails on it:
protoc-gen-phaserdoes not compile (phaser/plugins/ros/ros_codegen_helpers.h: No such file or directory).What was missing
generator_plugin.cc, the C and Python emitters, and the Arrow, Avro, Parquet, protobuf and ROS codegen). Also the include paths that Bazel remaps withstrip_include_prefix/include_prefix.payload_buffer.ccandmessage_property.cc.Changes
phaser_bank_protobuf,phaser_arrow,phaser_avro,phaser_parquetandphaser_clibraries, and link them into generated libraries.phaser_add_librarytakesFRONTEND c, andRUSTfor the Rust bindings over the C API. The bindings' source file is in the library'sPHASER_RUST_SOURCEproperty.rust_support.rsintorust_crate_attributes.rs, so that a Cargo crate caninclude!()the bindings. The Bazel rule prepends them, and its crate is unchanged.libprotobufis missing, sincephaser_bank_protobufneeds it in cross-compiles too.cmake/smoke_test), and a CI job for it on Linux and macOS. It generates a library with each frontend, compiles the Rust bindings, and runs a program that reads a C++ message's native payload through the C API.Testing
RUST, and its Cargo tests.bazel test //phaser/testdata:phaser_rust_testpasses, and the assembled crate is unchanged.