Skip to content

Commit 03a95c5

Browse files
authored
Add note for older cargo versions
Believe it's cargo versions < 0.20
1 parent 75dbb19 commit 03a95c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ In your crate directory, run:
431431
cargo publish --index file:///path/to/your/crates.io/checkout/tmp/index-co
432432
```
433433
434+
> If you're using an older version of cargo you should use `--host` instead of `--index`.
435+
434436
where `file:///path/to/your/crates.io/checkout` is the directory that you have
435437
crates.io's code in, and `tmp/index-co` is the directory with the git index
436438
that `./script/init-local-index.sh` set up.

0 commit comments

Comments
 (0)