Set specific version of the dependency of a project's dependency in Cargo.toml or Cargo.lock

前端 未结 2 1408
北海茫月
北海茫月 2020-12-04 02:19

Let\'s say my project A depends on library B that depends on library C.

Library B sets the dependency version to \"*\" (any) so cargo will download the latest versio

2条回答
  •  甜味超标
    2020-12-04 03:02

    Since the anwser provided, Cargo has added the [patch] section to the manifest which allows you to do this use case.

    overriding-dependencies

提交回复
热议问题