diff --git a/iceoryx2-bb/container/BUILD.bazel b/iceoryx2-bb/container/BUILD.bazel index 45b876a3..4e0d025c 100644 --- a/iceoryx2-bb/container/BUILD.bazel +++ b/iceoryx2-bb/container/BUILD.bazel @@ -33,6 +33,12 @@ rust_library( ], ) +# alias the library which enables the testing feature to avoid the cargo reports iceoryx2-bb-elementary is missed. +alias( + name = "iceoryx2-bb-elementary", + actual = "//iceoryx2-bb/elementary:iceoryx2-bb-elementary-with-feature-testing", +) + rust_test_suite( name = "iceoryx2-bb-container-tests", srcs = glob(["tests/**/*.rs"]), diff --git a/iceoryx2-bb/elementary/BUILD.bazel b/iceoryx2-bb/elementary/BUILD.bazel index ceb655b3..04f9490d 100644 --- a/iceoryx2-bb/elementary/BUILD.bazel +++ b/iceoryx2-bb/elementary/BUILD.bazel @@ -22,6 +22,16 @@ filegroup( rust_library( name = "iceoryx2-bb-elementary", srcs = glob(["src/**/*.rs"]), + crate_features = [ "testing" ], + deps = [ + "//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync", + ], +) + +rust_library( + name = "iceoryx2-bb-elementary-with-feature-testing", + srcs = glob(["src/**/*.rs"]), + crate_features = [ "testing" ], deps = [ "//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync", ],