Tinker Dependencies

by Samy (Kondasamy Jayaraman)

cartwheel stands on its own copy of tidystr.9 packages

Chapter 3 of 7

Packages need packages

The tower is not a list: packages stand on packages. Two of them need the same package at different majors.

This chapter: What happens when two packages need different versions of one?

About this chapter

You will learn

  • Dependencies have dependencies of their own
  • A conflict gets a second, nested copy
  • What stands on what

Words you’ll meet

Transitive dependency
A package you get through another package, not one you asked for.
Nested copy
A second copy of a package, kept inside the one that needs the other version.

Step 1 of 4

cartwheel needs tidystr ^1.0.0, a of the app. The app itself needs tidystr ^2.0.0.

Predict how many tidystr crates stand.

How many tidystr crates stand in the tower?