commit | 6a3467248f7baa8078eb7dff048b9f1261fb01ec | [log] [tgz] |
---|---|---|
author | Davide Asnaghi <30296575+hexdae@users.noreply.github.com> | Sun Apr 27 15:44:06 2025 -0400 |
committer | GitHub <noreply@github.com> | Sun Apr 27 15:44:06 2025 -0400 |
tree | 3e568f2b57c14dd9a2d8ed33d83e365ad0aa238f | |
parent | e000a1c604dfc4913d8c47dd4a3fc8a5dfe0f27c [diff] | |
parent | b6bcbade86aecaa5cff46594db1f93fcc80e6e98 [diff] |
Merge pull request #6 from davexroth/fix_checksums [ARCHIVES] Fix versions checksums and add e2e test for all platforms
This project aims to provide a simple way to run probe-rs from bazel, similar to the function cargo embed
has in the rust ecosystem.
If this project was useful to you, give it a ⭐️ and I'll keep improving it!
Official releases are available in the BCR, and also at https://github.com/hexdae/rules_probe_rs/releases.
bazel_dep(name = "rules_probe_rs", version = "<version>") probe_rs = use_extension("@rules_probe_rs//probe_rs:extensions.bzl", "probe_rs") probe_rs.tools(version = "0.27.0",) use_repo(probe_rs, "probe_rs")
bazel_dep(name = "rules_probe_rs", version = "<version>") git_override( module_name = "rules_probe_rs", remote = "https://github.com/hexdae/rules_probe_rs.git", commit = "<commit>", ) probe_rs = use_extension("@rules_probe_rs//probe_rs:extensions.bzl", "probe_rs") probe_rs.tools(version = "0.27.0",) use_repo(probe_rs, "probe_rs")
DEFMT_LOG
You can enable RTT support for a specific target by adding the following to your BUILD.bazel
rust_binary target.
rust_binary( ... rustc_env = { "DEFMT_LOG": "trace", }, ... )
Alternatively, you can enable RTT support for all targets by adding the following to your .bazelrc
.
build --action_env=DEFMT_LOG="trace"