Cargo Features

[dependencies]
probe-rs = { version = "0.23.0", default-features = false, features = ["gdb-server", "rtt", "cli", "builtin-targets", "test", "hexdump"] }
default = builtin-targets, rtt

These default features are set whenever probe-rs is added without default-features = false somewhere in the dependency tree.

gdb-server cli?

Enables gdbstub and itertools

gdbstub:

gdb server

Affects probe-rs::gdb_server

rtt default

Enables kmp

Affects probe-rs::rtt

cli = gdb-server

Enables addr2line ^0.21, byte-unit, bytesize, capstone ^0.11, cargo_metadata, clap, colored, and crossterm

addr2line:

CLI-only

and defmt-decoder, directories, figment, goblin, indicatif, is-terminal, itm, rand, ratatui, rustyline ^13, sanitize-filename, schemafy, serde_json, svd-parser, termtree, textwrap, time, tracing-appender, tracing-subscriber, and git-version

defmt-decoder:

pinned because "unstable" has potential for breaking changes

Affects build::generate_meta

Required by cargo-embed and cargo-flash binaries

builtin-targets default

Enable all built in targets.

test

Enable helpers for testing

Features from optional dependencies

hexdump implicit feature

Enables hexdump

optional