rules_probe_rs 0.0.6Latest published 1.4y ago
MODULE.bazel
bazel_dep(name = "rules_probe_rs", version = "0.0.6")
README

Rust ❤️ Bazel: rules_probe_rs

GitHub license GitHub stars GitHub issues

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!

Features

Installation

Official releases

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")

From source (this repository)

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")

RTT support using 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"

About

Bazel support for probe.rs

@hexdae/rules_probe_rs@hexdae

Languages

Smarty3.7%
Dockerfile2.2%

Maintainers

@hexdae

Versions

0.0.6 +20d2025-05-20
0.0.5 +5d2025-04-29
0.0.4 +19h2025-04-23
0.0.3 +8.3mo2025-04-23
0.0.2 +15h2024-08-16
0.0.12024-08-15