Skip to content

Commit 089b283

Browse files
committed
Add lttng example
1 parent 11a35f7 commit 089b283

File tree

10 files changed

+1661
-3
lines changed

10 files changed

+1661
-3
lines changed

.bazelci/presubmit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,14 @@ tasks:
819819
run_targets:
820820
- "//pkg_a:pkg_a_binary"
821821
- "//pkg_b:pkg_b_binary"
822+
example_lttng_ust_rs:
823+
name: LTTng UST RS example
824+
platform: ubuntu2204
825+
working_directory: examples/lttng_ust_rs
826+
build_targets:
827+
- "//..."
828+
test_targets:
829+
- "//..."
822830
ubuntu2204_bzlmod_bcr:
823831
name: bzlmod BCR presubmit
824832
platform: ubuntu2204

examples/all_crate_deps/MODULE.bazel.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/lttng_ust_rs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bazel-*
2+
user.bazelrc

examples/lttng_ust_rs/BUILD.bazel

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
2+
load("@rules_rust//rust:defs.bzl", "rust_binary")
3+
4+
rust_binary(
5+
name = "lttng_ust_rs",
6+
srcs = ["src/main.rs"],
7+
deps = [
8+
":build_script",
9+
"@crates//:lttng-ust",
10+
],
11+
)
12+
13+
cargo_build_script(
14+
name = "build_script",
15+
srcs = ["build.rs"],
16+
deps = [
17+
"@crates//:lttng-ust",
18+
"@crates//:lttng-ust-generate",
19+
],
20+
)

0 commit comments

Comments
 (0)