aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDániel Buga <[email protected]>2023-11-27 18:26:52 +0100
committerDániel Buga <[email protected]>2023-11-28 08:12:23 +0100
commita3c99f032460a503ac8a55a613f060801842fb5d (patch)
treea3957b9e787740910a7ebc44d4c00abf3aefa138 /docs
parent76f3a11f43b9f64d2acfe2ebd747fb2741c73bfc (diff)
Add multiple dependency error faq
Diffstat (limited to 'docs')
-rw-r--r--docs/modules/ROOT/pages/faq.adoc19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/faq.adoc b/docs/modules/ROOT/pages/faq.adoc
index 37a2605d5..df3f66658 100644
--- a/docs/modules/ROOT/pages/faq.adoc
+++ b/docs/modules/ROOT/pages/faq.adoc
@@ -116,3 +116,22 @@ features = [
116 # ... 116 # ...
117] 117]
118---- 118----
119
120== Error: `Only one package in the dependency graph may specify the same links value.`
121
122You have multiple versions of the same crate in your dependency tree. This means that some of your
123embassy crates are coming from crates.io, and some from git, each of them pulling in a different set
124of dependencies.
125
126To resolve this issue, make sure to only use a single source for all your embassy crates! To do this,
127you should patch your dependencies to use git sources using `[patch.crates.io]` and maybe `[patch.'https://github.com/embassy-rs/embassy.git']`.
128
129Example:
130
131[source,toml]
132----
133[patch.crates-io]
134embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" }
135----
136
137Note that the git revision should match any other embassy patches or git dependencies that you are using!