2 stable releases

1.1.0 Jun 6, 2023
1.0.0 May 29, 2023

#1961 in Embedded development

Download history 1/week @ 2024-02-14 6/week @ 2024-02-21 40/week @ 2024-02-28 36/week @ 2024-03-06 15/week @ 2024-03-13 1/week @ 2024-03-20 12/week @ 2024-03-27 51/week @ 2024-04-03 12/week @ 2024-04-10

76 downloads per month

MIT/Apache

4KB

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.

No runtime deps