Vasudev Kamath [Sun, 29 Oct 2017 14:55:28 +0000 (20:25 +0530)]
Typo fix in copyright s/magneta/magenta/
Vasudev Kamath [Sun, 29 Oct 2017 14:20:13 +0000 (19:50 +0530)]
Fix typo in search subcommand and related tests.
Vasudev Kamath [Sun, 29 Oct 2017 13:49:44 +0000 (19:19 +0530)]
Revert "Fix one more typo in cargo search command."
This reverts commit
a7347f1f539654d9f89910f26a51b9f7f8e08ef1.
Vasudev Kamath [Sat, 28 Oct 2017 05:16:37 +0000 (10:46 +0530)]
Fix one more typo in cargo search command.
Vasudev Kamath [Sat, 28 Oct 2017 04:58:11 +0000 (10:28 +0530)]
Add new vendor crate copyright information.
Vasudev Kamath [Fri, 27 Oct 2017 17:12:12 +0000 (22:42 +0530)]
Make cargo priority optional from extra
Priority extra is deprecated from Debian policy 4.0.1.
Vasudev Kamath [Thu, 26 Oct 2017 17:02:20 +0000 (22:32 +0530)]
Update changelog.
Vasudev Kamath [Thu, 26 Oct 2017 16:44:22 +0000 (22:14 +0530)]
Mark package compliance with Debian policy 4.1.1
Vasudev Kamath [Thu, 26 Oct 2017 16:43:18 +0000 (22:13 +0530)]
Refresh patch 1001, 2002 and 2004 with new upstream.
Vasudev Kamath [Thu, 26 Oct 2017 16:30:38 +0000 (22:00 +0530)]
Updated version 0.22.0 from 'upstream/0.22.0'
with Debian dir
df35b36f6b40533c109b20cab36a943be981109f
Vasudev Kamath [Thu, 26 Oct 2017 16:29:03 +0000 (21:59 +0530)]
New upstream version 0.22.0
Vasudev Kamath [Thu, 26 Oct 2017 16:17:25 +0000 (21:47 +0530)]
Add conv crate file to unsuspicious files.
Vasudev Kamath [Thu, 26 Oct 2017 16:02:14 +0000 (21:32 +0530)]
Merge branch 'debian/sid' into debian/experimental
Ximin Luo [Wed, 25 Oct 2017 21:30:57 +0000 (23:30 +0200)]
Release 0.21.1-2 to Debian unstable.
bors [Fri, 6 Oct 2017 07:38:28 +0000 (07:38 +0000)]
Auto merge of #4584 - alexcrichton:beta-next, r=matklad
[beta] Fix [patch] causing updates with a virtual manifest
This is a backport of https://github.com/rust-lang/cargo/pull/4583
Alex Crichton [Thu, 5 Oct 2017 22:11:25 +0000 (15:11 -0700)]
Fix [patch] causing updates with a virtual manifest
This commit fixes the [patch] implementation to avoid causing spurious updates
of the registry when specified inside of a virtual manifest via a path
dependency that was otherwise outside of the workspace.
Cargo previously attempted to learn about path dependencies through the
configuration of the workspace by looking at members, their path dependencies,
and their replace sections. The replace/patch sections, however, only matter at
the root of the workspace and those weren't looked at! This commit fixes this
problem by explicitly looking at the workspace's replace/patch sections and
avoiding looking at other manifest replace/patch which shouldn't matter.
Closes #4552
bors [Tue, 3 Oct 2017 20:13:17 +0000 (20:13 +0000)]
Auto merge of #4572 - integer32llc:rust-1.21.0, r=alexcrichton
Backport of #4551 - owner-invite-messages
And *just* this change this time, I think :)
r? @alexcrichton
Alex Crichton [Mon, 28 Aug 2017 15:03:42 +0000 (08:03 -0700)]
Fix tests on nightly
bors [Sat, 30 Sep 2017 07:37:59 +0000 (07:37 +0000)]
Auto merge of #4551 - natboehm:owner-invite-messages, r=alexcrichton
Owner invite messages
This PR addresses issue #4537, the plan for `cargo owner --add` requiring invitations in Cargo and the encompassing issue [#924](https://github.com/rust-lang/crates.io/issues/924), requiring an invite to add someone as an owner in Crates.io.
Regarding the Cargo issue, we went with Option 2, changing the `add_owners` function to decode a struct sent from Crates containing a `boolean` and `String`, the `boolean` being the response status and `String` being the success message. This may sound redundant however we concluded that using both of these fields were necessary to support older versions of Cargo - if we changed Crates.io to only return the `String` message on success this would likely break systems using the older version of `add_owner` expecting a response containing a `boolean`. Matching this schema, `add_owners` on the Crates.io side will soon return a struct containing a `boolean` and `String`, and instead of adding a new crate owner to the database will add a crate owner invite. If successful, `modify_owners` now prints the message sent from Crates.io instead of the old hardcoded message.
Resolves #4537
Vasudev Kamath [Sat, 23 Sep 2017 14:05:30 +0000 (19:35 +0530)]
Put upstream PR url for patch 1001.
Vasudev Kamath [Sat, 23 Sep 2017 06:16:25 +0000 (11:46 +0530)]
Prepare 0.21.1 for experimental.
Vasudev Kamath [Sat, 23 Sep 2017 05:09:43 +0000 (10:39 +0530)]
Rename clean-cargo-deps.patch to follow patch naming guidelines
Adjust make_orig_multi.sh to use new patch name.
Vasudev Kamath [Sat, 23 Sep 2017 04:50:34 +0000 (10:20 +0530)]
Fix DEP-3 headers for patch 2003.
Vasudev Kamath [Sat, 23 Sep 2017 04:48:17 +0000 (10:18 +0530)]
Add patch to fix spelling errors in cargo.
Vasudev Kamath [Sat, 23 Sep 2017 04:47:49 +0000 (10:17 +0530)]
Rename patches to follow naming guidelines in patches/README file.
Vasudev Kamath [Sat, 23 Sep 2017 02:49:39 +0000 (08:19 +0530)]
Mark package as compliant with Debian Policy 4.1.0
Vasudev Kamath [Sat, 23 Sep 2017 02:48:12 +0000 (08:18 +0530)]
Add wildcard for ARCHITECTURE.md file.
Vasudev Kamath [Fri, 22 Sep 2017 17:31:44 +0000 (23:01 +0530)]
Drop duplicates from Files section
Vasudev Kamath [Fri, 22 Sep 2017 16:44:48 +0000 (22:14 +0530)]
Add missing copyright information to copyright file.
Warnings were mostly reported by lintian after new version was built.
Vasudev Kamath [Thu, 21 Sep 2017 16:13:34 +0000 (21:43 +0530)]
Drop unreferenced wild cards from copyright file.
Vasudev Kamath [Thu, 21 Sep 2017 16:11:22 +0000 (21:41 +0530)]
Update changelog (import 0.21.1).
Vasudev Kamath [Mon, 18 Sep 2017 15:48:18 +0000 (21:18 +0530)]
Updated version 0.21.1 from 'upstream/0.21.1'
with Debian dir
11909be72f2dce9c35dfe09d07ff634ee4ed0bb2
Vasudev Kamath [Mon, 18 Sep 2017 15:47:02 +0000 (21:17 +0530)]
New upstream version 0.21.1
Vasudev Kamath [Mon, 18 Sep 2017 15:35:02 +0000 (21:05 +0530)]
Ignore sublime workspace file from hex crate.
Vasudev Kamath [Mon, 18 Sep 2017 15:34:23 +0000 (21:04 +0530)]
Mark tables.rs from unicode-normalization as unsuspicious.
This file was regenerated by upstream during recent release of crate.
Vasudev Kamath [Sun, 17 Sep 2017 16:02:27 +0000 (21:32 +0530)]
Update changelog.
Vasudev Kamath [Sun, 17 Sep 2017 16:00:53 +0000 (21:30 +0530)]
Add myself as uploader for cargo package.
Ximin Luo [Thu, 14 Sep 2017 13:49:10 +0000 (15:49 +0200)]
Release 0.20.0-2 to Debian unstable.
Ximin Luo [Thu, 14 Sep 2017 11:35:21 +0000 (13:35 +0200)]
Work around #865549, fixes FTBFS on ppc64el
Ximin Luo [Thu, 14 Sep 2017 10:47:39 +0000 (12:47 +0200)]
guess-crate-copyright: clone quietly for easier copy-paste of output
Alex Crichton [Sun, 10 Sep 2017 16:38:56 +0000 (09:38 -0700)]
Bump to 0.21.1
Alex Crichton [Sun, 10 Sep 2017 16:38:29 +0000 (09:38 -0700)]
Update error-chain to 0.11.0
bors [Sun, 27 Aug 2017 07:41:33 +0000 (07:41 +0000)]
Auto merge of #4439 - ishitatsuyuki:bench-cleanup, r=matklad
Gate extern crates for bench tests
I tried my best to skim through the `extern crate` statements, and I hope this will unblock the unused extern crates PR.
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:31:16 +0000 (16:31 +0900)]
Fix remaining test failures
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:14:15 +0000 (16:14 +0900)]
tests/cfg: allow unused extern crates
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:10:54 +0000 (16:10 +0900)]
tests/build-script: allow unused extern crates
Tatsuyuki Ishi [Sun, 27 Aug 2017 05:57:22 +0000 (14:57 +0900)]
Gate feature for bench tests
Tatsuyuki Ishi [Sun, 27 Aug 2017 05:30:13 +0000 (14:30 +0900)]
Gate extern crates for bench tests
bors [Sat, 26 Aug 2017 17:57:40 +0000 (17:57 +0000)]
Auto merge of #4358 - Mark-Simulacrum:fix-cfg-cargo, r=alexcrichton
Discover crate type information late if necessary.
Some crates aren't found during eager crate-type searching due to being behind `cfg(...)` flags. We still want to be able to handle these, though, so when necessary we now call rustc again to get crate-type information for these cfg-ed crates.
This is necessary for https://github.com/rust-lang/rust/pull/41991.
r? @alexcrichton
bors [Sat, 26 Aug 2017 15:18:46 +0000 (15:18 +0000)]
Auto merge of #4437 - ishitatsuyuki:deps-purge, r=matklad
Purge deps, round 2
Sorry for creating so much iterations, I have no local build of the new compiler :)
Mark Simulacrum [Mon, 21 Aug 2017 11:46:31 +0000 (05:46 -0600)]
Discover crate type information late if necessary.
Some crates aren't found during eager crate-type searching due to being
behind `cfg(...)` flags. We still want to be able to handle these,
though, so when necessary we now call rustc again to get crate-type
information for these cfg-ed crates.
Tatsuyuki Ishi [Sat, 26 Aug 2017 14:36:13 +0000 (23:36 +0900)]
Purge deps, round 2
bors [Sat, 26 Aug 2017 10:01:15 +0000 (10:01 +0000)]
Auto merge of #4435 - ishitatsuyuki:deps-purge, r=matklad
Purge unused extern crates
Tatsuyuki Ishi [Sat, 26 Aug 2017 09:59:51 +0000 (18:59 +0900)]
Purge unused extern crates
bors [Fri, 25 Aug 2017 16:02:02 +0000 (16:02 +0000)]
Auto merge of #4433 - alexcrichton:unstable-features, r=matklad
Add infrastructure for nightly features and flags
This PR starts adding infrastructure in Cargo for nightly features and nightly flags. The current design looks like:
* There's a new `package.cargo-features` manifest key which accepts an array of strings. This array of strings is the list of enabled Cargo features for that crate.
* A new suite of flags behind `-Z`, like the compiler, are accepted on the command line for all commands.
* Features and unstable flags in Cargo are required to be used on Cargo's nightly channel, which is the same as Rust's nightly channel.
* Features and unstable flags cannot be used on the stable/beta channels of Rust/Cargo.
* Crates which enable features in their manifest are disallowed from being published to crates.io
The motivation behind this support is unblock a number of efforts in Cargo by allowing them to safely get implemented behind a nightly feature gate. Once behind a feature gate they can iterate in-tree without having to worry about "insta stability" and we can also get valuable usage feedback about upstream users.
Closes https://github.com/rust-lang/cargo/issues/4409
Alex Crichton [Thu, 24 Aug 2017 22:04:46 +0000 (15:04 -0700)]
Add infrastructure for nightly Cargo flags
Ximin Luo [Thu, 24 Aug 2017 23:41:21 +0000 (01:41 +0200)]
Empty commit to note that this was actually released to Debian unstable.
Alex Crichton [Thu, 24 Aug 2017 19:54:57 +0000 (12:54 -0700)]
Add support for nightly features in Cargo
Ximin Luo [Thu, 24 Aug 2017 17:13:02 +0000 (19:13 +0200)]
Release 0.20.0-1 to Debian experimental.
Ximin Luo [Thu, 24 Aug 2017 17:12:36 +0000 (19:12 +0200)]
python3-minimal => python3, otherwise lintian complains
Ximin Luo [Thu, 24 Aug 2017 16:54:20 +0000 (18:54 +0200)]
Update d/changelog
Ximin Luo [Thu, 24 Aug 2017 16:47:25 +0000 (18:47 +0200)]
Update TODO.Debian
Ximin Luo [Thu, 24 Aug 2017 16:44:57 +0000 (18:44 +0200)]
Fix some more lintian warnings
- Update d/copyright for generated unicode-based files
- Add Suggests for the python scripts
- Add note about -C prefer-dynamic
Ximin Luo [Thu, 24 Aug 2017 15:55:57 +0000 (17:55 +0200)]
Try prefer-dynamic
Ximin Luo [Thu, 24 Aug 2017 15:55:36 +0000 (17:55 +0200)]
Build the docs
Ximin Luo [Thu, 24 Aug 2017 15:46:47 +0000 (17:46 +0200)]
Update d/copyright
Ximin Luo [Thu, 24 Aug 2017 15:29:23 +0000 (17:29 +0200)]
Cargo uses --verbose not VERBOSE
Ximin Luo [Thu, 24 Aug 2017 15:29:14 +0000 (17:29 +0200)]
guess-crate-copyright: use "MIT" instead of "Expat" or "MIT-License"
Debian prefers "Expat" to "MIT" but we'll match debcargo(1) and the Rust ecosystem here
Ximin Luo [Thu, 24 Aug 2017 15:21:38 +0000 (17:21 +0200)]
Update d/copyright
Ximin Luo [Thu, 24 Aug 2017 15:08:14 +0000 (17:08 +0200)]
Don't clean Cargo.toml.orig files
Ximin Luo [Thu, 24 Aug 2017 15:06:42 +0000 (17:06 +0200)]
Update TODO
Ximin Luo [Thu, 24 Aug 2017 15:02:05 +0000 (17:02 +0200)]
Updated version 0.20.0 from 'upstream/0.20.0'
with Debian dir
c6acf78a710e8dc48d95c960778c203b5fc3276d
Ximin Luo [Thu, 24 Aug 2017 15:01:54 +0000 (17:01 +0200)]
New upstream version 0.20.0
Ximin Luo [Thu, 24 Aug 2017 14:52:49 +0000 (16:52 +0200)]
Make prune-checksums deterministic
Ximin Luo [Thu, 24 Aug 2017 14:27:51 +0000 (16:27 +0200)]
Exclude the *.a files because we can't build them right now
bors [Thu, 24 Aug 2017 13:56:50 +0000 (13:56 +0000)]
Auto merge of #4431 - vignesh-sankaran:maintenance-badge-docs, r=alexcrichton
Add maintenance badge docs
Pending merging of [this PR for crates.io](https://github.com/rust-lang/crates.io/pull/952). This should close off [#704 on crates.io](https://github.com/rust-lang/crates.io/issues/704). I've also updated the badge metadata docs and reordered the fields into groups by build, code coverage, and maintenance.
So I've decided to put the list of possible badge options in the documentation, we'll have to find another place to put more detailed descriptions of the available maintenance badges.
Vignesh [Thu, 24 Aug 2017 05:33:52 +0000 (15:33 +1000)]
Added maintenance badge and reordered badge metadata fields
bors [Thu, 24 Aug 2017 09:39:40 +0000 (09:39 +0000)]
Auto merge of #4432 - potocpav:patch-1, r=matklad
Correct a paragraph
The previous formulation was incorrect in the descriptions of the `x` and `y` version numbers.
Pavel Potocek [Thu, 24 Aug 2017 09:22:09 +0000 (11:22 +0200)]
Correct an inaccuracy
bors [Thu, 24 Aug 2017 09:01:00 +0000 (09:01 +0000)]
Auto merge of #4429 - ishitatsuyuki:test-purge, r=matklad
cargotest: purge deps
Blocking rust-lang/rust#42588.
Pavel Potocek [Thu, 24 Aug 2017 08:52:12 +0000 (10:52 +0200)]
Correct and reword a paragraph
The previous formulation was incorrect in the descriptions of the `x` and `y` version numbers.
Tatsuyuki Ishi [Thu, 24 Aug 2017 03:56:47 +0000 (12:56 +0900)]
cargotest: purge deps
bors [Tue, 22 Aug 2017 15:26:56 +0000 (15:26 +0000)]
Auto merge of #4424 - Xanewok:process-builder-api, r=alexcrichton
Add `fn args_replace` and `fn get_program` to `ProcessBuilder`
`Executor::exec()` provides a `ProcessBuilder` argument representing compiler call and if someone wants to use it or modify it for their own purposes, they have to (partially) recreate it themselves.
This:
* makes the argument modification possible (via `args_replace`, analogous to `env_remove`)
* exposes the program that will be run (via `get_program`, in case `rustc` is overriden via wrapper etc.).
r? @alexcrichton
Igor Matuszewski [Tue, 22 Aug 2017 15:13:00 +0000 (17:13 +0200)]
Add `fn args_replace` and `fn get_program` to `ProcessBuilder`
bors [Sun, 20 Aug 2017 18:35:22 +0000 (18:35 +0000)]
Auto merge of #4416 - Xanewok:more-executor-params, r=alexcrichton
Expose `Target` and `Unit` params to appropriate `Executor` callbacks
This effectively does only two things:
* Pass existing `&Unit` to `init()`
* Pass existing `&Target` to `exec()`s
Also updated doc comments slightly.
The `init()` is called for every `Work` preparation by `rustc()` and since it's not called once (not sure if intended?), it'd be good to include more information for which `Unit` the `rustc` process invocation has been initially prepared (I think more importantly it shows that `init()` is called many times for many targets).
Additionally, it'd be good to know about `Unit` compiled in the `exec()` callbacks in more structured manner (so the user doesn't have to parse the `ProcessBuilder` arguments and/or make certain assumptions) and since `target` was already cloned and moved into the closure, it was only a matter of exposing it.
I think it'd be ideal to provide all the necessary information to recreate a `Unit` but with a static lifetime needed for the closure, however this would mean cloning more data per-target ([`Kind`](https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/cargo_rustc/mod.rs#L41) should be basically free, however not sure if cloning [`Profile`](https://github.com/rust-lang/cargo/blob/master/src/cargo/core/manifest.rs#L151) is acceptable). With this, `Executor` users could query `Context` more easily (e.g. to get a unit dep graph! :smile:), as the API accepts `Unit`s in many places.
r? @alexcrichton
cc @nrc
EDIT:
This changes the public API, not sure if there's something else I should do about it, only ran `cargo test` locally.
bors [Sun, 20 Aug 2017 12:57:50 +0000 (12:57 +0000)]
Auto merge of #4364 - RalfJung:feat, r=alexcrichton
Required dependencies are not features
Also, while I was at it, I fixed an error message which complained about something not being an optional dependency, when really what mattered was that it was not a dependency at all.
I made a bunch of guesses about how things work. These guesses ended up as comments in the commit (so hopefully, the next reader of these files has to guess less). I am not totally certain these comments are all correct, so please yell if not. :)
In particular, for resolve_features, I observed that dependencies get compiled even when they are not returned from that function. But judging from how the function used to behave, it actually returns all dependencies, even those that have nothing to do with any features. (Making the name rather misleading, TBH...)
Fixes #4363
Igor Matuszewski [Sat, 19 Aug 2017 20:47:19 +0000 (22:47 +0200)]
Expose `Target` and `Unit` params to appropriate `Executor` callbacks
Ralf Jung [Fri, 18 Aug 2017 18:10:34 +0000 (20:10 +0200)]
fix borrowing the shell twice
Ralf Jung [Fri, 18 Aug 2017 17:37:12 +0000 (19:37 +0200)]
Using required dep as a feature is a warning for now, not an error
bors [Thu, 17 Aug 2017 23:09:50 +0000 (23:09 +0000)]
Auto merge of #4400 - behnam:pr4157, r=alexcrichton
[check|build|rustc] Add --all-targets option
`cargo check` does not check all targets by default, and to check all,
you need to call it `cargo check --tests --examples --bins --benches`.
Here, we implement `--all-targets` For `check`, `build`, and `rustc`.
For consitency, `--all-targets` is also added to other commands like
`test` although "all targets" is the default behavior.
This is a rebase of <https://github.com/rust-lang/cargo/pull/4157>
Ralf Jung [Sat, 5 Aug 2017 04:27:26 +0000 (21:27 -0700)]
improve misleading error message
Ralf Jung [Sat, 5 Aug 2017 04:21:09 +0000 (21:21 -0700)]
detect required dependencies used as features
Ralf Jung [Sat, 5 Aug 2017 03:21:38 +0000 (20:21 -0700)]
test for mandatory dependencies not to be considered features
bors [Mon, 14 Aug 2017 23:23:05 +0000 (23:23 +0000)]
Auto merge of #4404 - parkovski:master, r=alexcrichton
Fix #4370 - init panic in C:\ or /
This fixes the crash in this issue, but the error message is strange - unable to create directory 'C:\\.'. I don't have write permissions there without becoming admin, so I suspect it's just a permission issue, but the weird error can be fixed by calling Path::canonicalize on line 300.
Parker Snell [Mon, 14 Aug 2017 18:02:07 +0000 (11:02 -0700)]
Fix #4370 - init panic in C:\ or /
bors [Sun, 13 Aug 2017 12:40:53 +0000 (12:40 +0000)]
Auto merge of #4402 - bluss:doc-rustdocflags, r=alexcrichton
Document `RUSTDOCFLAGS`
Documentation for this environment variable was missing. It's supported in stable releases of Rust already.
bluss [Sun, 13 Aug 2017 12:27:27 +0000 (14:27 +0200)]
Document `RUSTDOCFLAGS`
bors [Sat, 12 Aug 2017 23:13:14 +0000 (23:13 +0000)]
Auto merge of #4401 - alexcrichton:beta-next, r=alexcrichton
[beta] Allow to skip test code during publishing
Backport of https://github.com/rust-lang/cargo/pull/4389
Alex Crichton [Sat, 12 Aug 2017 23:12:56 +0000 (16:12 -0700)]
Remove another unused mut
Guillaume Gomez [Fri, 28 Jul 2017 19:37:08 +0000 (21:37 +0200)]
Update error-chain dep for crates-io as well