use crates.io versions
also enable panic-probe's 'print-defmt' so panic messages are printed
This commit is contained in:
+3
-12
@@ -8,21 +8,12 @@ version = "0.1.0"
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["testsuite"]
|
members = ["testsuite"]
|
||||||
|
|
||||||
[dependencies.defmt]
|
|
||||||
git = "https://github.com/knurling-rs/defmt"
|
|
||||||
branch = "main"
|
|
||||||
|
|
||||||
[dependencies.defmt-rtt]
|
|
||||||
git = "https://github.com/knurling-rs/defmt"
|
|
||||||
branch = "main"
|
|
||||||
|
|
||||||
[dependencies.panic-probe]
|
|
||||||
git = "https://github.com/knurling-rs/probe-run"
|
|
||||||
branch = "main"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.6.4"
|
cortex-m = "0.6.4"
|
||||||
cortex-m-rt = "0.6.13"
|
cortex-m-rt = "0.6.13"
|
||||||
|
defmt = "0.1.0"
|
||||||
|
defmt-rtt = "0.1.0"
|
||||||
|
panic-probe = { version = "0.1.0", features = ["print-defmt"] }
|
||||||
# TODO(4) enter your HAL here
|
# TODO(4) enter your HAL here
|
||||||
# some-hal = "1.2.3"
|
# some-hal = "1.2.3"
|
||||||
|
|
||||||
|
|||||||
@@ -14,14 +14,10 @@
|
|||||||
$ cargo install flip-link
|
$ cargo install flip-link
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2. The **git** version of `probe-run`:
|
#### 2. `probe-run`:
|
||||||
|
|
||||||
<!-- TODO: update this once defmt is on crates.io? -->
|
|
||||||
``` console
|
``` console
|
||||||
$ cargo install \
|
$ cargo install probe-run
|
||||||
--git https://github.com/knurling-rs/probe-run \
|
|
||||||
--branch main \
|
|
||||||
--features defmt
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 3. [`cargo-generate`]:
|
#### 3. [`cargo-generate`]:
|
||||||
|
|||||||
+3
-14
@@ -10,24 +10,13 @@ version = "0.1.0"
|
|||||||
name = "test"
|
name = "test"
|
||||||
harness = false
|
harness = false
|
||||||
|
|
||||||
[dependencies.defmt]
|
|
||||||
git = "https://github.com/knurling-rs/defmt"
|
|
||||||
branch = "main"
|
|
||||||
|
|
||||||
[dependencies.defmt-rtt]
|
|
||||||
git = "https://github.com/knurling-rs/defmt"
|
|
||||||
branch = "main"
|
|
||||||
|
|
||||||
[dependencies.panic-probe]
|
|
||||||
git = "https://github.com/knurling-rs/probe-run"
|
|
||||||
branch = "main"
|
|
||||||
# enable the `print-defmt` feature for more complete test output
|
|
||||||
features = ["print-defmt"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
{{project-name}} = { path = ".." }
|
{{project-name}} = { path = ".." }
|
||||||
cortex-m = "0.6.3"
|
cortex-m = "0.6.3"
|
||||||
cortex-m-rt = "0.6.12"
|
cortex-m-rt = "0.6.12"
|
||||||
|
defmt = "0.1.0"
|
||||||
|
defmt-rtt = "0.1.0"
|
||||||
|
panic-probe = { version = "0.1.0", features = ["print-defmt" ] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# set logging levels here
|
# set logging levels here
|
||||||
|
|||||||
Reference in New Issue
Block a user