diff options
| author | James Munns <[email protected]> | 2024-05-12 21:07:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-12 21:07:37 +0200 |
| commit | 3294ca36ce586d051d67875ca45b1bd2d1f4bc65 (patch) | |
| tree | 19e023e2aec44f2e51a391a85bde08e5dacef1d8 /docs/modules | |
| parent | 4cade64ebd34bf93458f17cfe85c5f710d0ff13c (diff) | |
FAQ: add `patch.crates-io` example
Diffstat (limited to 'docs/modules')
| -rw-r--r-- | docs/modules/ROOT/pages/faq.adoc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/faq.adoc b/docs/modules/ROOT/pages/faq.adoc index a074594cc..fe30b68d6 100644 --- a/docs/modules/ROOT/pages/faq.adoc +++ b/docs/modules/ROOT/pages/faq.adoc | |||
| @@ -290,3 +290,25 @@ General steps: | |||
| 290 | 5. Copy data to that region before using BDMA. | 290 | 5. Copy data to that region before using BDMA. |
| 291 | 291 | ||
| 292 | See link:/examples/stm32h7/src/bin/spi_bdma.rs[this example] for more details. | 292 | See link:/examples/stm32h7/src/bin/spi_bdma.rs[this example] for more details. |
| 293 | |||
| 294 | === How do I switch to the `main` branch? | ||
| 295 | |||
| 296 | Sometimes to test new changes or fixes, you'll want to switch your project to using a version from GitHub. | ||
| 297 | |||
| 298 | You can add a section to your `Cargo.toml` file like this, you'll need to patch ALL embassy crates to the same revision: | ||
| 299 | |||
| 300 | Using `patch` will replace all direct AND indirect dependencies. | ||
| 301 | |||
| 302 | [source,toml] | ||
| 303 | ---- | ||
| 304 | [patch.crates-io] | ||
| 305 | # make sure to get the latest git rev from github, you can see the latest one here: | ||
| 306 | # https://github.com/embassy-rs/embassy/commits/main/ | ||
| 307 | embassy-embedded-hal = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 308 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 309 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 310 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 311 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 312 | embassy-usb = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 313 | embassy-usb-driver = { git = "https://github.com/embassy-rs/embassy", rev = "4cade64ebd34bf93458f17cfe85c5f710d0ff13c" } | ||
| 314 | ---- | ||
