]> git.proxmox.com Git - cargo.git/log
cargo.git
7 years agoAuto merge of #3729 - alexcrichton:remove-caching, r=alexcrichton
bors [Fri, 17 Feb 2017 16:24:06 +0000 (16:24 +0000)]
Auto merge of #3729 - alexcrichton:remove-caching, r=alexcrichton

Disable caches on AppVeyor/Travis

They just seem to grow without bound and cause problems unfortunately :(

7 years agoDisable caches on AppVeyor/Travis
Alex Crichton [Fri, 17 Feb 2017 16:23:23 +0000 (08:23 -0800)]
Disable caches on AppVeyor/Travis

They just seem to grow without bound and cause problems unfortunately :(

7 years agoAuto merge of #3717 - king6cong:clean, r=alexcrichton
bors [Thu, 16 Feb 2017 20:08:18 +0000 (20:08 +0000)]
Auto merge of #3717 - king6cong:clean, r=alexcrichton

remove unnecessary code

7 years agoAuto merge of #3719 - alexcrichton:curl-sys, r=alexcrichton
bors [Thu, 16 Feb 2017 17:36:26 +0000 (17:36 +0000)]
Auto merge of #3719 - alexcrichton:curl-sys, r=alexcrichton

Update libz-sys

Try to fix AppVeyor CI

7 years agoUpdate libz-sys to fix AppVeyor CI
Alex Crichton [Thu, 16 Feb 2017 17:35:35 +0000 (09:35 -0800)]
Update libz-sys to fix AppVeyor CI

Needs a fix for msys instead of Windows paths

7 years agoremove unnecessary code
king6cong [Thu, 16 Feb 2017 07:11:51 +0000 (15:11 +0800)]
remove unnecessary code

7 years agoAuto merge of #3714 - alexcrichton:update-git2, r=alexcrichton
bors [Wed, 15 Feb 2017 22:47:05 +0000 (22:47 +0000)]
Auto merge of #3714 - alexcrichton:update-git2, r=alexcrichton

Update libgit2

Pull in a fix for #3610

7 years agoUpdate libgit2
Alex Crichton [Wed, 15 Feb 2017 22:16:12 +0000 (14:16 -0800)]
Update libgit2

Pull in a fix for #3610

7 years agoAuto merge of #3710 - seppo0010:one-file-too-many, r=alexcrichton
bors [Wed, 15 Feb 2017 17:43:01 +0000 (17:43 +0000)]
Auto merge of #3710 - seppo0010:one-file-too-many, r=alexcrichton

Fix dupe word in documentation

7 years agoFix dupe word in documentation
Sebastian Waisbrot [Wed, 15 Feb 2017 17:27:58 +0000 (14:27 -0300)]
Fix dupe word in documentation

7 years agoAuto merge of #3707 - king6cong:handle_stderr, r=alexcrichton
bors [Wed, 15 Feb 2017 15:18:36 +0000 (15:18 +0000)]
Auto merge of #3707 - king6cong:handle_stderr, r=alexcrichton

fix arg name

7 years agofix arg name
king6cong [Wed, 15 Feb 2017 10:10:28 +0000 (18:10 +0800)]
fix arg name

7 years agoAuto merge of #3701 - matklad:rel-manifest-path, r=alexcrichton
bors [Tue, 14 Feb 2017 21:50:54 +0000 (21:50 +0000)]
Auto merge of #3701 - matklad:rel-manifest-path, r=alexcrichton

Normalize ws root path

closes #3586

r? @alexcrichton

7 years agoNormalize ws root path
Aleksey Kladov [Tue, 14 Feb 2017 20:04:24 +0000 (23:04 +0300)]
Normalize ws root path

closes #3586

7 years agoAuto merge of #3700 - matklad:faster-test, r=alexcrichton
bors [Tue, 14 Feb 2017 19:46:26 +0000 (19:46 +0000)]
Auto merge of #3700 - matklad:faster-test, r=alexcrichton

Don't use real serde in tests

This test used to take 1.5 minutes on my machine (without significant CPU usage however), now it finishes in a couple of seconds. I don't fully understand what is tested here, but I suppose we don't really need serde.

7 years agoDon't use real serde in tests
Aleksey Kladov [Tue, 14 Feb 2017 19:40:48 +0000 (19:40 +0000)]
Don't use real serde in tests

7 years agoAuto merge of #3692 - malbarbo:test-args, r=alexcrichton
bors [Tue, 14 Feb 2017 03:03:16 +0000 (03:03 +0000)]
Auto merge of #3692 - malbarbo:test-args, r=alexcrichton

Pass multiples --test-args to the tester

Like --cfg, --test-args accept multiple matches, we should use it and
avoid some unexpected behavior joinning the arguments with space.

7 years agoAuto merge of #3691 - matklad:run-pkg, r=alexcrichton
bors [Tue, 14 Feb 2017 01:14:36 +0000 (01:14 +0000)]
Auto merge of #3691 - matklad:run-pkg, r=alexcrichton

cargo run supports --package argument

closes #3529

7 years agoAuto merge of #3689 - ms705:master, r=alexcrichton
bors [Mon, 13 Feb 2017 23:23:39 +0000 (23:23 +0000)]
Auto merge of #3689 - ms705:master, r=alexcrichton

More intuitive CARGO_INCREMENTAL semantics

Currently, the mere presence of a `CARGO_INCREMENTAL` variable in the environment causes incremental compilation to be enabled. This has the very counterintuitive effect that `CARGO_INCREMENTAL=0` and even `CARGO_INCREMENTAL=` mean incremental compilation is *on*.

This PR brings the semantics in line with how they are defined in the tests (cf. [tests/build.rs:45](https://github.com/rust-lang/cargo/blob/master/tests/build.rs#L45)), and in [public-facing documentation](https://internals.rust-lang.org/t/incremental-compilation-beta/4721).

See also [rust#39773](https://github.com/rust-lang/rust/issues/39773) for an example of this causing confusion in the wild.

7 years agoAuto merge of #3684 - casey:search-copy-pastafication, r=alexcrichton
bors [Mon, 13 Feb 2017 21:05:47 +0000 (21:05 +0000)]
Auto merge of #3684 - casey:search-copy-pastafication, r=alexcrichton

Increase copypastafication of `cargo search`

Formats the search results printed by `cargo search` so that they can be
copied directly into a `Cargo.toml` file.

I used `^`, since I like being explicit, although that seems not to be the convention, so I'd be happy to remote it.

I also added a `#` in front of the description, so that that can be copy pastaed as well. I'm not super attached to this idea, but I think it's interesting, since it would serve to document what the various dependencies of a crate are for new contributors.

For example:

```
$ cargo search clap
clap = "^2.20.3"               # A simple to use, efficient, and full featured  Command Line ArgumentParser
please-clap = "^0.1.0"         # Pattern-match against Clap subcommands and arguments.
clapcomp = "^0.1.5"            # clap completion generator as command
clap-test = "^0.1.1"           # functions and macros to assist in testing clap
structopt = "^0.0.2"           # Parse command line argument by defining a struct.
capgun = "^0.1.1"              # fire when ready file watcher
structopt-derive = "^0.0.2"    # Parse command line argument by defining a struct, derive crate.
cargo-outdated = "^0.3.0"      # Cargo subcommand for displaying when dependencies are out of date
wesers = "^0.4.1"              # a simple HTTP/HTTPS server in Rust
cargo-arch = "^0.1.0"          # Rust Arch Linux package packer
... and 6 crates more (use --limit N to see more)
```

7 years agocargo run supports --package argument
Aleksey Kladov [Mon, 13 Feb 2017 16:02:27 +0000 (19:02 +0300)]
cargo run supports --package argument

closes #3529

7 years agoAuto merge of #3693 - alexcrichton:improve, r=alexcrichton
bors [Mon, 13 Feb 2017 18:48:08 +0000 (18:48 +0000)]
Auto merge of #3693 - alexcrichton:improve, r=alexcrichton

Rework some required-features tests

Don't delete the build dir as this ends up being flaky on Windows.

7 years agoRework some required-features tests
Alex Crichton [Mon, 13 Feb 2017 17:59:36 +0000 (09:59 -0800)]
Rework some required-features tests

Don't delete the build dir as this ends up being flaky on Windows.

7 years agoPass multiples --test-args to the tester
Marco A L Barbosa [Mon, 13 Feb 2017 17:34:29 +0000 (15:34 -0200)]
Pass multiples --test-args to the tester

Like --cfg, --test-args accept multiple matches, we should use it and
avoid some unexpected behavior joinning the arguments with space.

7 years agoFix CARGO_INCREMENTAL semantics to be intuitive
Malte Schwarzkopf [Mon, 13 Feb 2017 00:56:41 +0000 (19:56 -0500)]
Fix CARGO_INCREMENTAL semantics to be intuitive

Previously, the mere presence of a CARGO_INCREMENTAL variable in the
environment caused incremental compilation to happen. This has the very
unintuitive effect that `CARGO_INCREMENTAL=0` and even
`CARGO_INCREMENTAL=` mean incremental compilation is *on*.

This change brings the semantics in line with how they are defined in
the tests (cf. tests/build.rs:45), and in public-facing documentation
(https://internals.rust-lang.org/t/incremental-compilation-beta/4721).

7 years agoLeave off `^`, since it's the default.
Casey Rodarmor [Sat, 11 Feb 2017 21:56:38 +0000 (13:56 -0800)]
Leave off `^`, since it's the default.

7 years agoAuto merge of #3668 - KalitaAlexey:fix-example-metadata, r=alexcrichton
bors [Sat, 11 Feb 2017 17:20:36 +0000 (17:20 +0000)]
Auto merge of #3668 - KalitaAlexey:fix-example-metadata, r=alexcrichton

Reverted the "kind" field to the previous value.

Added a new field named "crate_types".
Fixes https://github.com/rust-lang/cargo/issues/3654
After this PR `cargo metadata` would output:
```json
{
    "packages": [
        {
            "targets": [
                {
                    "kind": ["lib"],
                    "crate_types": ["lib"]
                },
                {
                    "kind": ["example"],
                    "crate_types": ["staticlib"]
                }
            ]
        }
    ]
}
```

I have added tests.

7 years agoMerge branch 'master' of https://github.com/rust-lang/cargo into fix-example-metadata
Kalita Alexey [Sat, 11 Feb 2017 08:21:50 +0000 (11:21 +0300)]
Merge branch 'master' of https://github.com/rust-lang/cargo into fix-example-metadata

7 years agoFixed a breaking change and added tests for that case.
Kalita Alexey [Sat, 11 Feb 2017 08:21:02 +0000 (11:21 +0300)]
Fixed a breaking change and added tests for that case.

7 years agoIncrease copypastafication of `cargo search`
Casey Rodarmor [Sat, 11 Feb 2017 02:50:17 +0000 (18:50 -0800)]
Increase copypastafication of `cargo search`

Formats the search results printed by `cargo search` so that they can be
copied directly into a `Cargo.toml` file.

7 years agoAuto merge of #3667 - jbendig:required_features, r=alexcrichton
bors [Fri, 10 Feb 2017 22:12:37 +0000 (22:12 +0000)]
Auto merge of #3667 - jbendig:required_features, r=alexcrichton

Added required_features for issue #1570.

Based on PR #2056 by @tsurai and PR #2325 by @JanLikar

I tried to fix most everything that was talked about in the previous pull requests. Docs still need to be updated though.

7 years agoAuto merge of #3681 - lukaslueg:master, r=alexcrichton
bors [Fri, 10 Feb 2017 20:20:35 +0000 (20:20 +0000)]
Auto merge of #3681 - lukaslueg:master, r=alexcrichton

Pinpoint hamcrest-dependency in cargotest to 0.1.1

hamcrest 0.1 currently resolves to 0.1.3, which cargotest can't actually build with. Cargo's own dependency on =0.1.1 used to shadow the problem.

7 years agoFixed `cargo install` performing an empty install when all binaries require at least...
James Bendig [Fri, 10 Feb 2017 20:08:23 +0000 (14:08 -0600)]
Fixed `cargo install` performing an empty install when all binaries require at least one feature that's not selected.

7 years agoChanged an .any() call with double negatives into a more readable .all().
James Bendig [Fri, 10 Feb 2017 18:59:39 +0000 (12:59 -0600)]
Changed an .any() call with double negatives into a more readable .all().

7 years agoPinpoint hamcrest-dependency in cargotest to 0.1.1
lukaslueg [Fri, 10 Feb 2017 18:49:58 +0000 (19:49 +0100)]
Pinpoint hamcrest-dependency in cargotest to 0.1.1

hamcrest 0.1 currently resolves to 0.1.3, which cargotest can't actually build with. Cargo's own dependency on =0.1.1 used to shadow the problem.

7 years agoFixed tests
Kalita Alexey [Fri, 10 Feb 2017 09:35:20 +0000 (12:35 +0300)]
Fixed tests

7 years agoFixed tests
Kalita Alexey [Thu, 9 Feb 2017 18:20:56 +0000 (21:20 +0300)]
Fixed tests

7 years agoMerge branch 'master' of https://github.com/rust-lang/cargo into fix-example-metadata
Kalita Alexey [Thu, 9 Feb 2017 17:04:57 +0000 (20:04 +0300)]
Merge branch 'master' of https://github.com/rust-lang/cargo into fix-example-metadata

7 years agoAuto merge of #3671 - z1mvader:master, r=alexcrichton
bors [Thu, 9 Feb 2017 01:22:51 +0000 (01:22 +0000)]
Auto merge of #3671 - z1mvader:master, r=alexcrichton

trying to fix unimplemented flock under linux

It fixes https://github.com/rust-lang/cargo/issues/3666

7 years agoFixed required-features bench tests failing when compiled on stable rust.
James Bendig [Wed, 8 Feb 2017 21:31:55 +0000 (15:31 -0600)]
Fixed required-features bench tests failing when compiled on stable rust.

7 years agoAdded documentation for the target field `required-features`.
James Bendig [Wed, 8 Feb 2017 21:30:24 +0000 (15:30 -0600)]
Added documentation for the target field `required-features`.

7 years agoAuto merge of #3669 - Susurrus:master, r=alexcrichton
bors [Wed, 8 Feb 2017 19:47:28 +0000 (19:47 +0000)]
Auto merge of #3669 - Susurrus:master, r=alexcrichton

Correct capitalization of GitLab

Never realized this is how they spelled it when I added these docs. Equivalent changes are pending for `crates.io` in rust-lang/crates.io#547

7 years agoAuto merge of #3659 - nathanaeljones:master, r=alexcrichton
bors [Wed, 8 Feb 2017 18:20:52 +0000 (18:20 +0000)]
Auto merge of #3659 - nathanaeljones:master, r=alexcrichton

Fix #3658 .cargo/config prevents freshness (sort after HashMap)

The many vectors of BuildOutput are populated from a HashMap in cargo_compile... and later these vectors are hashed.

HashMaps are the bane of Cargo's existence.

But for now, we sort.

7 years agoAdded tests
Kalita Alexey [Wed, 8 Feb 2017 15:28:36 +0000 (18:28 +0300)]
Added tests

7 years agoFixed tests
Kalita Alexey [Wed, 8 Feb 2017 15:15:06 +0000 (18:15 +0300)]
Fixed tests

7 years agoCorrect capitalization of GitLab
Bryant Mairs [Wed, 8 Feb 2017 06:50:50 +0000 (22:50 -0800)]
Correct capitalization of GitLab

7 years agoReverted the "kind" field to the previous value.
Kalita Alexey [Wed, 8 Feb 2017 04:56:28 +0000 (07:56 +0300)]
Reverted the "kind" field to the previous value.
Added a new field named "crate_types".

7 years agoFix #3659 differently; sort HashMap keys before iteration.
Nathanael Jones [Wed, 8 Feb 2017 02:12:48 +0000 (19:12 -0700)]
Fix #3659 differently; sort HashMap keys before iteration.

Reverts 7a8b25a (and the need for it)

7 years agoAdd test fresh_builds_possible_with_link_libs
Nathanael Jones [Wed, 8 Feb 2017 02:05:10 +0000 (19:05 -0700)]
Add test fresh_builds_possible_with_link_libs

7 years agoAuto merge of #3583 - alexcrichton:fix-tags, r=brson
bors [Wed, 8 Feb 2017 01:03:17 +0000 (01:03 +0000)]
Auto merge of #3583 - alexcrichton:fix-tags, r=brson

Handle `rev` being a `tag`

Previously if a rev was specified as a tag then we'd trip an assertion because
resetting to that tag would reset to the tag that the commit pointed to, which
would then cause the head id of the repo to be different than what we thought it
was.

Instead, we handle the case where a `rev` specification is a tag explicitly by
using the tag's target id as the revision that we're going to check out, not the
id of the tag itself.

Closes #3580

7 years agoAdded required_features for issue #1570.
James Bendig [Wed, 8 Feb 2017 00:20:21 +0000 (18:20 -0600)]
Added required_features for issue #1570.

Based on PR #2056 by @tsurai and PR #2325 by @JanLikar

7 years agotrying to fix unimplemented flock under linux
z1mvader [Tue, 7 Feb 2017 22:55:46 +0000 (17:55 -0500)]
trying to fix unimplemented flock under linux

7 years agoAuto merge of #3651 - pkgw:pr-issue-3366, r=alexcrichton
bors [Tue, 7 Feb 2017 22:02:51 +0000 (22:02 +0000)]
Auto merge of #3651 - pkgw:pr-issue-3366, r=alexcrichton

Attempt to solve #3366, regarding spurious shared library search paths.

This drops `native_dirs` entries that are not within the target output when modifying the (DY)LD_LIBRARY_PATH environment variable before running programs.

CC #3366

7 years agoAttempt to fix the run_with_library_paths test for Windows.
Peter Williams [Tue, 7 Feb 2017 20:55:36 +0000 (15:55 -0500)]
Attempt to fix the run_with_library_paths test for Windows.

I was just pasting the build directories into Rust string literals, so Windows
paths with backslashes were being interpreted as having unknown string
escapes. Raw string guards should fix this for all but the most pathological
of build directories.

7 years agoAuto merge of #3664 - pwoolcoc:issue-3391, r=alexcrichton
bors [Tue, 7 Feb 2017 20:08:02 +0000 (20:08 +0000)]
Auto merge of #3664 - pwoolcoc:issue-3391, r=alexcrichton

Assume that a `build.rs` file is a build script

If cargo sees a `build.rs` file in the same directory as the current
`Cargo.toml`, it will assume that the `build.rs` file is a build script,
unless there is `build = false` in the  `Cargo.toml` file.

Closes #3391

7 years agoAuto merge of #3663 - alexcrichton:update, r=alexcrichton
bors [Tue, 7 Feb 2017 17:44:49 +0000 (17:44 +0000)]
Auto merge of #3663 - alexcrichton:update, r=alexcrichton

Update dependencies

Another major version of Cargo, another suite of updated dependencies!

7 years agoUpdate dependencies
Alex Crichton [Tue, 7 Feb 2017 17:39:09 +0000 (09:39 -0800)]
Update dependencies

Another major version of Cargo, another suite of updated dependencies!

7 years agoAssume that a `build.rs` file is a build script
Paul Woolcock [Tue, 7 Feb 2017 17:41:36 +0000 (12:41 -0500)]
Assume that a `build.rs` file is a build script

If cargo sees a `build.rs` file in the same directory as the current
`Cargo.toml`, it will assume that the `build.rs` file is a build script,
_unless there is_ `build = false` _in the _ `Cargo.toml` _file_.

Closes #3391

7 years agoAdjust test overrides_and_links.
Nathanael Jones [Tue, 7 Feb 2017 09:34:04 +0000 (02:34 -0700)]
Adjust test overrides_and_links.

While order between rust-c-link-lib and rustc-flags was always undefined
(for TOML configuration), order of link paths/libs within a single
rustc-flags value was maintained. Now we sort them all.

7 years agostyle: reduce line length
Nathanael Jones [Tue, 7 Feb 2017 08:47:12 +0000 (01:47 -0700)]
style: reduce line length

7 years agoUpdate the 'run_with_library_paths' test to reflect the new filtering.
Peter Williams [Tue, 7 Feb 2017 05:13:37 +0000 (00:13 -0500)]
Update the 'run_with_library_paths' test to reflect the new filtering.

For the library paths to be passed through, they must reside within the build
output directory.

7 years agoMake fresh_builds_possible_with_multiple_metadata_overrides faster
Nathanael Jones [Tue, 7 Feb 2017 00:22:36 +0000 (17:22 -0700)]
Make fresh_builds_possible_with_multiple_metadata_overrides faster

7 years agoFix #3658 .cargo/config prevents freshness (sort if sourced from HashMap)
Nathanael Jones [Tue, 7 Feb 2017 00:16:33 +0000 (17:16 -0700)]
Fix #3658 .cargo/config prevents freshness (sort if sourced from HashMap)

7 years agoRename test to fresh_builds_possible_with_multiple_metadata_overrides
Nathanael Jones [Tue, 7 Feb 2017 00:13:03 +0000 (17:13 -0700)]
Rename test to fresh_builds_possible_with_multiple_metadata_overrides

7 years agoAdd (non-deterministically) failing test for #3658
Nathanael Jones [Mon, 6 Feb 2017 23:11:46 +0000 (16:11 -0700)]
Add (non-deterministically) failing test for #3658

7 years agoAuto merge of #3644 - Keruspe:master, r=alexcrichton
bors [Mon, 6 Feb 2017 18:45:36 +0000 (18:45 +0000)]
Auto merge of #3644 - Keruspe:master, r=alexcrichton

ensure libressl compatibility

It looks like master still isn't compatible with libressl.

With this patch it builds and runs fine and all tests pass here.

7 years agotests: fix git User-Agent for Windows
Marc-Antoine Perennou [Mon, 6 Feb 2017 16:58:04 +0000 (17:58 +0100)]
tests: fix git User-Agent for Windows

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
7 years agoAuto merge of #3655 - king6cong:rustfmt, r=alexcrichton
bors [Mon, 6 Feb 2017 16:48:06 +0000 (16:48 +0000)]
Auto merge of #3655 - king6cong:rustfmt, r=alexcrichton

rustfmt for bin/cargo.rs

None

7 years agorustfmt for bin/cargo.rs
king6cong [Mon, 6 Feb 2017 07:02:32 +0000 (15:02 +0800)]
rustfmt for bin/cargo.rs

7 years agoAuto merge of #3632 - Susurrus:master, r=alexcrichton
bors [Sun, 5 Feb 2017 22:29:03 +0000 (22:29 +0000)]
Auto merge of #3632 - Susurrus:master, r=alexcrichton

Document build badge for Gitlab CI

This doesn't make sense to merge until rust-lang/crates.io#539 is merged, but I figured I'd get it all spooled up since that PR is already ready for merging.

7 years agoAttempt to solve #3366, regarding spurious shared library search paths.
Peter Williams [Sun, 5 Feb 2017 21:15:24 +0000 (16:15 -0500)]
Attempt to solve #3366, regarding spurious shared library search paths.

This drops `native_dirs` entries that are not within the target directory when
modifying the (DY)LD_LIBRARY_PATH environment variable before running
programs.

7 years agoAuto merge of #3650 - bluetech:profile-doc-fix, r=alexcrichton
bors [Sun, 5 Feb 2017 21:06:08 +0000 (21:06 +0000)]
Auto merge of #3650 - bluetech:profile-doc-fix, r=alexcrichton

Fix the documentation for the PROFILE envvar passed to build scripts

Closes #2084 (+ a typo fix).

7 years agoFix the documentation for the PROFILE envvar passed to build scripts
Ran Benita [Sun, 5 Feb 2017 18:53:11 +0000 (20:53 +0200)]
Fix the documentation for the PROFILE envvar passed to build scripts

Closes #2084.

7 years agoFix typo
Ran Benita [Sun, 5 Feb 2017 18:52:45 +0000 (20:52 +0200)]
Fix typo

7 years agoAuto merge of #3648 - cuviper:powerpc64-gcc4, r=alexcrichton
bors [Sat, 4 Feb 2017 19:28:44 +0000 (19:28 +0000)]
Auto merge of #3648 - cuviper:powerpc64-gcc4, r=alexcrichton

Update OPENSSL_CC_powerpc64-unknown-linux-gnu

With the new `rust-slave-linux-cross:2017-02-02`, powerpc64 no longer
uses gcc-5.  I updated the `Dockerfile` at the time to reflect this, but
missed `OPENSSL_CC_powerpc64-unknown-linux-gnu` in `Makefile.in`.

7 years agoUpdate OPENSSL_CC_powerpc64-unknown-linux-gnu
Josh Stone [Sat, 4 Feb 2017 01:59:30 +0000 (17:59 -0800)]
Update OPENSSL_CC_powerpc64-unknown-linux-gnu

With the new `rust-slave-linux-cross:2017-02-02`, powerpc64 no longer
uses gcc-5.  I updated the `Dockerfile` at the time to reflect this, but
missed `OPENSSL_CC_powerpc64-unknown-linux-gnu` in `Makefile.in`.

7 years agoAuto merge of #3647 - alexcrichton:dox, r=alexcrichton
bors [Fri, 3 Feb 2017 22:15:29 +0000 (22:15 +0000)]
Auto merge of #3647 - alexcrichton:dox, r=alexcrichton

Update API doc URL for Cargo

Closes #3640

7 years agoUpdate API doc URL for Cargo
Alex Crichton [Fri, 3 Feb 2017 22:14:36 +0000 (14:14 -0800)]
Update API doc URL for Cargo

Closes #3640

7 years agoensure libressl compatibility
Marc-Antoine Perennou [Fri, 3 Feb 2017 15:38:13 +0000 (16:38 +0100)]
ensure libressl compatibility

Update libgit2-sys, openssl-sys and openssl
as the versions currently in Cargo.lock are
not compatible with libressl.
Also update tests accordingly

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
7 years agoAuto merge of #3639 - GuillaumeGomez:fix-doc-tests, r=alexcrichton
bors [Fri, 3 Feb 2017 11:05:18 +0000 (11:05 +0000)]
Auto merge of #3639 - GuillaumeGomez:fix-doc-tests, r=alexcrichton

Replace remaining _0 doc tests

This time, I `grep`ed all remaining `_0` tests. This update should be the last one.

7 years agoAuto merge of #3637 - cuviper:custom-powerpc-s390x, r=alexcrichton
bors [Fri, 3 Feb 2017 07:41:27 +0000 (07:41 +0000)]
Auto merge of #3637 - cuviper:custom-powerpc-s390x, r=alexcrichton

Update docker/cross for new IBM toolchains

This will start using the toolchains with older glibc ABI for powerpc,
powerpc64, powerpc64le, and s390x, per rust-lang/rust-buildbot#149.

7 years agoAuto merge of #3635 - alexcrichton:bump, r=alexcrichton
bors [Fri, 3 Feb 2017 05:58:33 +0000 (05:58 +0000)]
Auto merge of #3635 - alexcrichton:bump, r=alexcrichton

Bump to 0.18.0

7 years agoAuto merge of #3634 - steveklabnik:bump-semver, r=alexcrichton
bors [Fri, 3 Feb 2017 04:16:05 +0000 (04:16 +0000)]
Auto merge of #3634 - steveklabnik:bump-semver, r=alexcrichton

bump semver version

Thanks to @raphlinus , semver-parser no longer depends on regex. The code is (probably, I haven't technically tested it but it's hard to imagine it's not) faster, smaller, and has zero dependencies, as well as better errors.

This new version of semver only updates the dependencies involved, no interface changes, so it should be a drop-in replacement.

7 years agoAuto merge of #3633 - shiver:3617, r=alexcrichton
bors [Fri, 3 Feb 2017 02:22:31 +0000 (02:22 +0000)]
Auto merge of #3633 - shiver:3617, r=alexcrichton

Add description to metadata output #3617

Just took a quick stab at issue #3617.

Is my interpretation of the requirements correct, and if so, would you prefer new tests or are the current alterations sufficient.

Thanks!

7 years agoAuto merge of #3628 - zackmdavis:the_maelstrom_of_my_purity_born_of_pain, r=alexcrichton
bors [Fri, 3 Feb 2017 00:59:41 +0000 (00:59 +0000)]
Auto merge of #3628 - zackmdavis:the_maelstrom_of_my_purity_born_of_pain, r=alexcrichton

make build tests not depend on minutiae of rustc output

This little patch arises from the maelstrom of my purity born of pain.

It's the pain of seeing rust-lang/rust#38103 in its perfect crystalline beauty waste away on page four of https://github.com/rust-lang/rust/pulls, waiting, ready, itching to land, dying with anticipation to bring the light of clearer lint group error messages to Rust users of all creeds and nations, only for its promise to be cruelly blocked by the fateful, hateful hand of circular dependency. For it is written in src/tools/cargotest/main.rs that the Cargo tests must pass before the PR can receive Appveyor's blessing, but the Cargo tests could not pass (because they depend on fine details of the output that the PR is meant to change), and the Cargo tests could not be changed (because updating the test expectation to match the proposed new compiler output, would fail with the current compiler).

The Gordian knot is cut in the bowels of cargotest's very notion of comparison (of JSON objects) itself, by means of introducing a magic string literal `"{...}"`, which can server as a wildcard for any JSON sub-object.

And so it will be for the children, and the children's children, and unto the 1.17.0 and 1.18.0 releases, that Cargo's build test expectations will faithfully expect the exact JSON output by Cargo itself, but the string literal `"{...}"` shall be a token upon the JSON output by rustc, and when I see `"{...}"`, I will pass over you, and the failure shall not be upon you.

And this day shall be unto you for a memorial.

supersedes #3513

r? @alexcrichton

7 years agoReplace remaining _0 doc tests
Guillaume Gomez [Thu, 2 Feb 2017 23:08:22 +0000 (00:08 +0100)]
Replace remaining _0 doc tests

7 years agoUpdate docker/cross for new IBM toolchains
Josh Stone [Thu, 2 Feb 2017 21:23:44 +0000 (13:23 -0800)]
Update docker/cross for new IBM toolchains

This will start using the toolchains with older glibc ABI for powerpc,
powerpc64, powerpc64le, and s390x, per rust-lang/rust-buildbot#149.

7 years agoBump to 0.18.0
Alex Crichton [Thu, 2 Feb 2017 19:30:37 +0000 (11:30 -0800)]
Bump to 0.18.0

7 years agobump semver version
Steve Klabnik [Thu, 2 Feb 2017 18:52:09 +0000 (13:52 -0500)]
bump semver version

7 years agoFixed failing read-metadata test due to addition of description.
Robert Vally [Thu, 2 Feb 2017 08:22:49 +0000 (16:22 +0800)]
Fixed failing read-metadata test due to addition of description.

7 years agoMetadata response now also contains package description.
Robert Vally [Thu, 2 Feb 2017 07:59:34 +0000 (15:59 +0800)]
Metadata response now also contains package description.

7 years agoAuto merge of #3621 - matklad:fix-job-leakage, r=alexcrichton
bors [Thu, 2 Feb 2017 06:04:56 +0000 (06:04 +0000)]
Auto merge of #3621 - matklad:fix-job-leakage, r=alexcrichton

Don't leak job

This fixes that problem with diverging `handle_error`. Now the return types of all subcommands match, and we can return `CliResult` up to main.

7 years agomake build tests not depend on minutiƦ of rustc output
Zack M. Davis [Wed, 1 Feb 2017 04:51:24 +0000 (20:51 -0800)]
make build tests not depend on minutiƦ of rustc output

This little patch arises from the maelstrom of my purity born of pain.

It's the pain of seeing rust-lang/rust#38103 in its perfect
crystalline beauty waste away on page four of
https://github.com/rust-lang/rust/pulls, waiting, ready, itching to
land, dying with anticipation to bring the light of clearer lint group
error messages to Rust users of all creeds and nations, only for its
promise to be cruelly blocked by the fateful, hateful hand of circular
dependency. For it is written in src/tools/cargotest/main.rs that the
Cargo tests must pass before the PR can receive Appveyor's blessing,
but the Cargo tests could not pass (because they depend on fine
details of the output that the PR is meant to change), and the Cargo
tests could not be changed (because updating the test expectation to
match the proposed new compiler output, would fail with the current
compiler).

The Gordian knot is cut in the bowels of cargotest's very notion of
comparison (of JSON objects) itself, by means of introducing a magic
string literal `"{...}"`, which can server as a wildcard for any JSON
sub-object.

And so it will be for the children, and the children's children, and
unto the 1.17.0 and 1.18.0 releases, that Cargo's build test
expectations will faithfully expect the exact JSON output by Cargo
itself, but the string literal `"{...}"` shall be a token upon the
JSON output by rustc, and when I see `"{...}"`, I will pass over you,
and the failure shall not be upon you.

And this day shall be unto you for a memorial.

7 years agoAuto merge of #3616 - GuillaumeGomez:new_rustdoc_test, r=alexcrichton
bors [Thu, 2 Feb 2017 04:19:07 +0000 (04:19 +0000)]
Auto merge of #3616 - GuillaumeGomez:new_rustdoc_test, r=alexcrichton

Update to new rustdoc --test output

cc @alexcrichton

7 years agoAuto merge of #3609 - jmatraszek:build_proper_binary, r=alexcrichton
bors [Thu, 2 Feb 2017 02:15:05 +0000 (02:15 +0000)]
Auto merge of #3609 - jmatraszek:build_proper_binary, r=alexcrichton

Fix building multiple binaries that do not have path spacified in Cargo.toml

When multiple binaries are specified in Cargo.toml, the binaries that do not have `path` specified are build from `src/main.rs`. Discovered here: https://github.com/rust-lang-nursery/thanks/pull/40#issuecomment-275493045.

This was caused by setting for a binary a main layout here https://github.com/rust-lang/cargo/blob/master/src/cargo/util/toml.rs#L478, which caused `normalize` to not fallback to default binary path here https://github.com/rust-lang/cargo/blob/master/src/cargo/util/toml.rs#L1149 (as `bin.path` was always `Some("/path/to/main.rs")`.

Added a test and fixed this by not using `layout.main()`, so right now for bins without `path` specified we fallback to default path inferred from bin's name (e.g. `src/bin/foo.rs`), test if the file exists and only if it doesn't -- fallback to `src/main.rs`.

I do not have any knowledge about Cargo's design, so I am not sure if this is the proper place to test for file existence.

7 years agoDocument build badge for Gitlab CI
Bryant Mairs [Wed, 1 Feb 2017 02:31:48 +0000 (18:31 -0800)]
Document build badge for Gitlab CI

7 years agoAuto merge of #3562 - matklad:member-workspace, r=alexcrichton
bors [Thu, 2 Feb 2017 00:09:05 +0000 (00:09 +0000)]
Auto merge of #3562 - matklad:member-workspace, r=alexcrichton

Find workspace via `workspace_root` link in containing member

This PR proposes to change the logic for determining workspace members. Here are the algorithms we used previously for this:

# [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1525-cargo-workspace.md)  flavor

If `[members]` key present, it compliantly defines the set of members. Otherwise, members are all (transitive) path dependencies.

The problem with this approach is that it violates convention over configuration principle: almost always you want a path dependency to be a member, even if there are some explicit members. Listing **all** path deps is just to much work.

# Original implementation

So, the actual algorithm **unconditionally** included path dependencies as memebers.

This is also problematic, because certain workspace configurations become impossible. In particular, you can't have a path dependency which is not a member of the workspace. This issue was reported in #3192.

# Current implementation

Current implementation (was merged couple of days ago) includes path dependency into the workspace only if is inside the workspace directory. This solves the problem in #3192 perfectly. However, some configuration are still impossible: you can't have a non-member path dependency inside a workspace directory. But the thinking is that if you don't want this path-dep to be a member, just don't put it inside the workspace directory.

There is another problem with current imlementation. Suppose you have an explicit member which lives alongside the workspace. Suppose this member has a path-dep which lives inside the member's folder. Under current implementation, this path-dep won't be a member of the workspace. It seems logical that it should be though (but we haven't received any actual bug reports yet)!

# Implementation in this PR

So, with this PR, the logic is as follows: members are explicit members + all path dependencies which reside under any of the explicit members.

7 years agoAuto merge of #3004 - ehiggs:master, r=alexcrichton
bors [Wed, 1 Feb 2017 22:22:19 +0000 (22:22 +0000)]
Auto merge of #3004 - ehiggs:master, r=alexcrichton

Resubmission of templating PR (#1747)

This is a manual rebase of the older #1747 PR which was basically unrebasable due to the time it's been dormant.. This implements templating for Cargo and is basically the work of Greg Chapple (@gchp).

I'd love for this feature to move forward since it's really tedious to create all the directories (e.g. `src/bin`) and copy paste docopt examples which I then edit. Then implement the `main` program to delegate to the subcommands in `src/bin`, etc.

7 years agoAuto merge of #3630 - alexcrichton:empty-version, r=alexcrichton
bors [Wed, 1 Feb 2017 21:03:21 +0000 (21:03 +0000)]
Auto merge of #3630 - alexcrichton:empty-version, r=alexcrichton

Fix empty 'version' file

This teaches the makefiles to construct the version string again so
it can be emitted to the 'version' file for packaging.

Fixes failing nightly builds.

7 years agoFix empty 'version' file
Brian Anderson [Tue, 31 Jan 2017 21:42:24 +0000 (21:42 +0000)]
Fix empty 'version' file

This teaches the makefiles to construct the version string again so
it can be emitted to the 'version' file for packaging.

Fixes failing nightly builds.