teleprobe-meta

Crates.ioteleprobe-meta
lib.rsteleprobe-meta
version1.1.0
sourcesrc
created_at2023-05-29 21:18:27.329162
updated_at2023-06-06 00:25:46.669948
descriptionEmbed teleprobe metadata into ELF binaries
homepage
repositoryhttps://github.com/embassy-rs/teleprobe
max_upload_size
id877330
size3,511
Dario Nieuwenhuis (Dirbaio)

documentation

README

teleprobe-meta

This crate allows embedding metadata into ELF binaries so that teleprobe can autodetect it. This way you can run the tests by simply doing teleprobe client run <ELF>, without adding any extra flags.

Usage

First, include the teleprobe.x linker script. Either via build.rs (recommended)

println!("cargo:rustc-link-arg-bins=-Tteleprobe.x");

or in .cargo/config.toml (older way, not recommended)

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
rustflags = [
  "-C", "link-arg=-Tteleprobe.x",
]

Then, you can specify metadata, for example:

teleprobe_meta::target!(b"rpi-pico");

Minimum supported Rust version (MSRV)

teleprobe-meta is guaranteed to compile on the latest stable Rust version at the time of release. It might compile with older versions but that may change in any new patch release.

License

This work is licensed under either of

at your option.

Commit count: 45

cargo fmt