Skip to content

Commit e35a19d

Browse files
authored
docs(rust): add note about cargo update fix in Rust quickstart (#3689)
Ref #3687
1 parent 320fd6e commit e35a19d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/rust/quickstart.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ Add a dependency on ``adbc_core`` and ``adbc_datafusion``:
3232
3333
cargo add adbc_core adbc_datafusion
3434
35+
.. note:: If you get a compiler error (E0308, mismatched types) and a note about
36+
multiple versions of the arrow crates in the dependency graph when you
37+
run ``cargo build``, you can downgrade crate versions so you only have
38+
one version of the arrow crates in your workspace:
39+
40+
.. code-block:: shell
41+
42+
cargo update -p [email protected] -p [email protected] --precise 56.2.0
43+
44+
Note the exact versions in the command above may need to be changed.
45+
Use ``cargo tree`` to find the versions affecting your workspace. See
46+
the `Version Incompatibility Hazards <https://doc.rust-lang.org/cargo/reference/resolver.html#version-incompatibility-hazards>`__
47+
in the Cargo documentation for more information.
48+
3549
Loading DataFusion
3650
==================
3751

0 commit comments

Comments
 (0)