]> git.proxmox.com Git - cargo.git/log
cargo.git
5 years agoRelease 0.31.0-4 to Debian unstable.
Ximin Luo [Tue, 20 Nov 2018 06:51:07 +0000 (22:51 -0800)]
Release 0.31.0-4 to Debian unstable.

5 years agoDon't set RUSTFLAGS in d/rules. (Closes: #914110)
Ximin Luo [Tue, 20 Nov 2018 06:49:36 +0000 (22:49 -0800)]
Don't set RUSTFLAGS in d/rules. (Closes: #914110)

5 years agoRelease 0.31.0-3 to Debian unstable.
Ximin Luo [Fri, 9 Nov 2018 10:56:59 +0000 (02:56 -0800)]
Release 0.31.0-3 to Debian unstable.

5 years agocargo wrapper script: don't require RUSTFLAGS, use --path to install
Ximin Luo [Fri, 9 Nov 2018 10:43:18 +0000 (02:43 -0800)]
cargo wrapper script: don't require RUSTFLAGS, use --path to install

5 years agoRelease 0.31.0-2 to Debian unstable.
Ximin Luo [Sun, 4 Nov 2018 19:32:38 +0000 (11:32 -0800)]
Release 0.31.0-2 to Debian unstable.

5 years agoBump libgit2 dependency version constraint
Ximin Luo [Sun, 4 Nov 2018 19:16:57 +0000 (11:16 -0800)]
Bump libgit2 dependency version constraint

5 years agoClean up vendor-tarball-unsuspicious.txt
Ximin Luo [Sun, 4 Nov 2018 19:13:20 +0000 (11:13 -0800)]
Clean up vendor-tarball-unsuspicious.txt

5 years agoFix test failure on some architectures due to hash ordering
Ximin Luo [Sun, 4 Nov 2018 18:48:53 +0000 (10:48 -0800)]
Fix test failure on some architectures due to hash ordering

5 years agoRelease 0.31.0-1 to Debian unstable.
Ximin Luo [Sun, 4 Nov 2018 18:10:27 +0000 (10:10 -0800)]
Release 0.31.0-1 to Debian unstable.

5 years agoSign tags in gbp
Ximin Luo [Sun, 4 Nov 2018 18:10:00 +0000 (10:10 -0800)]
Sign tags in gbp

5 years agoMore build script tweaks, for structure
Ximin Luo [Sun, 4 Nov 2018 17:53:20 +0000 (09:53 -0800)]
More build script tweaks, for structure

5 years agoMake vendor patches closer to debcargo-conf and show how to diff it
Ximin Luo [Sun, 4 Nov 2018 17:49:48 +0000 (09:49 -0800)]
Make vendor patches closer to debcargo-conf and show how to diff it

5 years agoMake the wrapper script more robust
Ximin Luo [Sun, 4 Nov 2018 17:23:33 +0000 (09:23 -0800)]
Make the wrapper script more robust

5 years agoFix package include/exclude tests
Ximin Luo [Sun, 4 Nov 2018 17:03:47 +0000 (09:03 -0800)]
Fix package include/exclude tests

5 years agoMore build tweaks
Ximin Luo [Sun, 4 Nov 2018 16:38:29 +0000 (08:38 -0800)]
More build tweaks

5 years agoRelease 0.31.0-1~exp1 to Debian experimental.
Ximin Luo [Sun, 4 Nov 2018 11:50:50 +0000 (03:50 -0800)]
Release 0.31.0-1~exp1 to Debian experimental.

5 years agoUpdate d/copyright
Ximin Luo [Sun, 4 Nov 2018 11:50:14 +0000 (03:50 -0800)]
Update d/copyright

5 years agoUpdate patches
Ximin Luo [Sun, 4 Nov 2018 11:38:43 +0000 (03:38 -0800)]
Update patches

5 years agoUpdate and simplify wrapper script
Ximin Luo [Sun, 4 Nov 2018 11:16:02 +0000 (03:16 -0800)]
Update and simplify wrapper script

5 years agoUpdate d/changelog
Ximin Luo [Sun, 4 Nov 2018 10:51:02 +0000 (02:51 -0800)]
Update d/changelog

5 years agoUpdate upstream source from tag 'upstream/0.31.0'
Ximin Luo [Sun, 4 Nov 2018 10:50:26 +0000 (02:50 -0800)]
Update upstream source from tag 'upstream/0.31.0'

Update to upstream version '0.31.0'
with Debian dir 3eaae63cbeb5766bc72ba75a693b40c1b8ef9937

5 years agoNew upstream version 0.31.0
Ximin Luo [Sun, 4 Nov 2018 10:49:53 +0000 (02:49 -0800)]
New upstream version 0.31.0

5 years agoAdd a cargo wrapper for debian
Ximin Luo [Sun, 4 Nov 2018 10:45:16 +0000 (02:45 -0800)]
Add a cargo wrapper for debian

5 years agodebian-cargo-vendor: clean up more stuff
Ximin Luo [Sun, 4 Nov 2018 09:15:34 +0000 (01:15 -0800)]
debian-cargo-vendor: clean up more stuff

5 years agoAdd vendor patches for next version, some sourced from debcargo-conf
Ximin Luo [Sun, 4 Nov 2018 09:14:29 +0000 (01:14 -0800)]
Add vendor patches for next version, some sourced from debcargo-conf

5 years agoPrepare for using our cargo wrapper
Ximin Luo [Sun, 4 Nov 2018 09:05:40 +0000 (01:05 -0800)]
Prepare for using our cargo wrapper

5 years agoUpdate make_orig_multi to take in patches from debcargo-conf
Ximin Luo [Sun, 4 Nov 2018 08:19:27 +0000 (01:19 -0700)]
Update make_orig_multi to take in patches from debcargo-conf

5 years agoAuto merge of #6217 - ehuss:revert-doc-edition-z, r=Mark-Simulacrum
bors [Wed, 24 Oct 2018 19:52:11 +0000 (19:52 +0000)]
Auto merge of #6217 - ehuss:revert-doc-edition-z, r=Mark-Simulacrum

[1.30.0] Revert 6062 - restore -Zunstable-options for rustdoc

This reverts commit 2131e5a253a5490c0ec478c9940193a48eff664c, reversing
changes made to 8dd0b1cc1980f00c94d661d5ccd9d31ac560302e.

5 years ago[1.30.0] Revert 6062 - restore -Zunstable-options for rustdoc
Eric Huss [Wed, 24 Oct 2018 18:53:25 +0000 (11:53 -0700)]
[1.30.0] Revert 6062 - restore -Zunstable-options for rustdoc

This reverts commit 2131e5a253a5490c0ec478c9940193a48eff664c, reversing
changes made to 8dd0b1cc1980f00c94d661d5ccd9d31ac560302e.

5 years agoAuto merge of #6216 - ehuss:destabilize-edition, r=Mark-Simulacrum
bors [Wed, 24 Oct 2018 16:32:56 +0000 (16:32 +0000)]
Auto merge of #6216 - ehuss:destabilize-edition, r=Mark-Simulacrum

[BETA] Partially destabilize edition.

Removes edition from `cargo new`, and documentation.

Also includes (parts of) #6176 and #6027 to get the beta branch to pass tests on CI.

5 years ago[BETA] Partially destabilize edition.
Eric Huss [Wed, 24 Oct 2018 16:27:55 +0000 (09:27 -0700)]
[BETA] Partially destabilize edition.

5 years agoRelease to unstable
Vasudev Kamath [Sun, 21 Oct 2018 15:20:42 +0000 (20:50 +0530)]
Release to unstable

5 years agoPrepare upload to experimental.
Vasudev Kamath [Sun, 7 Oct 2018 05:10:27 +0000 (10:40 +0530)]
Prepare upload to experimental.

5 years agoUse DEB_BUILD_OPTIONS instead of DEB_BUILD_PROFILES
Vasudev Kamath [Sun, 7 Oct 2018 05:10:01 +0000 (10:40 +0530)]
Use DEB_BUILD_OPTIONS instead of DEB_BUILD_PROFILES

5 years agoMark package compliance with Debian policy 4.2.1
Vasudev Kamath [Sun, 7 Oct 2018 04:49:20 +0000 (10:19 +0530)]
Mark package compliance with Debian policy 4.2.1

5 years agoUpdate copyright file for new release.
Vasudev Kamath [Sun, 7 Oct 2018 04:48:56 +0000 (10:18 +0530)]
Update copyright file for new release.

5 years agoUpdated changelog.
Vasudev Kamath [Tue, 2 Oct 2018 16:47:45 +0000 (22:17 +0530)]
Updated changelog.

5 years agoUpdate libgit2-sys version
Vasudev Kamath [Tue, 2 Oct 2018 16:47:36 +0000 (22:17 +0530)]
Update libgit2-sys version

5 years agoRefresh patch for new release.
Vasudev Kamath [Tue, 2 Oct 2018 16:47:28 +0000 (22:17 +0530)]
Refresh patch for new release.

5 years agoUpdate libssh2-sys version
Vasudev Kamath [Tue, 2 Oct 2018 16:47:17 +0000 (22:17 +0530)]
Update libssh2-sys version

5 years agoRefresh patch for dropping fuzz
Vasudev Kamath [Tue, 2 Oct 2018 16:47:07 +0000 (22:17 +0530)]
Refresh patch for dropping fuzz

5 years agoDrop patch 1001 merged upstream.
Vasudev Kamath [Tue, 2 Oct 2018 16:46:57 +0000 (22:16 +0530)]
Drop patch 1001 merged upstream.

6 years agoDrop cross compile patch, merged upstream.
Vasudev Kamath [Tue, 2 Oct 2018 08:11:13 +0000 (13:41 +0530)]
Drop cross compile patch, merged upstream.

6 years agoUpdate upstream source from tag 'upstream/0.30.0'
Vasudev Kamath [Tue, 2 Oct 2018 07:57:49 +0000 (13:27 +0530)]
Update upstream source from tag 'upstream/0.30.0'

Update to upstream version '0.30.0'
with Debian dir 570af56d2f842e52e10d40779e08ba209c10caac

6 years agoNew upstream version 0.30.0
Vasudev Kamath [Tue, 2 Oct 2018 07:56:23 +0000 (13:26 +0530)]
New upstream version 0.30.0

6 years agoAdd openssl crates fuzz,test doc and apps file to unsuspicious list.
Vasudev Kamath [Tue, 2 Oct 2018 07:51:52 +0000 (13:21 +0530)]
Add openssl crates fuzz,test doc and apps file to unsuspicious list.

6 years agoRefresh patch 2004 for new release.
Vasudev Kamath [Tue, 2 Oct 2018 07:51:40 +0000 (13:21 +0530)]
Refresh patch 2004 for new release.

6 years agoAuto merge of #6069 - eddyb:oopsie-daisy-stabilize-beta, r=alexcrichton
bors [Fri, 21 Sep 2018 16:06:56 +0000 (16:06 +0000)]
Auto merge of #6069 - eddyb:oopsie-daisy-stabilize-beta, r=alexcrichton

[beta] Remove `fix::local_paths_no_fix`, as `crate_in_paths` is getting stabilized.

Beta backport of #6068. Needed for rust-lang/rust#54404 (blocking RC1).

r? @alexcrichton

6 years agoRemove `fix::local_paths_no_fix`, as `crate_in_paths` is getting stabilized.
Eduard-Mihai Burtescu [Fri, 21 Sep 2018 15:18:37 +0000 (18:18 +0300)]
Remove `fix::local_paths_no_fix`, as `crate_in_paths` is getting stabilized.

6 years agoAuto merge of #6062 - joelgallant:rustdoc-edition, r=alexcrichton
bors [Thu, 20 Sep 2018 20:59:17 +0000 (20:59 +0000)]
Auto merge of #6062 - joelgallant:rustdoc-edition, r=alexcrichton

Removes -Zunstable-options for rustdoc testing

As far as I understand, this flag isn't needed anymore, since --edition is stable on beta.

I ran in to this when running `cargo +beta test --doc --verbose` on my crate, which errors with:
```
     Running `rustdoc -Zunstable-options --edition=2018 [omitted...]`
error: the option `Z` is only accepted on the nightly compiler
```

6 years agoFixes verbose output tests
Joel Gallant [Thu, 20 Sep 2018 20:56:51 +0000 (14:56 -0600)]
Fixes verbose output tests

6 years agoRemoves -Zunstable-options for rustdoc testing
Joel Gallant [Thu, 20 Sep 2018 20:04:19 +0000 (14:04 -0600)]
Removes -Zunstable-options for rustdoc testing

6 years agoAuto merge of #6057 - alexcrichton:beta-next, r=ehuss
bors [Wed, 19 Sep 2018 21:04:16 +0000 (21:04 +0000)]
Auto merge of #6057 - alexcrichton:beta-next, r=ehuss

[beta]: Fixup the 1.30.0 branch

Reconciles data found in this comment https://github.com/rust-lang/rust/pull/54342#issuecomment-422640987 by merging the cargo submodule's commit of the original beta for 1.30.0 into the current 1.30.0 branch.

Includes stabilization of `-Z compile-progress` as well as a number of other nice fixes!

r? @ehuss

6 years agoMerge commit 'a5d82949485802abb45f888d5b8b7f23927f031d' into rust-1.30.0
Alex Crichton [Wed, 19 Sep 2018 18:48:05 +0000 (11:48 -0700)]
Merge commit 'a5d82949485802abb45f888d5b8b7f23927f031d' into rust-1.30.0

6 years agoAuto merge of #6054 - steveklabnik:rust-1.30.0, r=alexcrichton
bors [Wed, 19 Sep 2018 00:57:28 +0000 (00:57 +0000)]
Auto merge of #6054 - steveklabnik:rust-1.30.0, r=alexcrichton

No longer warn about #![feature(rust_2018_preview)]

Backport of https://github.com/rust-lang/cargo/pull/6052 to 1.30

6 years agoUpdate env_logger version
steveklabnik [Wed, 19 Sep 2018 00:56:40 +0000 (20:56 -0400)]
Update env_logger version

See https://github.com/rust-lang/cargo/pull/6054#issuecomment-422608965 for more details.

6 years agoNo longer warn about #![feature(rust_2018_preview)]
steveklabnik [Tue, 18 Sep 2018 19:04:55 +0000 (15:04 -0400)]
No longer warn about #![feature(rust_2018_preview)]

This is no longer needed, and so the warning is outdated.

Fixes #6050

6 years agoAuto merge of #6021 - zachlute:validate-package-name, r=alexcrichton
bors [Thu, 13 Sep 2018 19:14:15 +0000 (19:14 +0000)]
Auto merge of #6021 - zachlute:validate-package-name, r=alexcrichton

Validate that the package name contains no invalid characters.

Fixes #2388.

Invalid characters are currently defined as alphanumeric, _, and -. This matches the rustc restrictions but is not as restrictive as `cargo new` or crates.io.

Mostly this is just so there will be better error messages in the case where characters in the package name aren't valid path characters.

6 years agoAuto merge of #6022 - ehuss:fix-doc-priv, r=alexcrichton
bors [Thu, 13 Sep 2018 15:45:01 +0000 (15:45 +0000)]
Auto merge of #6022 - ehuss:fix-doc-priv, r=alexcrichton

Fix --document-private-items for multiple targets.

Closes #5958.

6 years agoFix --document-private-items for multiple targets.
Eric Huss [Thu, 13 Sep 2018 13:19:35 +0000 (06:19 -0700)]
Fix --document-private-items for multiple targets.

Closes #5958.

6 years agoValidate that the package name contains no invalid characters.
Zach Lute [Thu, 13 Sep 2018 02:39:16 +0000 (19:39 -0700)]
Validate that the package name contains no invalid characters.

Invalid characters are currently defined as alphanumeric, _, and -. This matches the rustc restrictions but is not as restrictive as `cargo new` or crates.io.

Mostly this is just so there will be better error messages in the case where characters in the package name aren't valid path characters.

6 years agoAuto merge of #6010 - ehuss:winsize, r=alexcrichton
bors [Wed, 12 Sep 2018 17:50:19 +0000 (17:50 +0000)]
Auto merge of #6010 - ehuss:winsize, r=alexcrichton

Get window size on more Windows terminals.

This is an alternate approach to determining the window size that works on more Windows terminals.

Terminals with accurate width detection: Normal Windows console, cmder, ConEmu, VS Code, Hyper, etc.

mintty-based terminals will always be 60 characters wide. Cygwin in a command console is ok, but
running under x-windows will also always be 60.

Tested on Windows 8 and Windows 10.

Closes #5124.

6 years agoGet window size on more Windows terminals.
Eric Huss [Tue, 11 Sep 2018 19:40:02 +0000 (12:40 -0700)]
Get window size on more Windows terminals.

This is an alternate approach to determining the window size that works on more Windows terminals.

Terminals with accurate width detection: Normal Windows console, cmder, ConEmu, VS Code, Hyper, etc.

mintty-based terminals will always be 60 characters wide. Cygwin in a command console is ok, but
running under x-windows will also always be 60.

Tested on Windows 8 and Windows 10.

Closes #5124.

6 years agoAuto merge of #5995 - kennytm:stabilize-compile-progress, r=alexcrichton
bors [Wed, 12 Sep 2018 06:56:12 +0000 (06:56 +0000)]
Auto merge of #5995 - kennytm:stabilize-compile-progress, r=alexcrichton

Stabilize -Zcompile-progress.

Closes #2536.

6 years agoDo not add --color to rustdoc if it doesn't support it.
kennytm [Wed, 12 Sep 2018 03:32:27 +0000 (11:32 +0800)]
Do not add --color to rustdoc if it doesn't support it.

We detect this by executing `rustdoc --color never -V` and see if the
result is successful. To avoid repeatedly creating a new process, we
cache the result into `.rustc_info.json`.

6 years agoUpdate the testsuite to include the explicit '--color' flags.
kennytm [Sun, 9 Sep 2018 17:39:55 +0000 (01:39 +0800)]
Update the testsuite to include the explicit '--color' flags.

6 years agoStabilize -Zcompile-progress.
kennytm [Sat, 8 Sep 2018 12:18:04 +0000 (20:18 +0800)]
Stabilize -Zcompile-progress.

Closes #2536.

6 years agoAuto merge of #6006 - EPashkin:master, r=alexcrichton
bors [Tue, 11 Sep 2018 17:10:35 +0000 (17:10 +0000)]
Auto merge of #6006 - EPashkin:master, r=alexcrichton

Fix example for usage still not published uuid 2.0.0

IMHO There some inconsistency in https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#prepublishing-a-breaking-change
We have unpublished version 2.0.0 for uuid crate in branch with same name.
Now we can test it in `my-library` without waiting for publish as written in docs.
But if `my-library` changes committed to its master, for `my-binary` patch need be same as in library,
as uuid 2.0.0 still not published.

6 years agoFix example for usage still not published uuid 2.0.0
Evgenii Pashkin [Tue, 11 Sep 2018 07:20:48 +0000 (10:20 +0300)]
Fix example for usage still not published uuid 2.0.0

6 years agoAuto merge of #5994 - zachlute:convert-file-uris, r=alexcrichton
bors [Tue, 11 Sep 2018 05:11:40 +0000 (05:11 +0000)]
Auto merge of #5994 - zachlute:convert-file-uris, r=alexcrichton

Print file paths instead of file:// URLs.

Fixes #4661.

This change ensures cargo will output file paths in the expected format
(C:\foo\... on Windows, /foo/... elsewhere). Previously it would output
file:// URLs instead.

To support this change, additional changes were made to the test suite
string processing such that [ROOT] is now replaced with the appropriate
file path root for the platform.

The CWD template was also updated to use [CWD] like other replacement
templates and to do the replacement on the expected value rather than
the actual value to avoid replacing things we don't expect with CWD.

6 years agoResolve conflicts from upstream.
Zach Lute [Sun, 9 Sep 2018 23:59:48 +0000 (16:59 -0700)]
Resolve conflicts from upstream.

6 years agoFixed CWD templates in tool_path tests.
Zach Lute [Sun, 9 Sep 2018 23:51:23 +0000 (16:51 -0700)]
Fixed CWD templates in tool_path tests.

6 years agoResolve merge conflicts with test string changes.
Zach Lute [Sun, 9 Sep 2018 23:48:57 +0000 (16:48 -0700)]
Resolve merge conflicts with test string changes.

6 years agoAuto merge of #5997 - dwijnand:no-libgit2-user-agent-testing, r=alexcrichton
bors [Sun, 9 Sep 2018 22:53:25 +0000 (22:53 +0000)]
Auto merge of #5997 - dwijnand:no-libgit2-user-agent-testing, r=alexcrichton

Drop the libgit2 User-Agent testing from http_auth_offered

Fixes #5306

6 years agoAuto merge of #5990 - dwijnand:no-crates.io-index-url, r=alexcrichton
bors [Sun, 9 Sep 2018 21:06:13 +0000 (21:06 +0000)]
Auto merge of #5990 - dwijnand:no-crates.io-index-url, r=alexcrichton

Don't print crates.io-index URL when Updating

Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).

Before:

    $ cargo install lazy_static
        Updating registry `https://github.com/rust-lang/crates.io-index`

After:

    $ dcargo install lazy_static
        Updating crates.io index

Fixes #4208

6 years agoAuto merge of #5959 - japaric:cfg-runner, r=alexcrichton
bors [Sun, 9 Sep 2018 20:01:06 +0000 (20:01 +0000)]
Auto merge of #5959 - japaric:cfg-runner, r=alexcrichton

add support for `target.'cfg(..)'.runner`

`cfg` can be used to reduce the number of `runner`s one needs to type in
`.cargo/config`. So instead of writing this:

``` toml
[target.thumbv6m-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7m-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7em-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7em-none-eabihf]
runner = "arm-none-eabi-gdb"
```

one can write:

``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "arm-none-eabi-gdb"
```

Handling of edge cases:

- When `target.$triple.runner` matches it will be chosen regardless of the
  existence of others `target.'cfg(..)'.runner`s.

- If more than one `target.'cfg(..)'.runner` matches the target the command will
  fail.

closes #5946

---

Does this sound like a reasonable feature / implementation?

6 years agoDrop the libgit2 User-Agent testing from http_auth_offered
Dale Wijnand [Sun, 9 Sep 2018 08:17:07 +0000 (09:17 +0100)]
Drop the libgit2 User-Agent testing from http_auth_offered

6 years agodeduplicate logic shared with `build_context::env_args`
Jorge Aparicio [Sat, 8 Sep 2018 12:50:35 +0000 (14:50 +0200)]
deduplicate logic shared with `build_context::env_args`

6 years agoadd support for `target.'cfg(..)'.runner`
Jorge Aparicio [Sat, 1 Sep 2018 16:01:47 +0000 (18:01 +0200)]
add support for `target.'cfg(..)'.runner`

`cfg` can be used to reduce the number of `runner`s one needs to type in
`.cargo/config`. So instead of writing this:

``` toml
[target.thumbv6m-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7m-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7em-none-eabi]
runner = "arm-none-eabi-gdb"

[target.thumbv7em-none-eabihf]
runner = "arm-none-eabi-gdb"
```

one can write:

``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "arm-none-eabi-gdb"
```

Handling of edge cases:

- When `target.$triple.runner` matches it will be chosen regardless of the
  existence of others `target.'cfg(..)'.runner`s.

- If more than one `target.'cfg(..)'.runner` matches the target the command will
  fail.

closes #5946

6 years agoUpdate tests to new Updating msg format
Dale Wijnand [Sat, 8 Sep 2018 09:23:57 +0000 (10:23 +0100)]
Update tests to new Updating msg format

6 years agoSpecify crates.io is the default registry & print index
Dale Wijnand [Sat, 8 Sep 2018 08:25:41 +0000 (09:25 +0100)]
Specify crates.io is the default registry & print index

6 years agoPrint file paths instead of file:// URLs.
Zach Lute [Sat, 8 Sep 2018 02:42:26 +0000 (19:42 -0700)]
Print file paths instead of file:// URLs.

This change ensures cargo will output file paths in the expected format
(C:\foo\... on Windows, /foo/... elsewhere). Previously it would output
file:// URLs instead.

To support this change, additional changes were made to the test suite
string processing such that [ROOT] is now replaced with the appropriate
file path root for the platform.

The CWD template was also updated to use [CWD] like other replacement
templates and to do the replacement on the expected value rather than
the actual value to avoid replacing things we don't expect with CWD.

6 years agoAuto merge of #5991 - alexcrichton:bump, r=alexcrichton
bors [Fri, 7 Sep 2018 17:00:19 +0000 (17:00 +0000)]
Auto merge of #5991 - alexcrichton:bump, r=alexcrichton

Bump Cargo to 0.30.0

Looks like we accidentally forgot to do this!

6 years agoBump Cargo to 0.30.0
Alex Crichton [Fri, 7 Sep 2018 15:43:02 +0000 (08:43 -0700)]
Bump Cargo to 0.30.0

Looks like we accidentally forgot to do this!

6 years agoDon't print crates.io-index URL when Updating
Dale Wijnand [Fri, 7 Sep 2018 08:49:30 +0000 (09:49 +0100)]
Don't print crates.io-index URL when Updating

Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).

Before:

    $ cargo install lazy_static
        Updating registry `https://github.com/rust-lang/crates.io-index`

After:

    $ dcargo install lazy_static
        Updating registry

6 years agoAuto merge of #5989 - alexcrichton:change-default, r=Mark-Simulacrum
bors [Fri, 7 Sep 2018 00:15:42 +0000 (00:15 +0000)]
Auto merge of #5989 - alexcrichton:change-default, r=Mark-Simulacrum

Change the default edition for `cargo new` to 2018

As it says on the tin! Some tests were updated to explicitly pass 2015 so they
can continue to work on stable, and otherwise `cargo new` should now by default
generate a 2018 project.

6 years agoChange the default edition for `cargo new` to 2018
Alex Crichton [Fri, 7 Sep 2018 00:01:20 +0000 (17:01 -0700)]
Change the default edition for `cargo new` to 2018

As it says on the tin! Some tests were updated to explicitly pass 2015 so they
can continue to work on stable, and otherwise `cargo new` should now by default
generate a 2018 project.

6 years agoAuto merge of #5984 - alexcrichton:stabilize-edition, r=ehuss
bors [Thu, 6 Sep 2018 22:17:24 +0000 (22:17 +0000)]
Auto merge of #5984 - alexcrichton:stabilize-edition, r=ehuss

Stabilize `edition` key and add `cargo new --edition`

This commit stabilizes the `edition` key in `Cargo.toml`, both in the
`[package]` section and inside subtargets. Additionally the `cargo new` and
`cargo init` subcommands have been enhanced with a `--edition` flag to allow
explicitly specifying the edition to be generated.

This commit does not yet change the default edition that's generated.

Closes #5980

6 years agoStabilize `edition` key and add `cargo new --edition`
Alex Crichton [Wed, 5 Sep 2018 22:29:22 +0000 (15:29 -0700)]
Stabilize `edition` key and add `cargo new --edition`

This commit stabilizes the `edition` key in `Cargo.toml`, both in the
`[package]` section and inside subtargets. Additionally the `cargo new` and
`cargo init` subcommands have been enhanced with a `--edition` flag to allow
explicitly specifying the edition to be generated.

This commit does not yet change the default edition that's generated.

Closes #5980

6 years agoAuto merge of #5987 - dwijnand:remove-cwd-root, r=alexcrichton
bors [Thu, 6 Sep 2018 17:27:02 +0000 (17:27 +0000)]
Auto merge of #5987 - dwijnand:remove-cwd-root, r=alexcrichton

Remove/rework some redundant .cwd(p.root()) in tests

Just a little trim to the tests.

6 years agoAuto merge of #5985 - dwijnand:fix-rustc-wrapper-unset, r=alexcrichton
bors [Thu, 6 Sep 2018 16:24:16 +0000 (16:24 +0000)]
Auto merge of #5985 - dwijnand:fix-rustc-wrapper-unset, r=alexcrichton

Don't use an empty RUSTC_WRAPPER

Fixes #5588

6 years agoDon't use an empty RUSTC_WRAPPER
Dale Wijnand [Wed, 5 Sep 2018 23:26:29 +0000 (00:26 +0100)]
Don't use an empty RUSTC_WRAPPER

6 years agoSimplify test::install_ignores_cargo_config
Dale Wijnand [Thu, 6 Sep 2018 06:37:01 +0000 (07:37 +0100)]
Simplify test::install_ignores_cargo_config

6 years agoFix change in install::install_ignores_cargo_config
Dale Wijnand [Thu, 6 Sep 2018 06:36:54 +0000 (07:36 +0100)]
Fix change in install::install_ignores_cargo_config

6 years agosupport::git::Repository doesn't support .cargo (yet?)
Dale Wijnand [Thu, 6 Sep 2018 06:33:24 +0000 (07:33 +0100)]
support::git::Repository doesn't support .cargo (yet?)

6 years agoAuto merge of #5983 - alexcrichton:fix-rustc-wrapper, r=dwijnand
bors [Thu, 6 Sep 2018 06:26:20 +0000 (06:26 +0000)]
Auto merge of #5983 - alexcrichton:fix-rustc-wrapper, r=dwijnand

fix: Fix unusual errors with `RUSTC_WRAPPER`

This commit fixes the interaction of `cargo fix` and `RUSTC_WRAPPER`, ensuring
that Cargo at least doesn't die internally. For now `RUSTC_WRAPPER` is
overridden for normal execution but we can eventually one day probably support
`RUSTC_WRAPPER`!

Closes #5981

6 years agoRemove/reworksome redundant .cwd(p.root()) in tests
Dale Wijnand [Thu, 6 Sep 2018 00:12:53 +0000 (01:12 +0100)]
Remove/reworksome redundant .cwd(p.root()) in tests

6 years agofix: Fix unusual errors with `RUSTC_WRAPPER`
Alex Crichton [Wed, 5 Sep 2018 22:17:43 +0000 (15:17 -0700)]
fix: Fix unusual errors with `RUSTC_WRAPPER`

This commit fixes the interaction of `cargo fix` and `RUSTC_WRAPPER`, ensuring
that Cargo at least doesn't die internally. For now `RUSTC_WRAPPER` is
overridden for normal execution but we can eventually one day probably support
`RUSTC_WRAPPER`!

Closes #5981

6 years agoAuto merge of #5977 - ehuss:timeout-doc, r=alexcrichton
bors [Wed, 5 Sep 2018 06:56:44 +0000 (06:56 +0000)]
Auto merge of #5977 - ehuss:timeout-doc, r=alexcrichton

Fix http.timeout documentation.

This was changed in #2770, but the docs were never updated.

6 years agoFix http.timeout documentation.
Eric Huss [Wed, 5 Sep 2018 04:20:42 +0000 (21:20 -0700)]
Fix http.timeout documentation.

This was changed in #2770, but the docs were never updated.