Skip to content

Commit 3647b43

Browse files
committed
prost: Move external tool into build-script
1 parent f8b2d54 commit 3647b43

File tree

4,264 files changed

+509430
-3101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,264 files changed

+509430
-3101
lines changed

messages/CMakeLists.txt

-7
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ add_custom_command(
5151
--proto_path=${CMAKE_CURRENT_SOURCE_DIR}
5252
'--nanopb_out=-I${CMAKE_CURRENT_SOURCE_DIR}:${CMAKE_CURRENT_BINARY_DIR}'
5353
${PROTO_FILES_ABSOLUTE}
54-
# We build the Rust protobuf files here and put them straight into the crate.
55-
# This way, the crate can be compiled and tested without relying on cmake environment vars.
56-
# Using prost-build the normal way as part of build.rs does not work due to a cargo bug:
57-
# https://github.com/danburkert/prost/issues/344#issuecomment-650721245
58-
COMMAND
59-
${CMAKE_COMMAND} -E env
60-
cargo run --manifest-path=${CMAKE_SOURCE_DIR}/tools/prost-build/Cargo.toml -- --messages-dir=${CMAKE_CURRENT_SOURCE_DIR} --out-dir=${CMAKE_SOURCE_DIR}/src/rust/bitbox02-rust/src/
6154
)
6255

6356
add_custom_target(

0 commit comments

Comments
 (0)