probe-rs-tools 0.29.1

A collection of on chip debugging tools to communicate with microchips.
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::{Context, Result};
use probe_rs_mi::meta::Meta;

pub fn current_meta() -> Result<Meta> {
    Ok(Meta {
        version: env!("PROBE_RS_VERSION")
            .parse()
            .context("failed to parse the built in version info")?,
        commit: env!("PROBE_RS_LONG_VERSION"),
        arch: std::env::consts::ARCH,
        os: std::env::consts::OS,
    })
}