1 | [package] |
2 | authors = ["The Knurling Authors" ] |
3 | categories = ["embedded" , "no-std" ] |
4 | description = "Panic handler that exits `probe-run` with an error code" |
5 | edition = "2021" |
6 | keywords = ["knurling" , "panic-impl" , "defmt" , "probe-run" ] |
7 | license = "MIT OR Apache-2.0" |
8 | name = "panic-probe" |
9 | readme = "README.md" |
10 | repository = "https://github.com/knurling-rs/defmt" |
11 | version = "0.3.2" |
12 | |
13 | [dependencies] |
14 | cortex-m = "0.7" |
15 | defmt = { version = "0.3" , path = "../../defmt" , optional = true } |
16 | rtt-target = { version = "0.5" , optional = true } |
17 | |
18 | |
19 | [features] |
20 | # Print the panic message using `rtt-target`. |
21 | print-rtt = ["rtt-target" ] |
22 | # Print the panic message using `defmt`. |
23 | print-defmt = ["defmt" , "defmt-error" ] |
24 | |
25 | defmt-error = [] # internal feature, do not use |
26 | |
27 | [package.metadata.docs.rs] |
28 | default-target = "thumbv7m-none-eabi" |
29 | |