On Mon, Apr 10, 2023 at 08:53:55PM +0200, Theo Buehler wrote:

Hello Theo,

> with something like this in Cargo.toml:
> 
> [dependencies.ring]
> version         = "^0.16"
> path = "/usr/local/share/ring-0.16.20"

In case it's useful to anyone else, one can set this globally in
~/.cargo/config.toml (and avoid tweaking multiple Cargo.toml's, which can be
a pain with dependencies) with:

  [patch.crates-io]
  ring = { path = "/usr/local/share/ring-0.16.20" }

However, there is one gotcha: this will cause your Cargo.lock to be altered,
so if you're working on a project with a checked-in Cargo.lock, you need to
be careful.


Laurie

Reply via email to