Skip to content

Commit

Permalink
Add precision on overriding a repository [patch]
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 5, 2018
1 parent a44612f commit b21dce3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/doc/src/reference/specifying-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,17 @@ the new `uuid` crate applies to *both* our dependency on `uuid` and the
version for this entire crate graph, 1.0.1, and it'll be pulled from the git
repository.

#### Overriding repository URL

In case the dependency you want to override isn't loaded from `crates.io`, you'll have to change a bit how you use `[patch]`:

```
[patch."https://github.com/your/repository"]
my-library = { path = "../my-library/path" }
```

And that's it!

### Prepublishing a breaking change

As a final scenario, let's take a look at working with a new major version of a
Expand Down

0 comments on commit b21dce3

Please sign in to comment.