From e5eaf9d06a515489552478e2652a7474d0e1487c Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 10 Oct 2024 23:10:53 +0200 Subject: [PATCH] [#439] Try fix cbindgen generation for bazel 6.2 --- BUILD.bazel | 2 ++ iceoryx2-ffi/ffi/BUILD.bazel | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 00ac89593..178113277 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -10,6 +10,8 @@ # # SPDX-License-Identifier: Apache-2.0 OR MIT +package(default_visibility = ["//visibility:public"]) + exports_files([ "LICENSE-APACHE", "LICENSE-MIT", diff --git a/iceoryx2-ffi/ffi/BUILD.bazel b/iceoryx2-ffi/ffi/BUILD.bazel index 2c44a3585..a656382ce 100644 --- a/iceoryx2-ffi/ffi/BUILD.bazel +++ b/iceoryx2-ffi/ffi/BUILD.bazel @@ -23,12 +23,13 @@ filegroup( genrule( name = "iceoryx2-ffi-cbindgen", srcs = glob(["src/**/*.rs"]) + [ + "//:Cargo.toml", + "Cargo.toml", "cbindgen.toml", ":cbindgen-cli", - "src" ], outs = ["include/iox2/iceoryx2.h"], - cmd = "$(execpath :cbindgen-cli) --config $(location cbindgen.toml) --output $(OUTS) $(location src)/..", + cmd = "$(execpath :cbindgen-cli) --config $(location cbindgen.toml) --output $(OUTS) $$(dirname $(location Cargo.toml))", ) rust_shared_library(