]> git.proxmox.com Git - cargo.git/log
cargo.git
6 years agoReplace some assert_that usage in doc comments
Dale Wijnand [Wed, 29 Aug 2018 06:37:21 +0000 (08:37 +0200)]
Replace some assert_that usage in doc comments

6 years agoMove MatchResult from hamcrest to testsuite/support
Dale Wijnand [Wed, 29 Aug 2018 06:33:18 +0000 (08:33 +0200)]
Move MatchResult from hamcrest to testsuite/support

6 years agoRemove hamcrest Matcher
Dale Wijnand [Wed, 29 Aug 2018 06:32:48 +0000 (08:32 +0200)]
Remove hamcrest Matcher

6 years agoRemove hamcrest has_installed_exe & is_not
Dale Wijnand [Wed, 29 Aug 2018 06:32:28 +0000 (08:32 +0200)]
Remove hamcrest has_installed_exe & is_not

6 years agoRemove hamcrest existing_file()
Dale Wijnand [Wed, 29 Aug 2018 06:11:10 +0000 (08:11 +0200)]
Remove hamcrest existing_file()

6 years agoRemove hamcrest existing_dir()
Dale Wijnand [Wed, 29 Aug 2018 05:53:01 +0000 (07:53 +0200)]
Remove hamcrest existing_dir()

6 years agoRemove hamcrest contains()
Dale Wijnand [Wed, 29 Aug 2018 05:42:03 +0000 (07:42 +0200)]
Remove hamcrest contains()

6 years agoAuto merge of #5942 - dwijnand:less-assert_that, r=alexcrichton
bors [Wed, 29 Aug 2018 00:27:20 +0000 (00:27 +0000)]
Auto merge of #5942 - dwijnand:less-assert_that, r=alexcrichton

Further reduce assert_that usage

Refs #5742

6 years agoRevert back to some .exec_with_output() usage
Dale Wijnand [Wed, 29 Aug 2018 00:04:28 +0000 (02:04 +0200)]
Revert back to some .exec_with_output() usage

Avoids difference in indentations across different PATHs.

6 years agoEnable Drop for Execs
Dale Wijnand [Tue, 28 Aug 2018 22:12:13 +0000 (00:12 +0200)]
Enable Drop for Execs

6 years agoAllow .build_command() to set Execs to ran
Dale Wijnand [Tue, 28 Aug 2018 22:44:48 +0000 (00:44 +0200)]
Allow .build_command() to set Execs to ran

6 years agoMake last two .exec_with_output() usages set Execs to ran
Dale Wijnand [Tue, 28 Aug 2018 22:12:06 +0000 (00:12 +0200)]
Make last two .exec_with_output() usages set Execs to ran

6 years agoReplace .exec_with_output() usage with .with_stdout_contains
Dale Wijnand [Tue, 28 Aug 2018 22:11:30 +0000 (00:11 +0200)]
Replace .exec_with_output() usage with .with_stdout_contains

6 years agoReplace .exec_with_output() usage with .run()
Dale Wijnand [Tue, 28 Aug 2018 22:10:01 +0000 (00:10 +0200)]
Replace .exec_with_output() usage with .run()

6 years agoRemove a dead comment in testsuite/support/mod.rs
Dale Wijnand [Tue, 28 Aug 2018 21:50:03 +0000 (23:50 +0200)]
Remove a dead comment in testsuite/support/mod.rs

6 years agoUpdate reference to .stream() in ARCHITECTURE.md
Dale Wijnand [Tue, 28 Aug 2018 21:30:56 +0000 (23:30 +0200)]
Update reference to .stream() in ARCHITECTURE.md

6 years agoDrop reference to the [/] macro in ARCHITECTURE.md
Dale Wijnand [Tue, 28 Aug 2018 21:30:46 +0000 (23:30 +0200)]
Drop reference to the [/] macro in ARCHITECTURE.md

6 years agoReplace Output hamcrest matchers for Execs
Dale Wijnand [Tue, 28 Aug 2018 21:24:10 +0000 (23:24 +0200)]
Replace Output hamcrest matchers for Execs

6 years agoReplace some bare ProcessBuilder usage with Execs
Dale Wijnand [Tue, 28 Aug 2018 21:05:39 +0000 (23:05 +0200)]
Replace some bare ProcessBuilder usage with Execs

6 years agoMake Project::process return Execs
Dale Wijnand [Tue, 28 Aug 2018 20:38:26 +0000 (22:38 +0200)]
Make Project::process return Execs

6 years agoAuto merge of #5929 - dwijnand:remove-hamcrest, r=alexcrichton
bors [Tue, 28 Aug 2018 17:18:06 +0000 (17:18 +0000)]
Auto merge of #5929 - dwijnand:remove-hamcrest, r=alexcrichton

Replace lots of hamcrest's assert_that with a builder style

Refs #5742

I've been thinking of possible solutions to close out #5742, so I'm submitting this for early feedback.

@alexcrichton what do you think? If you like the look of this I'll apply it across the suite.

r? @alexcrichton

6 years agoMigrate from tests fom assert_that/execs to .run()
Dale Wijnand [Tue, 28 Aug 2018 09:20:03 +0000 (10:20 +0100)]
Migrate from tests fom assert_that/execs to .run()

6 years agoWrap ProcessBuilder in Execs & make .cargo return that
Dale Wijnand [Tue, 28 Aug 2018 08:24:37 +0000 (09:24 +0100)]
Wrap ProcessBuilder in Execs & make .cargo return that

6 years agoMake old Execs methods take not consume self
Dale Wijnand [Fri, 24 Aug 2018 15:56:08 +0000 (16:56 +0100)]
Make old Execs methods take not consume self

6 years agoExtract Execs::match_process
Dale Wijnand [Tue, 28 Aug 2018 08:07:33 +0000 (09:07 +0100)]
Extract Execs::match_process

6 years agoAdd #[must_use] to Execs
Dale Wijnand [Thu, 23 Aug 2018 15:33:37 +0000 (16:33 +0100)]
Add #[must_use] to Execs

6 years agoInline Execs::_with_stderr
Dale Wijnand [Fri, 24 Aug 2018 15:55:34 +0000 (16:55 +0100)]
Inline Execs::_with_stderr

6 years agoRemove an unrun "cargo build" ProcessBuilder
Dale Wijnand [Fri, 24 Aug 2018 09:37:05 +0000 (10:37 +0100)]
Remove an unrun "cargo build" ProcessBuilder

6 years agoAuto merge of #5939 - ehuss:test-package-docs, r=alexcrichton
bors [Sat, 25 Aug 2018 04:23:02 +0000 (04:23 +0000)]
Auto merge of #5939 - ehuss:test-package-docs, r=alexcrichton

Add documentation for creating test dependencies.

Using `Package` has always been a little unclear to me. I think I understand
it now. Maybe this will help.

6 years agoAdd documentation for creating test dependencies.
Eric Huss [Fri, 24 Aug 2018 22:09:38 +0000 (15:09 -0700)]
Add documentation for creating test dependencies.

Using `Package` has always been a little unclear to me. I think I understand
it now. Maybe this will help.

6 years agoAuto merge of #5935 - alexcrichton:vendor-paths, r=ehuss
bors [Fri, 24 Aug 2018 19:37:00 +0000 (19:37 +0000)]
Auto merge of #5935 - alexcrichton:vendor-paths, r=ehuss

Only use non-absolute paths for `path` dependencies

Previously Cargo would use a non-absolute path for any dependency contained
within the workspace root but this switches Cargo to only using relative paths
for `path` dependencies. In practice this shouldn't make much difference, but
for vendored crates and moving around `CARGO_HOME` it can produce more
consistent results when target directories are shared.

Closes #5923

6 years agoOnly use non-absolute paths for `path` dependencies
Alex Crichton [Thu, 23 Aug 2018 18:51:05 +0000 (11:51 -0700)]
Only use non-absolute paths for `path` dependencies

Previously Cargo would use a non-absolute path for any dependency contained
within the workspace root but this switches Cargo to only using relative paths
for `path` dependencies. In practice this shouldn't make much difference, but
for vendored crates and moving around `CARGO_HOME` it can produce more
consistent results when target directories are shared.

Closes #5923

6 years agoAuto merge of #5628 - ehuss:metabuild, r=alexcrichton
bors [Fri, 24 Aug 2018 17:14:10 +0000 (17:14 +0000)]
Auto merge of #5628 - ehuss:metabuild, r=alexcrichton

Metabuild (RFC 2196)

6 years agoAuto merge of #5937 - ehuss:fix-codemap, r=alexcrichton
bors [Fri, 24 Aug 2018 07:13:41 +0000 (07:13 +0000)]
Auto merge of #5937 - ehuss:fix-codemap, r=alexcrichton

Fix test failure on nightly due to `codemap::Span` change.

Update due to rust-lang/rust#52953.

6 years agoFix test failure on nightly due to `codemap::Span` change.
Eric Huss [Fri, 24 Aug 2018 06:56:50 +0000 (23:56 -0700)]
Fix test failure on nightly due to `codemap::Span` change.

Update due to rust-lang/rust#52953.

6 years agoNew metabuild strategy using custom src_path enum.
Eric Huss [Fri, 24 Aug 2018 04:49:43 +0000 (21:49 -0700)]
New metabuild strategy using custom src_path enum.

- Use new enum `TargertSourcePath` for Target::src_path to make it explicit that metabuild has a special path.
- `cargo metadata` now skips the metabuild Target.
- JSON artifacts include the true path to the metabuild source file. This may not be the best solution, but it's unclear what it should be, and I would prefer to avoid breaking the output. Alternatively it could just not emit anything? I'm not completely familiar with the use case of these artifact messages.
- Place the file in `target/.metabuild/metabuild-pkgname-HASH.rs` instead of in the debug/release directory.  Its contents do not depend on the profile.
- Fix bug in write_if_changed.
- More tests.

6 years agoRemove unnecessary change.
Eric Huss [Tue, 12 Jun 2018 22:24:11 +0000 (15:24 -0700)]
Remove unnecessary change.

6 years agoAddress review comments.
Eric Huss [Tue, 12 Jun 2018 21:23:43 +0000 (14:23 -0700)]
Address review comments.

- Add newline at end of file.
- Remove unnecessary rustfmt changes.
- Move file writing code to `write_if_changed`.

6 years agoMetabuild (RFC 2196)
Eric Huss [Mon, 11 Jun 2018 17:44:55 +0000 (10:44 -0700)]
Metabuild (RFC 2196)

6 years agoAuto merge of #5927 - dwijnand:uninstall-cwd, r=ehuss
bors [Thu, 23 Aug 2018 16:25:14 +0000 (16:25 +0000)]
Auto merge of #5927 - dwijnand:uninstall-cwd, r=ehuss

Make "cargo uninstall" uninstall the cwd bins

Fixes #5916

Tested with a local build of cargo, using coreutils:

    17:33:57 $ dcargo uninstall
    Removing /Users/dnw/.cargo/bin/uutils

6 years agoHandle Window's missing file error message
Dale Wijnand [Thu, 23 Aug 2018 13:00:26 +0000 (14:00 +0100)]
Handle Window's missing file error message

6 years agoMake "cargo uninstall" uninstall the cwd bins
Dale Wijnand [Wed, 22 Aug 2018 16:36:53 +0000 (17:36 +0100)]
Make "cargo uninstall" uninstall the cwd bins

6 years agoAuto merge of #5919 - RalfJung:mtime, r=alexcrichton
bors [Wed, 22 Aug 2018 20:39:04 +0000 (20:39 +0000)]
Auto merge of #5919 - RalfJung:mtime, r=alexcrichton

fix cargo not doing anything when the input and output mtimes are equal

That's a problem as the input may have changed in that same second but after the output got generated!

Fixes https://github.com/rust-lang/cargo/issues/5918

6 years agoupdate comment based on further research
Ralf Jung [Wed, 22 Aug 2018 18:55:14 +0000 (20:55 +0200)]
update comment based on further research

6 years agoAuto merge of #5926 - alexcrichton:more-errors, r=dwijnand
bors [Wed, 22 Aug 2018 18:02:19 +0000 (18:02 +0000)]
Auto merge of #5926 - alexcrichton:more-errors, r=dwijnand

List URL in HTTP download failures

Hopefully will help diagnose issues like #5924

6 years agoAuto merge of #5925 - dwijnand:improve-install-cwd-deprecation, r=alexcrichton
bors [Wed, 22 Aug 2018 16:26:40 +0000 (16:26 +0000)]
Auto merge of #5925 - dwijnand:improve-install-cwd-deprecation, r=alexcrichton

Improve the `cargo install` deprecation messaging

Fixes #5917

r? @matklad
/cc @brson also as I'd love to hear your feedback too.

6 years agoList URL in HTTP download failures
Alex Crichton [Wed, 22 Aug 2018 16:18:58 +0000 (09:18 -0700)]
List URL in HTTP download failures

Hopefully will help diagnose issues like #5924

6 years agoFix compilation error
Dale Wijnand [Wed, 22 Aug 2018 09:05:35 +0000 (10:05 +0100)]
Fix compilation error

Apparently the bail! macro doesn't support trailing commas :-/

6 years agoImprove the `cargo install` deprecation messaging
Dale Wijnand [Wed, 22 Aug 2018 08:46:50 +0000 (09:46 +0100)]
Improve the `cargo install` deprecation messaging

6 years agoAuto merge of #5902 - little-arhat:feature-add-required-features-to-metadata-output...
bors [Tue, 21 Aug 2018 20:51:26 +0000 (20:51 +0000)]
Auto merge of #5902 - little-arhat:feature-add-required-features-to-metadata-output, r=alexcrichton

Add `required-features` to `SerializedTarget`

This will add it to `cargo metadata` output and will make it
possible to enable features needed to build specific target.

6 years agoAuto merge of #5914 - alexcrichton:system-git, r=dwijnand
bors [Tue, 21 Aug 2018 19:55:15 +0000 (19:55 +0000)]
Auto merge of #5914 - alexcrichton:system-git, r=dwijnand

Add a configuration option to fetch with git-the-CLI

Currently Cargo always uses `libgit2` to perform all fetches of git
repositories, but sometimes this is not sufficient. The `libgit2` library
doesn't support all authentication schemes that `git` does and it isn't always
quite at feature parity with `git` itself, especially in terms of network
configuration.

This commit adds a configuration option to Cargo for fetching git repositories
with the `git` CLI tool rather than the internal `libgit2`. While this exposes
us to changes over time in the `git` CLI it's hopefully a very targeted use case
that doesn't change much. The internal `libgit2` library should be sufficient
for all other forms of git repository management. (and using `git` for only
fetches shouldn't slow us down much)

The new configuration option in `.cargo/config` is:

    [net]
    git-fetch-with-cli = true

which can also be specified with `CARGO_NET_GIT_FETCH_WITH_CLI=true` via an
environment variable.

Closes #5903

6 years agoattempt to fix test suite race on mac
Ralf Jung [Tue, 21 Aug 2018 16:14:45 +0000 (18:14 +0200)]
attempt to fix test suite race on mac

6 years agoAdd a configuration option to fetch with git-the-CLI
Alex Crichton [Mon, 20 Aug 2018 17:01:16 +0000 (10:01 -0700)]
Add a configuration option to fetch with git-the-CLI

Currently Cargo always uses `libgit2` to perform all fetches of git
repositories, but sometimes this is not sufficient. The `libgit2` library
doesn't support all authentication schemes that `git` does and it isn't always
quite at feature parity with `git` itself, especially in terms of network
configuration.

This commit adds a configuration option to Cargo for fetching git repositories
with the `git` CLI tool rather than the internal `libgit2`. While this exposes
us to changes over time in the `git` CLI it's hopefully a very targeted use case
that doesn't change much. The internal `libgit2` library should be sufficient
for all other forms of git repository management. (and using `git` for only
fetches shouldn't slow us down much)

The new configuration option in `.cargo/config` is:

    [net]
    git-fetch-with-cli = true

which can also be specified with `CARGO_NET_GIT_FETCH_WITH_CLI=true` via an
environment variable.

Closes #5903

6 years agofix cargo not doing anything when the input and output mtimes are equal
Ralf Jung [Tue, 21 Aug 2018 14:13:11 +0000 (16:13 +0200)]
fix cargo not doing anything when the input and output mtimes are equal

That's a problem as the input may have changed in that same second but after the output got generated!

6 years agoAuto merge of #5886 - dekellum:record-package-git-head-3, r=alexcrichton
bors [Mon, 20 Aug 2018 21:18:45 +0000 (21:18 +0000)]
Auto merge of #5886 - dekellum:record-package-git-head-3, r=alexcrichton

Generate .cargo_vcs_info.json and include in `cargo package` (take 2)

Implements #5629 and supersedes #5786, with the following improvements:

* With an upstream git2-rs fix (tracked #5823, validated and min version update in: #5858), no longer requires windows/unix split tests.

* Per review in #5786, drops file system output and locks for .cargo_vcs_info.json.

* Now uses serde `json!` macro for json production with appropriate escaping.

* Now includes a test of the output json format.

Possible followup:

* Per discussion in #5786, we could improve reliability of both the VCS dirty check and the git head sha1 recording by preferring (and/or warning otherwise) the local repository bytes of each source file, at the same head commit. This makes the process more appropriately like an atomic snapshot, with no sentry file or other locking required.  However given my lack of a window's license and dev setup, as exhibited by troubles of #5823, this feel intuitively like too much to attempt to change in one iteration here.  I accept the "best effort" concept of this feature as suggested in #5786, and think it acceptable progress if merged in this form.

@alexcrichton r?
@joshtriplett cc

6 years agoSerialize required_dependencies as 'require-dependencies'
Roma Sokolov [Mon, 20 Aug 2018 18:54:45 +0000 (20:54 +0200)]
Serialize required_dependencies as 'require-dependencies'

6 years agoAuto merge of #5912 - rust-lang:dependabot/cargo/opener-0.3.0, r=alexcrichton
bors [Mon, 20 Aug 2018 17:34:45 +0000 (17:34 +0000)]
Auto merge of #5912 - rust-lang:dependabot/cargo/opener-0.3.0, r=alexcrichton

Update opener requirement from 0.2.0 to 0.3.0

Updates the requirements on [opener](https://github.com/Seeker14491/opener) to permit the latest version.
<details>
<summary>Changelog</summary>

*Sourced from [opener's changelog](https://github.com/Seeker14491/opener/blob/master/CHANGELOG.md).*

> ## [0.3.0] - 2018-08-18
> ### Added
> - `stderr` field to `OpenError::ExitStatus` variant, which captures anything the failed process wrote to stderr.
>
> ## [0.2.0] - 2018-08-08
> ### Removed
> - The `open_sys` function, which was erroneously pub on non-Windows builds.
>
> ## [0.1.0] - 2018-08-08
> - Initial release.
</details>
<details>
<summary>Commits</summary>

- See full diff in [compare view](https://github.com/Seeker14491/opener/commits/v0.3.0)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>

6 years agoUpdate opener requirement from 0.2.0 to 0.3.0
dependabot[bot] [Mon, 20 Aug 2018 05:27:11 +0000 (05:27 +0000)]
Update opener requirement from 0.2.0 to 0.3.0

Updates the requirements on [opener](https://github.com/Seeker14491/opener) to permit the latest version.
- [Release notes](https://github.com/Seeker14491/opener/releases)
- [Changelog](https://github.com/Seeker14491/opener/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Seeker14491/opener/commits/v0.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
6 years agoAuto merge of #5908 - orium:fix-package-cargo-toml, r=alexcrichton
bors [Sun, 19 Aug 2018 17:40:22 +0000 (17:40 +0000)]
Auto merge of #5908 - orium:fix-package-cargo-toml, r=alexcrichton

Fix serialization bug in `edition` field of `TomlProject`.

Fixes #5906.

6 years agoAuto merge of #5904 - dwijnand:backslash, r=alexcrichton
bors [Sun, 19 Aug 2018 16:18:59 +0000 (16:18 +0000)]
Auto merge of #5904 - dwijnand:backslash, r=alexcrichton

Remove backslash management in 2 tool_paths tests

With #5851 this is no longer necessary

6 years agoAuto merge of #5907 - dwijnand:collapse-test-cmd-args, r=matklad
bors [Sun, 19 Aug 2018 15:26:34 +0000 (15:26 +0000)]
Auto merge of #5907 - dwijnand:collapse-test-cmd-args, r=matklad

Collapse ProcessBuilder::arg calls in tests

Refs #5742
More of #5854

6 years agoFix 3 corner tests where whitespaces are important
Dale Wijnand [Sun, 19 Aug 2018 09:16:08 +0000 (10:16 +0100)]
Fix 3 corner tests where whitespaces are important

6 years agoFix serialization bug in `edition` field of `TomlProject`.
Diogo Sousa [Sat, 18 Aug 2018 22:21:01 +0000 (23:21 +0100)]
Fix serialization bug in `edition` field of `TomlProject`.

Fixes #5906.

6 years agoMove .env/.masquerade_as_nightly_cargo to collapse some more p.cargo calls
Dale Wijnand [Sat, 18 Aug 2018 20:34:09 +0000 (21:34 +0100)]
Move .env/.masquerade_as_nightly_cargo to collapse some more p.cargo calls

6 years agoCollapse multiline ProcessBuilder::arg calls in tests
Dale Wijnand [Sat, 18 Aug 2018 14:12:15 +0000 (15:12 +0100)]
Collapse multiline ProcessBuilder::arg calls in tests

.. by calling this a bunch of times:

    fastmod --multiline '\.cargo\("([^"]+)"\).[ ]+\.arg\("([^"]+)"\)' '.cargo("${1} ${2}")' tests/testsuite/

6 years agoCollapse ProcessBuilder::arg calls in tests
Dale Wijnand [Sat, 18 Aug 2018 14:05:45 +0000 (15:05 +0100)]
Collapse ProcessBuilder::arg calls in tests

.. with mutliple calls of:

    fastmod --accept-all '\.cargo\("([^"]+)"\)\.arg\("([^"]+)"\)' '.cargo("${1} ${2}")' tests/testsuite/

until no changes are left.

6 years agoSingle slash root on Windows
Dale Wijnand [Sat, 18 Aug 2018 11:20:00 +0000 (12:20 +0100)]
Single slash root on Windows

6 years agoRemove backslash management in 2 tool_paths tests
Dale Wijnand [Sat, 18 Aug 2018 09:19:39 +0000 (10:19 +0100)]
Remove backslash management in 2 tool_paths tests

6 years agoAdd `required-features` to `SerializedTarget`
Roma Sokolov [Fri, 17 Aug 2018 22:40:06 +0000 (00:40 +0200)]
Add `required-features` to `SerializedTarget`

This will add it to `cargo metadata` output and will make it
possible to enable features needed to build specific target.

6 years agoAuto merge of #5901 - dwijnand:1.28-win, r=alexcrichton
bors [Fri, 17 Aug 2018 15:25:34 +0000 (15:25 +0000)]
Auto merge of #5901 - dwijnand:1.28-win, r=alexcrichton

Align AppVeyor to use 1.28 for minimal versions

.. like Travis CI's setup.

6 years agoAlign AppVeyor to use 1.28 for minimal versions
Dale Wijnand [Fri, 17 Aug 2018 11:05:30 +0000 (12:05 +0100)]
Align AppVeyor to use 1.28 for minimal versions

.. like Travis CI's setup.

6 years agoAuto merge of #5900 - orium:fix-broken-url, r=alexcrichton
bors [Fri, 17 Aug 2018 03:20:52 +0000 (03:20 +0000)]
Auto merge of #5900 - orium:fix-broken-url, r=alexcrichton

Fix broken url in diagnostic.

6 years agoFix broken url in diagnostic.
Diogo Sousa [Thu, 16 Aug 2018 21:50:10 +0000 (22:50 +0100)]
Fix broken url in diagnostic.

6 years agoFix a clippy lint
David Kellum [Thu, 16 Aug 2018 19:34:37 +0000 (12:34 -0700)]
Fix a clippy lint

6 years agoSimplify json production and append to archive
David Kellum [Thu, 16 Aug 2018 19:33:32 +0000 (12:33 -0700)]
Simplify json production and append to archive

Per github review.

6 years agoAuto merge of #5856 - Eh2406:min-test, r=alexcrichton
bors [Wed, 15 Aug 2018 17:00:22 +0000 (17:00 +0000)]
Auto merge of #5856 - Eh2406:min-test, r=alexcrichton

run some tests with minimal-versions on CI

In #5757 we discovered that sum test don't pass with minimal-versions, and so only added CI for `cargo check`. This PR is to see if that is still needed, and if it is then which test rely on upstream bugfix.

6 years agoAuto merge of #5888 - Seeker14491:opener, r=alexcrichton
bors [Wed, 15 Aug 2018 16:09:58 +0000 (16:09 +0000)]
Auto merge of #5888 - Seeker14491:opener, r=alexcrichton

Handle opening browser with `opener` crate

Fixes #5701

A note about behavior on Linux:
When looking for a browser to open the docs with, Cargo currently tries the `$BROWSER` environment variable, `xdg-open`, `gnome-open`, and finally `kde-open`, in that order. With this commit, this behavior changes; the `opener` crate always uses the `xdg-open` script, which is included in the `opener` crate. The `xdg-open` script takes care of finding a suitable browser.

6 years agostop test on appveyor as requested
Eh2406 [Wed, 15 Aug 2018 16:09:44 +0000 (12:09 -0400)]
stop test on appveyor as requested

6 years agobump min rust, and remove nightly check
Eh2406 [Wed, 15 Aug 2018 14:08:39 +0000 (10:08 -0400)]
bump min rust, and remove nightly check

6 years agoDISABLE_CROSS_TESTS for minimal-versions
Eh2406 [Tue, 14 Aug 2018 21:16:41 +0000 (17:16 -0400)]
DISABLE_CROSS_TESTS for minimal-versions

6 years agofix short_message_format vs nightly
Eh2406 [Tue, 14 Aug 2018 21:13:41 +0000 (17:13 -0400)]
fix short_message_format vs nightly

6 years agoTry serde_json
Jacob Finkelman [Fri, 3 Aug 2018 00:05:46 +0000 (20:05 -0400)]
Try serde_json

6 years agoget `features_are_quoted` working with minimal-versions on CI
Eh2406 [Thu, 2 Aug 2018 20:15:11 +0000 (16:15 -0400)]
get `features_are_quoted` working with minimal-versions on CI

6 years agotry running tests with minimal-versions on CI
Eh2406 [Thu, 2 Aug 2018 19:14:53 +0000 (15:14 -0400)]
try running tests with minimal-versions on CI

6 years agoAuto merge of #5889 - light4:patch-1, r=alexcrichton
bors [Tue, 14 Aug 2018 04:02:46 +0000 (04:02 +0000)]
Auto merge of #5889 - light4:patch-1, r=alexcrichton

Update transitioning url

6 years agoUpdate transitioning url
Light Ning [Tue, 14 Aug 2018 03:20:12 +0000 (11:20 +0800)]
Update transitioning url

6 years agoHandle opening browser with `opener` crate
Brian Bowman [Thu, 9 Aug 2018 04:37:56 +0000 (23:37 -0500)]
Handle opening browser with `opener` crate

Fixes #5701

6 years agoAuto merge of #5884 - dwijnand:some-clippings, r=alexcrichton
bors [Tue, 14 Aug 2018 01:01:04 +0000 (01:01 +0000)]
Auto merge of #5884 - dwijnand:some-clippings, r=alexcrichton

Resolve some clippy lint warnings

None

6 years agoAuto merge of #5887 - Seeker14491:job-fix, r=alexcrichton
bors [Tue, 14 Aug 2018 00:21:54 +0000 (00:21 +0000)]
Auto merge of #5887 - Seeker14491:job-fix, r=alexcrichton

 Don't kill child processes on normal exit on Windows

Fix for #5598

6 years agoRemove unused imports
Brian Bowman [Mon, 13 Aug 2018 21:47:40 +0000 (16:47 -0500)]
Remove unused imports

6 years agoMerge remote-tracking branch 'origin/master' into job-fix
Brian Bowman [Mon, 13 Aug 2018 21:05:53 +0000 (16:05 -0500)]
Merge remote-tracking branch 'origin/master' into job-fix

6 years agoDon't kill child processes on normal exit on Windows
Brian Bowman [Mon, 13 Aug 2018 20:47:20 +0000 (15:47 -0500)]
Don't kill child processes on normal exit on Windows

Fixes #5598

6 years agoFix typo
Brian Bowman [Mon, 13 Aug 2018 20:36:20 +0000 (15:36 -0500)]
Fix typo

6 years agoAdd test package::vcs_file_collision
David Kellum [Tue, 24 Jul 2018 21:53:30 +0000 (14:53 -0700)]
Add test package::vcs_file_collision

6 years agoAdd generated .cargo_vcs_info.json (git hash) file to `cargo package`
David Kellum [Mon, 23 Jul 2018 23:55:06 +0000 (16:55 -0700)]
Add generated .cargo_vcs_info.json (git hash) file to `cargo package`

6 years agoCollapse let bindings
Dale Wijnand [Mon, 13 Aug 2018 10:48:50 +0000 (11:48 +0100)]
Collapse let bindings

6 years agoResolve a drop_copy lint warning
Dale Wijnand [Mon, 13 Aug 2018 09:41:19 +0000 (10:41 +0100)]
Resolve a drop_copy lint warning

6 years agoResolve a identity_conversion lint warning
Dale Wijnand [Mon, 13 Aug 2018 09:40:53 +0000 (10:40 +0100)]
Resolve a identity_conversion lint warning

6 years agoResolve a single_match lint warning
Dale Wijnand [Mon, 13 Aug 2018 09:41:27 +0000 (10:41 +0100)]
Resolve a single_match lint warning

6 years agoResolve a const_static_lifetime lint warning
Dale Wijnand [Mon, 13 Aug 2018 09:41:10 +0000 (10:41 +0100)]
Resolve a const_static_lifetime lint warning