Skip to content

Commit 777a53c

Browse files
authored
build: install cxxbridge-cmd to build Rust-C++ bindings (#426)
This adds the Rust tool to generate h and cc that facilitate calling Rust from C++ and C++ from Rust. Add it to the build environment. (cherry picked from commit 29865b9)
1 parent d7f9f1d commit 777a53c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-tools/final/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ RUN sudo wget \
9090
# Rust toolchain for building Rust components
9191
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_TOOLCHAIN} && \
9292
. "$HOME/.cargo/env" && \
93-
rustup component add rustfmt clippy
93+
rustup component add rustfmt clippy && \
94+
cargo install cxxbridge-cmd
9495
ENV PATH="${HOME}/.cargo/bin:${PATH}"
9596

9697
# Preprocessor for BPF used by cmake

0 commit comments

Comments
 (0)