Skip to content

Instantly share code, notes, and snippets.

@rrichardson
Created April 25, 2024 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rrichardson/0170ffe16e51ca9ed5f35814d3b4f44c to your computer and use it in GitHub Desktop.
Save rrichardson/0170ffe16e51ca9ed5f35814d3b4f44c to your computer and use it in GitHub Desktop.
error: failed to select a version for `wasm-bindgen-shared`.
    ... required by package `wasm-bindgen-macro-support v0.2.70`
    ... which satisfies dependency `wasm-bindgen-macro-support = "=0.2.70"` of package `wasm-bindgen-macro v0.2.70`
    ... which satisfies dependency `wasm-bindgen-macro = "=0.2.70"` of package `wasm-bindgen v0.2.70`
    ... which satisfies dependency `wasm-bindgen = "^0.2.70"` of package `web-time v1.1.0`
    ... which satisfies dependency `web-time = "^1.0"` of package `minstant v0.1.7`
    ... which satisfies dependency `minstant = "^0.1.7"` of package `glommio v0.8.0 (/home/ririchardson/Projects/glommio/glommio)`
    ... which satisfies path dependency `glommio` (locked to 0.8.0) of package `examples v0.0.0 (/home/ririchardson/Projects/glommio/examples)`
versions that meet the requirements `=0.2.70` are: 0.2.70

the package `wasm-bindgen-shared` links to the native library `wasm_bindgen`, but it conflicts with a previous package which links to `wasm_bindgen` as well:
package `wasm-bindgen-shared v0.2.86 (registry `artifactory`)`
    ... which satisfies dependency `wasm-bindgen-shared = "=0.2.86"` of package `wasm-bindgen-macro-support v0.2.86 (registry `artifactory`)`
    ... which satisfies dependency `wasm-bindgen-macro-support = "=0.2.86"` of package `wasm-bindgen-macro v0.2.86 (registry `artifactory`)`
    ... which satisfies dependency `wasm-bindgen-macro = "=0.2.86"` of package `wasm-bindgen v0.2.86 (registry `artifactory`)`
    ... which satisfies dependency `wasm-bindgen = "^0.2.86"` of package `js-sys v0.3.63 (registry `artifactory`)`
    ... which satisfies dependency `js-sys = "^0.3.63"` of package `opentelemetry v0.22.0 (registry `artifactory`)`
    ... which satisfies dependency `opentelemetry = "^0.22.0"` of package `glommio v0.8.0 (/home/ririchardson/Projects/glommio/glommio)`
    ... which satisfies path dependency `glommio` (locked to 0.8.0) of package `examples v0.0.0 (/home/ririchardson/Projects/glommio/examples)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "wasm_bindgen"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `wasm-bindgen-shared` which could resolve this conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment