From 7c217279433633cb1254aff7dc219db1f6aa6a51 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 27 Jul 2015 14:45:44 -0400 Subject: [PATCH] Update override documentation * use crates.io example * mention absolute paths Fixes #1279 --- src/doc/guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index fca01ac726d..393e9998d2f 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -328,8 +328,8 @@ name = "conduit-static" version = "0.1.0" authors = ["Yehuda Katz "] -[dependencies.conduit] -git = "https://github.com/conduit-rust/conduit.git" +[dependencies] +conduit = "0.7" ``` You check out a local copy of `conduit`, let's say in your `~/src` directory: @@ -373,10 +373,10 @@ paths = ["/path/to/project/conduit"] This array should be filled with directories that contain a `Cargo.toml`. In this instance, we're just adding `conduit`, so it will be the only one that's -overridden. +overridden. This path must be an absolute path. Note: using a local configuration to override paths will only work for crates -that have been published to crates.io. You cannot use this feature to tell Cargo +that have been published to crates.io. You cannot use this feature to tell Cargo how to find local unpublished crates. More information about local configuration can be found in the [configuration