faq: embassy-time was split into three packages, update faq accordingly

I ran into this issue when I had to pull in embassy-nrf from git,
though cargo didn't complain about conflicting embassy-time links.
This commit is contained in:
Priit Laes 2024-02-09 10:15:15 +02:00
parent 6e2d54c40b
commit cbdc49ef8d

View file

@ -124,15 +124,18 @@ You have multiple versions of the same crate in your dependency tree. This means
embassy crates are coming from crates.io, and some from git, each of them pulling in a different set embassy crates are coming from crates.io, and some from git, each of them pulling in a different set
of dependencies. of dependencies.
To resolve this issue, make sure to only use a single source for all your embassy crates! To do this, To resolve this issue, make sure to only use a single source for all your embassy crates!
you should patch your dependencies to use git sources using `[patch.crates.io]` and maybe `[patch.'https://github.com/embassy-rs/embassy.git']`. To do this, you should patch your dependencies to use git sources using `[patch.crates.io]`
and maybe `[patch.'https://github.com/embassy-rs/embassy.git']`.
Example: Example:
[source,toml] [source,toml]
---- ----
[patch.crates-io] [patch.crates-io]
embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" } embassy-time-queue-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" }
embassy-time-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" }
# embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" }
---- ----
Note that the git revision should match any other embassy patches or git dependencies that you are using! Note that the git revision should match any other embassy patches or git dependencies that you are using!