Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path dependencies are ignored from crates.io #2625

Merged
merged 1 commit into from
Apr 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
@@ -446,6 +446,15 @@ in the `hello_utils` folder (relative to the `Cargo.toml` it’s written in).

And that’s it! The next `cargo build` will automatically build `hello_utils` and
all of its own dependencies, and others can also start using the crate as well.
However, dependencies with only a path are not permitted on crates.io so if we
wanted to publish our `hello_world` crate we would need to publish a version of
`hello_utils` to crates.io (or specify a git repository location) and specify it
in the dependencies line:

```toml
[dependencies]
hello_utils = { path = "hello_utils", version = "0.1.0" }
```

## Travis-CI

3 changes: 3 additions & 0 deletions src/doc/manifest.md
Original file line number Diff line number Diff line change
@@ -149,6 +149,9 @@ You can specify the source of a dependency in a few ways:
inside it. The specified path should be relative to the current `Cargo.toml`.
* If `path` and `git` are omitted, the dependency will come from crates.io, and
the `version` key will be used to indicate the version requirement.
* `path` will be ignored for all dependencies retrieved from crates.io, so `git`
or `version` must be specified for all crate dependencies when uploading to
crates.io.

Dependencies from crates.io can also use a shorthand where just the version
requirement is specified: