]> git.proxmox.com Git - cargo.git/log
cargo.git
7 years ago[cargo_new] Hint to use `cargo init` on existing dir
Behnam Esfahbod [Mon, 7 Aug 2017 16:31:32 +0000 (09:31 -0700)]
[cargo_new] Hint to use `cargo init` on existing dir

The `new` command always expects a non-existing path. The `init` command
always expects an existing path. Therefore, it makes sense to hint to
use `init` if the pre-condition to `new` is not satisfied.

Fixes <https://github.com/rust-lang/cargo/issues/4366>

7 years ago[bin/init] Update USAGE
Behnam Esfahbod [Mon, 7 Aug 2017 16:05:02 +0000 (09:05 -0700)]
[bin/init] Update USAGE

7 years agoAuto merge of #4372 - frankmcsherry:patch-1, r=alexcrichton
bors [Mon, 7 Aug 2017 04:12:18 +0000 (04:12 +0000)]
Auto merge of #4372 - frankmcsherry:patch-1, r=alexcrichton

Modernize explanation of `build.rs`

After some recent head-banging, it was explained to me that `"build.rs"` is a special file name, and that Cargo will build such a file even if you do not expect it to, for example if `Cargo.toml` contains the commented out line

```
#build = "build.rs"
```

Some experimentation lead me to the described behavior, but if it misses any subtle details please feel free to correct. The old text is incorrect, though.

7 years agoAuto merge of #4369 - Wallacoloo:specifying-dependencies-typo, r=alexcrichton
bors [Mon, 7 Aug 2017 03:49:33 +0000 (03:49 +0000)]
Auto merge of #4369 - Wallacoloo:specifying-dependencies-typo, r=alexcrichton

Fix repeated "to to" in Specifying Dependencies

Fixes the typo:

> [...] boil down to the ability to **to** work with a crate [...]

7 years agoModernize explanation of `build.rs`
Frank McSherry [Sun, 6 Aug 2017 20:57:13 +0000 (16:57 -0400)]
Modernize explanation of `build.rs`

After some recent head-banging, it was explained to me that `"build.rs"` is a special file name, and that Cargo will build such a file even if you do not expect it to, for example if `Cargo.toml` contains the commented out line

```
#build = "build.rs"
```

Some experimentation lead me to the described behavior, but if it misses any subtle details please feel free to correct. The old text is incorrect, though.

7 years agoFix repeated "to to" in Specifying Dependencies
Colin Wallace [Sun, 6 Aug 2017 02:01:24 +0000 (19:01 -0700)]
Fix repeated "to to" in Specifying Dependencies

7 years agoAuto merge of #4355 - pornel:docs, r=alexcrichton
bors [Fri, 4 Aug 2017 09:28:33 +0000 (09:28 +0000)]
Auto merge of #4355 - pornel:docs, r=alexcrichton

Expand profile settings descriptions

Flags were described in the format `foobar = true # controls foobar, passes '--foobar' flag`, but this doesn't actually say what `foobar` does. I've expanded the descriptions a little to provide more context.

7 years agoAuto merge of #4360 - sid0:members, r=matklad
bors [Fri, 4 Aug 2017 08:21:55 +0000 (08:21 +0000)]
Auto merge of #4360 - sid0:members, r=matklad

workspace: export Members as part of the public interface

This struct is returned by `Workspace::members`, but there's no way to
refer to it since it's not exported.

7 years agoworkspace: export Members as part of the public interface
Siddharth Agarwal [Fri, 4 Aug 2017 05:33:27 +0000 (22:33 -0700)]
workspace: export Members as part of the public interface

This struct is returned by `Workspace::members`, but there's no way to
refer to it since it's not exported.

7 years agoAuto merge of #4359 - sid0:debug, r=alexcrichton
bors [Fri, 4 Aug 2017 03:52:35 +0000 (03:52 +0000)]
Auto merge of #4359 - sid0:debug, r=alexcrichton

derive Debug for more data structures

This makes it easier for wrappers around Cargo to inspect the contents
of these data structures.

7 years agoderive Debug for more data structures
Siddharth Agarwal [Fri, 4 Aug 2017 01:45:59 +0000 (18:45 -0700)]
derive Debug for more data structures

This makes it easier for wrappers around Cargo to inspect the contents
of these data structures.

7 years agoAuto merge of #4237 - vignesh-sankaran:blacklist-url-doc, r=carols10cents
bors [Thu, 3 Aug 2017 15:01:06 +0000 (15:01 +0000)]
Auto merge of #4237 - vignesh-sankaran:blacklist-url-doc, r=carols10cents

Added documentation blacklisting notes

Added notes regarding [documentation domain blacklisting](https://github.com/rust-lang/crates.io/issues/626) on crates.io

7 years agoExpand profile settings descriptions
Kornel [Wed, 2 Aug 2017 17:11:02 +0000 (18:11 +0100)]
Expand profile settings descriptions

7 years agoAuto merge of #4345 - froydnj:use-noop-more, r=alexcrichton
bors [Mon, 31 Jul 2017 21:31:02 +0000 (21:31 +0000)]
Auto merge of #4345 - froydnj:use-noop-more, r=alexcrichton

use Work::noop() more

Using Work::noop() in these places is clearer.

7 years agoAuto merge of #4344 - froydnj:cargo-rustc-spelling-fixes, r=alexcrichton
bors [Mon, 31 Jul 2017 20:31:58 +0000 (20:31 +0000)]
Auto merge of #4344 - froydnj:cargo-rustc-spelling-fixes, r=alexcrichton

fix some spelling errors in cargo_rustc

7 years agouse Work::noop() more
Nathan Froyd [Mon, 31 Jul 2017 19:59:14 +0000 (15:59 -0400)]
use Work::noop() more

Using Work::noop() in these places is clearer.

7 years agoAuto merge of #4342 - sid0:hgignore, r=alexcrichton
bors [Mon, 31 Jul 2017 19:42:41 +0000 (19:42 +0000)]
Auto merge of #4342 - sid0:hgignore, r=alexcrichton

new: fix hgignore for real

There was an attempt to fix hgignore in #4158, but unfortunately the fix
was incorrect -- hgignore glob syntax is not in fact identical to
gitignore syntax.

To get rooted ignores in Mercurial we must use the regex-based syntax,
so we have no choice but to define a separate set of ignores.

7 years agofix some spelling errors in cargo_rustc
Nathan Froyd [Mon, 31 Jul 2017 19:26:44 +0000 (15:26 -0400)]
fix some spelling errors in cargo_rustc

7 years agoAuto merge of #4343 - sid0:debug, r=alexcrichton
bors [Mon, 31 Jul 2017 19:13:35 +0000 (19:13 +0000)]
Auto merge of #4343 - sid0:debug, r=alexcrichton

derive/impl Debug for a few data structures

I found this to be extremely useful while trying to write a wrapper on
top of cargo.

7 years agoderive/impl Debug for a few data structures
Siddharth Agarwal [Mon, 31 Jul 2017 16:38:43 +0000 (09:38 -0700)]
derive/impl Debug for a few data structures

I found this to be extremely useful while trying to write a wrapper on
top of cargo.

7 years agonew: fix hgignore for real
Siddharth Agarwal [Mon, 31 Jul 2017 01:15:24 +0000 (18:15 -0700)]
new: fix hgignore for real

There was an attempt to fix hgignore in #4158, but unfortunately the fix
was incorrect -- hgignore glob syntax is not in fact identical to
gitignore syntax.

To get rooted ignores in Mercurial we must use the regex-based syntax,
so we have no choice but to define a separate set of ignores.

7 years agoAuto merge of #4340 - debris:fixed_4310, r=alexcrichton
bors [Sun, 30 Jul 2017 17:51:50 +0000 (17:51 +0000)]
Auto merge of #4340 - debris:fixed_4310, r=alexcrichton

Fixed #4310, print useful message when dependency contains a malformed Cargo.toml

fixed #4310

7 years agoRemoved redundant unwrap
debris [Sun, 30 Jul 2017 14:15:35 +0000 (16:15 +0200)]
Removed redundant unwrap

7 years agofixed #4310, print useful information when git Cargo.toml is malformed
debris [Sun, 30 Jul 2017 14:12:18 +0000 (16:12 +0200)]
fixed #4310, print useful information when git Cargo.toml is malformed

7 years agoAuto merge of #4338 - GuillaumeGomez:lint, r=alexcrichton
bors [Fri, 28 Jul 2017 22:40:15 +0000 (22:40 +0000)]
Auto merge of #4338 - GuillaumeGomez:lint, r=alexcrichton

Update to rc error chain

In order to make https://github.com/rust-lang/rust/pull/43009 works, I needed some small updates that are now in error-chain.

7 years agoUpdate error-chain dep for crates-io as well
Guillaume Gomez [Fri, 28 Jul 2017 19:37:08 +0000 (21:37 +0200)]
Update error-chain dep for crates-io as well

7 years agoUpdate to rc error chain
Guillaume Gomez [Fri, 28 Jul 2017 19:12:05 +0000 (21:12 +0200)]
Update to rc error chain

7 years agoAuto merge of #4216 - durka:install-multi, r=alexcrichton
bors [Fri, 28 Jul 2017 16:07:08 +0000 (16:07 +0000)]
Auto merge of #4216 - durka:install-multi, r=alexcrichton

cargo install multiple crates

rust-lang-nursery/rustup.rs#986 for `cargo install`

Revives #2601 @pwoolcoc, replaces #3075 @esclear, closes #2585 @kindlychung @cyplo

Avoids the sticking point of the previous two PRs (multiple registry updates) by threading through a first-run boolean flag to decide whether `select_pkg` needs to call `source.update()`.

There is still the issue that flags such as `--git` and `--vers` are "global" to the multiple packages you may be installing. The workaround is just to run `cargo install` separately. In the future we could add syntax like `cargo install foo=1.0 bar=2.5 quux=git://github.com/durka/quux#dev-branch` or something.

7 years agoAuto merge of #4335 - debris:rebased_4021, r=matklad
bors [Fri, 28 Jul 2017 11:55:38 +0000 (11:55 +0000)]
Auto merge of #4335 - debris:rebased_4021, r=matklad

Rebased and fixed 4025: Apply --all if workspace is virtual

- fixes #4021
- rebased #4025
- fixed issue issue described by @matklad in https://github.com/rust-lang/cargo/pull/4025#pullrequestreview-40660570
- added test `build_virtual_manifest_one_project` which covers the fix

7 years agoUpdated build_virtual_manifest_one_project test
debris [Fri, 28 Jul 2017 11:51:16 +0000 (13:51 +0200)]
Updated build_virtual_manifest_one_project test

7 years agoFixed test_virtual_manifest_all_implied test
debris [Fri, 28 Jul 2017 09:19:54 +0000 (11:19 +0200)]
Fixed test_virtual_manifest_all_implied test

7 years agoFixed bench_virtual_manifest_all_implied test
debris [Thu, 27 Jul 2017 21:20:34 +0000 (23:20 +0200)]
Fixed bench_virtual_manifest_all_implied test

7 years agoProper building virtual manifest with -p flag
debris [Thu, 27 Jul 2017 20:44:45 +0000 (22:44 +0200)]
Proper building virtual manifest with -p flag

7 years agoAdds tests
Romain Sertelon [Fri, 26 May 2017 21:00:45 +0000 (23:00 +0200)]
Adds tests

7 years agoApply --all if workspace is virtual
Romain Sertelon [Wed, 10 May 2017 21:30:32 +0000 (23:30 +0200)]
Apply --all if workspace is virtual

Should help close #4021

7 years agoAuto merge of #4331 - joshtriplett:fix-notices, r=matklad
bors [Thu, 27 Jul 2017 07:04:32 +0000 (07:04 +0000)]
Auto merge of #4331 - joshtriplett:fix-notices, r=matklad

Remove inaccurate (misattributed) copyright notices

As discussed with @aturon, who took it to @rust-lang/core.

LICENSE-MIT and one source file contain inaccurate copyright notices of
the form "Copyright (c) (years) The Rust Project Developers", which
implies that an entity called "The Rust Project Developers" holds
copyrights in Rust. Rust contributors retain their copyrights, and do
not assign them to anyone by contributing.  Remove the inaccurate
notices.

7 years agoCleaned up notes about documentation blacklisting
Vignesh Sankaran [Thu, 27 Jul 2017 05:02:16 +0000 (15:02 +1000)]
Cleaned up notes about documentation blacklisting

7 years agoAdded documentation blacklisting notes
Vignesh [Wed, 28 Jun 2017 13:19:50 +0000 (23:19 +1000)]
Added documentation blacklisting notes

7 years agoRemove inaccurate (misattributed) copyright notices
Josh Triplett [Thu, 27 Jul 2017 00:19:24 +0000 (17:19 -0700)]
Remove inaccurate (misattributed) copyright notices

LICENSE-MIT and one source file contain inaccurate copyright notices of
the form "Copyright (c) (years) The Rust Project Developers", which
implies that an entity called "The Rust Project Developers" holds
copyrights in Rust. Rust contributors retain their copyrights, and do
not assign them to anyone by contributing.  Remove the inaccurate
notices.

7 years agoAuto merge of #4329 - behnam:dev, r=matklad
bors [Wed, 26 Jul 2017 07:34:23 +0000 (07:34 +0000)]
Auto merge of #4329 - behnam:dev, r=matklad

[doc/manifest] Add build-dependencies to Dependency sections list

The `[build-dependencies]` section was missing from the Dependency
sections list, making it hard to find its existence and link to
`specifying-dependencies` page. This puts the section title in the list,
so a normal find works.

Background: https://github.com/rust-lang/cargo/issues/4309#issuecomment-317965620

7 years ago[doc/manifest] Add build-dependencies to Dependency sections list
Behnam Esfahbod [Wed, 26 Jul 2017 06:59:56 +0000 (00:59 -0600)]
[doc/manifest] Add build-dependencies to Dependency sections list

The `[build-dependencies]` section was missing from the Dependency
sections list, making it hard to find its existence and link to
`specifying-dependencies` page. This puts the section title in the list,
so a normal find works.

Background: https://github.com/rust-lang/cargo/issues/4309#issuecomment-317965620

7 years agononzero exit code if some crates didn't install
Alex Burka [Tue, 25 Jul 2017 19:36:42 +0000 (15:36 -0400)]
nonzero exit code if some crates didn't install

7 years agouse top level err handling
Alex Burka [Tue, 25 Jul 2017 19:36:01 +0000 (15:36 -0400)]
use top level err handling

7 years agodon't continue if single install errors
Alex Burka [Mon, 24 Jul 2017 23:25:46 +0000 (19:25 -0400)]
don't continue if single install errors

7 years agoAuto merge of #4317 - iKevinY:options-unit-struct, r=matklad
bors [Sat, 22 Jul 2017 20:53:06 +0000 (20:53 +0000)]
Auto merge of #4317 - iKevinY:options-unit-struct, r=matklad

Convert Options struct into unit struct

Unit struct support was added in Docopt 0.8.1 via docopt/docopt.rs#217. Fixes #4174.

7 years agoConvert Options struct into unit struct
Kevin Yap [Sat, 22 Jul 2017 19:57:55 +0000 (12:57 -0700)]
Convert Options struct into unit struct

Unit struct support was added in Docopt 0.8.1 via
docopt/docopt.rs#217. Fixes #4174.

7 years agoAuto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
bors [Fri, 21 Jul 2017 20:52:24 +0000 (20:52 +0000)]
Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad

tests/build.rs: remove empty components from LD_LIBRARY_PATH to fix #4278

The tests intended to ensure Cargo wouldn't mistakenly add empty components to `LD_LIBRARY_PATH` (or its equivalents) but they could fail when the test runner already had empty components in `LD_LIBRARY_PATH` from their environment.

7 years agotests/build.rs: remove empty components from LD_LIBRARY_PATH
NODA, Kai [Wed, 19 Jul 2017 13:59:50 +0000 (21:59 +0800)]
tests/build.rs: remove empty components from LD_LIBRARY_PATH

This is to amend PR #4278

The tests intended to ensure Cargo wouldn't mistakenly add empty
components to LD_LIBRARY_PATH (or its equivalents) but they could fail
when the test runner already had empty components in LD_LIBRARY_PATH
from their environment.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
7 years agoAuto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton
bors [Thu, 20 Jul 2017 17:06:30 +0000 (17:06 +0000)]
Auto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton

Document the CARGO_CFG_* environment variables - fixes #4302

In order to keep the paragraph brief, I have omitted:

- examples of actual variable names - though adding those might help google.
- mention of `rustc --print cfg` - I think the link to the reference is enough.
- reference to the [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md#lowering-cfg-values-to-cargo-build-script-environment-variables) - I don't think it's needed.

7 years agoAuto merge of #4308 - alexcrichton:bump, r=alexcrichton
bors [Thu, 20 Jul 2017 16:03:36 +0000 (16:03 +0000)]
Auto merge of #4308 - alexcrichton:bump, r=alexcrichton

Bump to 0.22.0 and update deps

7 years agoWork around AppVeyor for now
Alex Crichton [Thu, 20 Jul 2017 15:56:49 +0000 (08:56 -0700)]
Work around AppVeyor for now

7 years agoBump to 0.22.0 and update deps
Alex Crichton [Thu, 20 Jul 2017 15:34:13 +0000 (08:34 -0700)]
Bump to 0.22.0 and update deps

7 years agoDocument the CARGO_CFG_* environment variables - fixes #4302
Ran Benita [Wed, 19 Jul 2017 22:30:32 +0000 (01:30 +0300)]
Document the CARGO_CFG_* environment variables - fixes #4302

7 years agoAuto merge of #4299 - brson:home, r=alexcrichton
bors [Wed, 19 Jul 2017 02:10:52 +0000 (02:10 +0000)]
Auto merge of #4299 - brson:home, r=alexcrichton

Replace homedir definition with home crate

This pulls out the definitions of these functions into a single crate, [home](https://github.com/brson/home), to act as their canonical definition.

This has a bigger impact on rustup, since it is using  definitions of all these things, where cargo is just defining cargo_home in terms of std's wrong home_dir.

The [definition of cargo_home](https://github.com/brson/home/blob/master/src/lib.rs#L179) used here is slightly different than what cargo has today in that it contains a bit of defensive code to avoid allowing `CARGO_HOME` to be set to `.multirust/cargo` - this is backwards compatibility code from rustup.

7 years agoAuto merge of #4298 - behnam:ignore, r=alexcrichton
bors [Wed, 19 Jul 2017 00:57:30 +0000 (00:57 +0000)]
Auto merge of #4298 - behnam:ignore, r=alexcrichton

[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching

Tracking issue: https://github.com/rust-lang/cargo/issues/4268

7 years ago[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching
Behnam Esfahbod [Tue, 18 Jul 2017 23:16:50 +0000 (17:16 -0600)]
[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching

Tracking issue: https://github.com/rust-lang/cargo/issues/4268

7 years agoReplace homedir definition with home crate
Brian Anderson [Tue, 18 Jul 2017 23:42:51 +0000 (16:42 -0700)]
Replace homedir definition with home crate

7 years agoAuto merge of #4123 - alexcrichton:augment, r=matklad
bors [Tue, 18 Jul 2017 18:51:34 +0000 (18:51 +0000)]
Auto merge of #4123 - alexcrichton:augment, r=matklad

Implement the [patch] section of the manifest

This is an implementation of [RFC 1969] which adds a new section to top-level
manifests: `[patch]`. This section allows you to augment existing sources with
new versions of crates, possibly replacing the versions that already exist in
the source. More details about this feature can be found in the RFC itself.

[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969

7 years agoImplement the [patch] section of the manifest
Alex Crichton [Fri, 12 May 2017 18:07:46 +0000 (11:07 -0700)]
Implement the [patch] section of the manifest

This is an implementation of [RFC 1969] which adds a new section to top-level
manifests: `[patch]`. This section allows you to patch existing sources with
new versions of crates, possibly replacing the versions that already exist in
the source. More details about this feature can be found in the RFC itself.

[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969

7 years agoAuto merge of #4270 - behnam:ignore, r=alexcrichton
bors [Tue, 18 Jul 2017 16:04:11 +0000 (16:04 +0000)]
Auto merge of #4270 - behnam:ignore, r=alexcrichton

[sources/path] Add gitignore-like pattern matching and warn on mismatches

Add gitignore-like pattern matching logic to `list_files()` and throw
warnings for paths getting different inclusion/exclusion results from
the old and the new methods.

Migration Tracking: <#4268>

7 years agoAuto merge of #4295 - xftroxgpx:use_full_path_in_warning_for_issue4293, r=matklad
bors [Tue, 18 Jul 2017 14:09:10 +0000 (14:09 +0000)]
Auto merge of #4295 - xftroxgpx:use_full_path_in_warning_for_issue4293, r=matklad

Fixes #4293

locally tested with:
`cargo test legacy_ many_crate_types_old_style_lib_location`

7 years agoremove leftover { }
xftroxgpx [Tue, 18 Jul 2017 14:05:50 +0000 (16:05 +0200)]
remove leftover { }

7 years agoFixes #4293
xftroxgpx [Tue, 18 Jul 2017 13:05:35 +0000 (15:05 +0200)]
Fixes #4293

locally tested with:
cargo test legacy_ many_crate_types_old_style_lib_location

7 years agoAuto merge of #4292 - xftroxgpx:unconfuse_bin_name, r=matklad
bors [Tue, 18 Jul 2017 12:34:41 +0000 (12:34 +0000)]
Auto merge of #4292 - xftroxgpx:unconfuse_bin_name, r=matklad

quote the binary name in the warning

to avoid confusion when the warning happens inside a workspace, example:
pwd is rustlearnage/rust_books/1_first_edition/closures/
and `cargo run` shows:
```
warning: path `src/main.rs` was erroneously implicitly accepted for binary match,
please set bin.path in Cargo.toml
```
(note that 'match' is not quoted, so it's confusing)

the 'match' project that it's referring to is in rustlearnage/rust_books/1_first_edition/match/
(note: Cargo.toml [workspace] is in rustlearnage/ )

7 years agoquoting library and benchmark names in warning
xftroxgpx [Tue, 18 Jul 2017 12:32:18 +0000 (14:32 +0200)]
quoting library and benchmark names in warning

7 years agoquote the binary name in the warning
xftroxgpx [Tue, 18 Jul 2017 09:13:34 +0000 (11:13 +0200)]
quote the binary name in the warning

to avoid confusion when the warning happens inside a workspace, example:
pwd is rustlearnage/rust_books/1_first_edition/closures/
and `cargo run` shows:

warning: path `src/main.rs` was erroneously implicitly accepted for binary match,
please set bin.path in Cargo.toml

(note that 'match' is not quoted, so it's confusing)

the 'match' project that it's referring to is in rustlearnage/rust_books/1_first_edition/match/
(note: Cargo.toml [workspace] is in rustlearnage/ )

7 years ago[sources/path] Add gitignore-like pattern matching and warn on mismatches
Behnam Esfahbod [Fri, 7 Jul 2017 18:52:03 +0000 (12:52 -0600)]
[sources/path] Add gitignore-like pattern matching and warn on mismatches

Add gitignore-like pattern matching logic to `list_files()` and throw
warnings for paths getting different inclusion/exclusion results from
the old and the new methods.

Migration Tracking: <https://github.com/rust-lang/cargo/issues/4268>

7 years agoAuto merge of #4289 - johnthagen:usage-fix, r=alexcrichton
bors [Mon, 17 Jul 2017 22:52:23 +0000 (22:52 +0000)]
Auto merge of #4289 - johnthagen:usage-fix, r=alexcrichton

Add "uninstall" command to cargo --help

Closes #4285

7 years agoAuto merge of #4288 - matklad:bench-bench, r=alexcrichton
bors [Mon, 17 Jul 2017 14:32:21 +0000 (14:32 +0000)]
Auto merge of #4288 - matklad:bench-bench, r=alexcrichton

Allow `src/bench.rs` as a benchmark for legacy reasons

closes #4287
cc #3947

7 years agoAdd "uninstall" command to cargo --help
johnthagen [Mon, 17 Jul 2017 12:46:36 +0000 (08:46 -0400)]
Add "uninstall" command to cargo --help

7 years agoAuto merge of #4286 - cbcoutinho:master, r=matklad
bors [Mon, 17 Jul 2017 10:37:08 +0000 (10:37 +0000)]
Auto merge of #4286 - cbcoutinho:master, r=matklad

Fix typo in zsh _cargo completions

None

7 years agoAllow `src/bench.rs` as a benchmark for legacy reasons
Aleksey Kladov [Mon, 17 Jul 2017 10:10:47 +0000 (13:10 +0300)]
Allow `src/bench.rs` as a benchmark for legacy reasons

closes #4287
cc #3947

7 years agoFix typo in zsh _cargo completions
Chris Coutinho [Sun, 16 Jul 2017 17:35:31 +0000 (19:35 +0200)]
Fix typo in zsh _cargo completions

7 years agoAuto merge of #4279 - tee-too:fix-3499, r=alexcrichton
bors [Thu, 13 Jul 2017 14:48:46 +0000 (14:48 +0000)]
Auto merge of #4279 - tee-too:fix-3499, r=alexcrichton

Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499

7 years agoFix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags
tee-too [Thu, 13 Jul 2017 11:24:28 +0000 (13:24 +0200)]
Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499

7 years agoAuto merge of #4278 - mbrubeck:path, r=alexcrichton
bors [Thu, 13 Jul 2017 04:58:41 +0000 (04:58 +0000)]
Auto merge of #4278 - mbrubeck:path, r=alexcrichton

Don't push empty paths in LD_LIBRARY_PATH

Fixes #4277.  Note: I haven't written a test for this fix yet.

7 years agoDon't push empty paths in LD_LIBRARY_PATH
Matt Brubeck [Thu, 13 Jul 2017 03:28:39 +0000 (20:28 -0700)]
Don't push empty paths in LD_LIBRARY_PATH

Fixes #4277.

7 years agoAuto merge of #4275 - alexcrichton:revert-makeflags, r=alexcrichton
bors [Wed, 12 Jul 2017 21:17:06 +0000 (21:17 +0000)]
Auto merge of #4275 - alexcrichton:revert-makeflags, r=alexcrichton

Don't set MAKEFLAGS for build scripts

Closes #4156
Closes rust-lang/rust#42635

7 years agoDon't set MAKEFLAGS for build scripts
Alex Crichton [Wed, 12 Jul 2017 21:15:56 +0000 (14:15 -0700)]
Don't set MAKEFLAGS for build scripts

Closes #4156
Closes rust-lang/rust#42635

7 years agoadd test for failing package
Alex Burka [Wed, 12 Jul 2017 20:28:33 +0000 (16:28 -0400)]
add test for failing package

7 years agouse shell helpers to condense output
Alex Burka [Wed, 12 Jul 2017 19:31:30 +0000 (15:31 -0400)]
use shell helpers to condense output

7 years agoonly print PATH warning once
Alex Burka [Wed, 12 Jul 2017 18:57:47 +0000 (14:57 -0400)]
only print PATH warning once

7 years agoAuto merge of #4274 - sfackler:patch-1, r=alexcrichton
bors [Wed, 12 Jul 2017 17:26:25 +0000 (17:26 +0000)]
Auto merge of #4274 - sfackler:patch-1, r=alexcrichton

Add CircleCI badge to manifest reference

rust-lang/crates.io#807

7 years agoAdd CircleCI badge to manifest reference
Steven Fackler [Wed, 12 Jul 2017 17:12:25 +0000 (10:12 -0700)]
Add CircleCI badge to manifest reference

rust-lang/crates.io#807

7 years agoAuto merge of #4272 - behnam:doc, r=alexcrichton
bors [Wed, 12 Jul 2017 09:04:18 +0000 (09:04 +0000)]
Auto merge of #4272 - behnam:doc, r=alexcrichton

[doc/crates-io] Add text about packaging tests/benches

Fixes <https://github.com/rust-lang/cargo/issues/4262>

7 years ago[doc/crates-io] Add text about packaging tests/benches
Behnam Esfahbod [Tue, 11 Jul 2017 19:11:31 +0000 (13:11 -0600)]
[doc/crates-io] Add text about packaging tests/benches

Fixes <https://github.com/rust-lang/cargo/issues/4262>

7 years agoAuto merge of #4259 - matklad:conventions, r=alexcrichton
bors [Tue, 11 Jul 2017 19:13:22 +0000 (19:13 +0000)]
Auto merge of #4259 - matklad:conventions, r=alexcrichton

Conventions

r? @alexcrichton

I'd love to refactor our handing of inferring targets by convention, because it is super difficult to understand, and quite probably contains a couple of unintended/undocumented conventions (like `src/foo.rs` being a binary `foo` if there's no library in the package).

As a first step, I've just moved all the logic (600 loc) to a separate file from the `toml.rs` file, which used to be just **huge** (we even use in in IntelliJ Rust for performance testing :) ), and now it is "only" just above 1kloc :)

7 years agoAuto merge of #4267 - natboehm:add-index-flag-search, r=matklad
bors [Mon, 10 Jul 2017 17:08:27 +0000 (17:08 +0000)]
Auto merge of #4267 - natboehm:add-index-flag-search, r=matklad

Replace `cargo search --host` with `cargo search --index`

This change makes the command consistent with other versions of the same flag. `cargo search --host` is still supported, as well as `cargo search --index <index> --host <host>` in case of confusion. The three commands currently supported should produce the same behavior. All instances of `--host` are currently marked as deprecated, or for reuse as mentioned in issue #4208.

Fixes #4219

7 years agoModified tests to use '--index' instead of '--host', added test to support using...
Natalie Boehm [Mon, 10 Jul 2017 15:22:01 +0000 (11:22 -0400)]
Modified tests to use '--index' instead of '--host', added test to support using '--host' with warning message, added test to support using both '--host' and '--index' with warning message for host

7 years agorename '--host' to '--index', add comments marked as TODO where host should be remove...
Natalie Boehm [Mon, 10 Jul 2017 15:19:57 +0000 (11:19 -0400)]
rename '--host' to '--index', add comments marked as TODO where host should be removed/repurposed

7 years agoAuto merge of #4266 - nrc:force, r=alexcrichton
bors [Mon, 10 Jul 2017 14:27:19 +0000 (14:27 +0000)]
Auto merge of #4266 - nrc:force, r=alexcrichton

Add a way to force a unit of work to always be rebuilt

7 years agoAdd a way to force a unit of work to always be rebuilt
Nick Cameron [Mon, 10 Jul 2017 02:09:56 +0000 (14:09 +1200)]
Add a way to force a unit of work to always be rebuilt

7 years agoRearrange code
Aleksey Kladov [Sun, 9 Jul 2017 14:35:12 +0000 (17:35 +0300)]
Rearrange code

7 years agoSimplify
Aleksey Kladov [Sun, 9 Jul 2017 14:30:37 +0000 (17:30 +0300)]
Simplify

7 years agoUse Path::join instead of `/`
Aleksey Kladov [Sun, 9 Jul 2017 13:59:26 +0000 (16:59 +0300)]
Use Path::join instead of `/`

While `/` do work on windows, the resulting path will have literal `/`
in its display.

7 years agoFix more tests
Aleksey Kladov [Sun, 9 Jul 2017 13:27:08 +0000 (16:27 +0300)]
Fix more tests

7 years agoUse the same logic for benches
Aleksey Kladov [Sun, 9 Jul 2017 13:18:53 +0000 (16:18 +0300)]
Use the same logic for benches

7 years agoWarn about obsolete conventions for binary names
Aleksey Kladov [Sun, 9 Jul 2017 12:57:25 +0000 (15:57 +0300)]
Warn about obsolete conventions for binary names

7 years agoRemove Layout structure
Aleksey Kladov [Sun, 9 Jul 2017 11:07:36 +0000 (14:07 +0300)]
Remove Layout structure

7 years agoFix tests
Aleksey Kladov [Sun, 9 Jul 2017 10:31:42 +0000 (13:31 +0300)]
Fix tests