Commit Graph

7421 Commits

Author SHA1 Message Date
Jonathan Claudius 0c3851c017
HTTPS all the things 2019-01-30 15:34:37 -05:00
bors d75d1fbe6b Auto merge of #6603 - dwijnand:add-detail-to-multiple-rename-deps, r=alexcrichton
Add detail to multiple rename deps

Fixes #6601
2019-01-29 22:06:36 +00:00
bors 9f1f786c94 Auto merge of #6591 - hugwijst:fix-race-local-registry, r=alexcrichton
Fix race condition in local registry crate unpacking

Copy crate and keep exclusive lock to it with local registries. Ensures
that only one instance will try to extract the source of a new package.

Fixes #6588.
2019-01-29 00:14:52 +00:00
bors 2c4a411401 Auto merge of #6610 - alexcrichton:revert-incremental, r=Eh2406
Revert "Make incremental compilation the default for all profiles."

This reverts commit 2c408583ce.
2019-01-28 23:27:38 +00:00
bors d7001c8397 Auto merge of #6606 - dwijnand:unlie-crate-type, r=ehuss
Fixup the docs on crate-type

Fixes #4809
2019-01-28 22:53:54 +00:00
Dale Wijnand 53a0995b4b
Add detail to multiple rename deps 2019-01-28 16:03:30 +00:00
Alex Crichton b9da4d7b1c Revert "Make incremental compilation the default for all profiles."
This reverts commit 2c408583ce.
2019-01-28 07:24:41 -08:00
Dale Wijnand 62c6de381a
Fixup the docs on crate-type 2019-01-28 06:55:53 +00:00
Hugo van der Wijst a23612dffd First try opening the package source lock read-only. 2019-01-27 19:47:28 -08:00
bors a25acdb3af Auto merge of #6604 - dwijnand:owner-add-invites, r=ehuss
Document that owner --add now just invites

Fixes #4599
2019-01-27 23:00:45 +00:00
Dale Wijnand 5970385ce2
Document that owner --add now just invites 2019-01-27 18:01:41 +00:00
bors 2458180760 Auto merge of #6602 - k-nasa:fix_fmt, r=dwijnand
$cargo fmt --all

It is just PR using the rustfmt command.

I have nothing to do with this PR, but do not you introduce format checks by clippy or rustfmt into CI?
2019-01-27 15:17:26 +00:00
nasa db09895f3c $cargo fmt --all 2019-01-27 22:39:49 +09:00
bors e86afe2efa Auto merge of #6600 - ehuss:atomic-deprecated, r=dwijnand
Remove deprecated ATOMIC initializers.

Required for rust-lang/rust#57765.

cc @Mark-Simulacrum
2019-01-27 07:49:12 +00:00
Eric Huss 490b1ce3c3 Remove deprecated ATOMIC initializers.
Required for updating to 1.34.
2019-01-26 20:28:48 -08:00
bors 1b716f6816 Auto merge of #6599 - Eh2406:more-tests, r=dwijnand
Tweeks to proptests

This is some small tweaks to the prop test configuration and adds an additional test.

Most of the diff is whitespace.
2019-01-25 21:23:58 +00:00
Eh2406 d9e63604f3 additional cases are added by more tests, so dont need the note 2019-01-25 12:07:41 -05:00
Hugo van der Wijst 1f87b6d35d Lock unpacking instead of local registry tarball. 2019-01-24 21:15:59 -08:00
Eh2406 0538507593 add an additional fuzz test 2019-01-24 17:41:47 -05:00
Eh2406 8d13988dbf gen reverse alphabetical graphs 2019-01-24 15:56:19 -05:00
bors e1851113a0 Auto merge of #6596 - Eh2406:slow-cpu-test, r=dwijnand+alexcrichton
Some CI setups are much slower then the equipment used by Cargo itself

This adds a "CARGO_TEST_SLOW_CPU_MULTIPLIER" that increases all the time outs used in the tests, and disables Proptest shrinking on non tty cases.

Closes: #6491
CC: #6490, @infinity0
2019-01-24 19:10:11 +00:00
Eh2406 7332f67287 remove a lazy_static 2019-01-24 13:37:24 -05:00
Eh2406 c0943ce747 oops 2019-01-24 13:06:43 -05:00
Eh2406 1c1383c763 Don't shrink if not tty 2019-01-24 12:34:43 -05:00
Eh2406 4be99b2e8d Some CI setups are much slower then the equipment used by Cargo itself 2019-01-24 12:28:21 -05:00
bors d5109ad984 Auto merge of #6564 - michaelwoerister:default_incremental_everywhere, r=alexcrichton
Make incremental compilation the default for all profiles.

This PR makes incremental compilation the default for all profiles, that is, also `release` and `bench`. `rustc` performs ThinLTO by default for incremental release builds for a while now and the [data we've gathered so far](https://github.com/rust-lang/rust/pull/56678) indicates that the generated binaries exhibit roughly the same runtime performance as non-incrementally compiled ones. At the same time, incremental release builds can be 2-5 times as fast as non-incremental ones.

Making incremental compilation (temporarily) the default in `cargo` would be a simple way of gathering more data about runtime performance via [lolbench.rs](https://lolbench.rs). If the results look acceptable, we can just leave it on and give a massive compile time reduction to everyone. If not, we can revert the change and think about a plan B.

This strategy assumes that lolbench will actually use the nightly `cargo` version. Is that true, @anp?

r? @alexcrichton
2019-01-24 16:55:06 +00:00
bors eb96a36fe0 Auto merge of #6593 - k-nasa:refactor_clippy, r=dwijnand
into_iter() call is equivalent to .iter() and will not move the slice
2019-01-23 14:47:20 +00:00
nasa 8284e0ef34 refactor: .into_iter() call is equivalent to .iter() and will not move the slice 2019-01-23 22:48:23 +09:00
Hugo van der Wijst 5cd68f87fe Fix race condition in local registry crate downloading.
Copy crate and keep exclusive lock to it with local registries. Ensures
that only one instance will try to extract the source of a new package.

Fixes #6588.
2019-01-22 21:50:27 -08:00
bors 56cbbec210 Auto merge of #6587 - alexcrichton:bump, r=ehuss
Bump to 0.35.0

A routine update!
2019-01-22 21:43:53 +00:00
Alex Crichton 78637a6bb8 Bump to 0.35.0
A routine update!
2019-01-22 13:18:16 -08:00
bors b05cd86768 Auto merge of #6581 - dwijnand:private-publish-docs, r=ehuss
Mention "private" in publish field docs

Fixes #6576
2019-01-22 18:39:06 +00:00
bors 3de188f139 Auto merge of #6548 - dwijnand:mark-lockfile-as-generated, r=alexcrichton
Marking Cargo.lock as generated

12 weeks have passed, let's mark lock files as generated!

Fixes #6180
2019-01-22 18:10:02 +00:00
bors 3e59f036d8 Auto merge of #6565 - SamWhited:add_srht_ci_config, r=alexcrichton
Add builds.sr.ht CI config to book

This adds a CI configuration for [builds.sr.ht](https://builds.sr.ht) to the book alongside the existing configurations for Travis and GitLab CI.
The config in question is broadly similar to those two, except that I also opted to build the docs as I commonly find markdown oddities this way from the warnings it spits out.
I picked Arch Linux as the base image because it's easy to install rustup there (since there's a package for it in the Arch repos), but it could have been Debian or FreeBSD or something else just as easily if you have strong opinions about manually installing rustup.

**EDIT:** None of the other build configs had it, so I didn't add publishing tagged commits to crates.io using its secrets mechanism to log cargo in. However, if that's something you think would be beneficial, I can add it.
2019-01-22 17:02:49 +00:00
Dale Wijnand 467f878f08
Mention "private" in publish field docs 2019-01-22 10:16:43 +01:00
bors edcc37e6c4 Auto merge of #6578 - nanpuyue:patch-1, r=ehuss
fix an error completion of `cargo run --example`
2019-01-22 04:05:36 +00:00
南浦月 3b5b574dc3 fix an error completion of `cargo run --example` 2019-01-22 11:41:52 +08:00
bors 907c0febe7 Auto merge of #6573 - ehuss:mtime-on-use-feature, r=dwijnand
Put mtime-on-use behind a feature flag.

This places #6477 behind the `-Z mtime-on-use` feature flag.

The change to update the mtime each time a crate is used has caused a performance regression on the rust playground (rust-lang/rust#57774). It is using about 241 pre-built crates in a Docker container. Due to the copy-on-write nature of Docker, it can take a significant amount of time to update the timestamps (over 10 seconds on slower systems).

cc @Mark-Simulacrum
2019-01-20 22:31:07 +00:00
Eric Huss 5f6ede2936 Put mtime-on-use behind a feature flag. 2019-01-20 14:23:16 -08:00
bors 102f7473b9 Auto merge of #6569 - dwijnand:fix-unstable-doc-typo, r=ehuss
Fix a typo in the unstable docs

None
2019-01-20 20:21:34 +00:00
Dale Wijnand 323cf9d91e
Fix a typo in the unstable docs 2019-01-20 16:05:57 +00:00
bors 6d5cd59cf0 Auto merge of #6550 - In-line:did-you-mean-with-question-mark, r=dwijnand
Perhaps you meant: foo, bar or foobar

Hi! Rust project is very cool, but I noticed some minor issues. In every place `did you mean: bla bla` end with the question mark, so I decided to include it here too.
2019-01-20 07:34:22 +00:00
Alik Aslanyan 67dbfe536d Perhaps you meant: bar, foo or foobar 2019-01-19 17:33:51 +04:00
Dale Wijnand bd0e4a0847
Marking Cargo.lock as generated 2019-01-19 09:06:01 +00:00
bors 2a15e57b1c Auto merge of #6557 - k-nasa:move_uninstall, r=dwijnand
Refactor: Create uninstall submodule

Since 'uninstall' was found in the 'install' module, it split.
And I moved duplicate functions to utils.
2019-01-19 08:36:35 +00:00
nasa 6a197fb302 refactor: Rename ops :: utils module
Changed to common_for_install_and_uninstall
2019-01-19 09:43:10 +09:00
nasa 5dabf4797d fix: Replace the reference to v1 with a method 2019-01-19 09:22:09 +09:00
nasa 2a350a32a6 feat: Add a method to get mutable access of v1 field 2019-01-19 09:20:09 +09:00
nasa 3673016f99 feat: Add v1 field getter 2019-01-19 09:17:23 +09:00
nasa 1b71fa3efc fix: Make v1 field private 2019-01-19 09:16:22 +09:00