I was reading about overriding dependencies in Cargo and I found this from cargo book.
inorder to patch uuid
crate I need to write something like this in my toml
file
[patch.crates-io]
uuid = { path = "../path/to/uuid" }
Here I understand that patch
might be a keyword which Cargo understands but I wanted to know what exactly crates-io
mean here? what if i have a dependency not from crates.io and from github like this
[dependencies]
foo = { git = "http://github.com/foo-crate", branch = "trunk",}
How do i patch foo
here?