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(