Skip to content

Commit

Permalink
[#390] Add bazel files
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Nov 20, 2024
1 parent ddf7f76 commit d691dec
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
35 changes: 35 additions & 0 deletions examples/rust/event_based_communication/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

load("@rules_rust//rust:defs.bzl", "rust_binary")

rust_binary(
name = "publisher",
srcs = [
"publisher.rs",
],
deps = [
"//iceoryx2:iceoryx2",
"//examples/rust:examples-common",
],
)

rust_binary(
name = "subscriber",
srcs = [
"subscriber.rs",
],
deps = [
"//iceoryx2:iceoryx2",
"//examples/rust:examples-common",
],
)
35 changes: 35 additions & 0 deletions examples/rust/event_multiplexing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

load("@rules_rust//rust:defs.bzl", "rust_binary")

rust_binary(
name = "notifier",
srcs = [
"notifier.rs",
],
deps = [
"//iceoryx2:iceoryx2",
"//examples/rust:examples-common",
],
)

rust_binary(
name = "wait",
srcs = [
"wait.rs",
],
deps = [
"//iceoryx2:iceoryx2",
"//examples/rust:examples-common",
],
)

0 comments on commit d691dec

Please sign in to comment.