The treedirstate and rusttreedirstate packages are only built if a suitable version of Cargo is available. Differential Revision: https://phab.mercurial-scm.org/D1412