pub fn print_setup_hints() {
#[cfg(target_os = "linux")]
linux::print_setup_hints();
}
#[cfg(target_os = "linux")]
mod linux {
const SETUP_URL: &str = "https://probe.rs/docs/getting-started/probe-setup/";
pub(super) fn print_setup_hints() {
if std::env::var("PROBE_RS_DISABLE_SETUP_HINTS").is_ok() {
return;
}
tracing::warn!(
"If your probe is plugged in but not listed, or shown as inaccessible, it is most likely a permissions problem."
);
tracing::warn!(
"Your user needs read and write access to the probe's device node: a USB node under /dev/bus/usb, or a serial port such as /dev/ttyACM0."
);
tracing::warn!(
"See {SETUP_URL} for how to set up the required udev rules and group membership."
);
}
}