Vasudev Kamath [Sat, 28 Jul 2018 17:37:20 +0000 (23:07 +0530)]
Update changelog
Vasudev Kamath [Sat, 28 Jul 2018 17:36:50 +0000 (23:06 +0530)]
Update copyright for new release.
Vasudev Kamath [Sat, 28 Jul 2018 16:57:08 +0000 (22:27 +0530)]
Refresh patch 2007 for new release.
Vasudev Kamath [Sat, 28 Jul 2018 16:56:41 +0000 (22:26 +0530)]
Add patch to use libssh2 from system
Vasudev Kamath [Sat, 28 Jul 2018 14:58:53 +0000 (20:28 +0530)]
Update patch 2001 for new libgit2-sys version.
Vasudev Kamath [Sat, 28 Jul 2018 14:45:20 +0000 (20:15 +0530)]
Drop patch 2008, merged upstream.
Ximin Luo [Fri, 27 Jul 2018 12:45:10 +0000 (05:45 -0700)]
More standard changelog formatting
Ximin Luo [Fri, 27 Jul 2018 12:44:41 +0000 (05:44 -0700)]
Fix python3 build-dep for cross-compile, multi-arch:allowed needs :native annotation here
Ximin Luo [Fri, 27 Jul 2018 12:44:34 +0000 (05:44 -0700)]
Merge branch 'debian/sid' into debian/experimental
Sylvestre Ledru [Mon, 23 Jul 2018 11:20:04 +0000 (13:20 +0200)]
Update of the alioth ML address.
Vasudev Kamath [Sun, 22 Jul 2018 16:44:58 +0000 (22:14 +0530)]
Update changelog (not ready for release).
Vasudev Kamath [Sun, 22 Jul 2018 16:38:12 +0000 (22:08 +0530)]
Update upstream source from tag 'upstream/0.28.0'
Update to upstream version '0.28.0'
with Debian dir
1abcf632df0eae855f6df6f9e110cb16fc624d00
Vasudev Kamath [Sun, 22 Jul 2018 16:37:14 +0000 (22:07 +0530)]
New upstream version 0.28.0
Vasudev Kamath [Sun, 22 Jul 2018 15:30:50 +0000 (21:00 +0530)]
Update for new release.
Vasudev Kamath [Sat, 9 Jun 2018 09:11:23 +0000 (14:41 +0530)]
Update README.source to mention preferred way of upload.
Ximin Luo [Thu, 7 Jun 2018 05:35:33 +0000 (22:35 -0700)]
Release 0.27.0-2 to Debian unstable.
Ximin Luo [Thu, 7 Jun 2018 05:34:56 +0000 (22:34 -0700)]
Support cross-compile install
Ximin Luo [Thu, 7 Jun 2018 04:42:39 +0000 (21:42 -0700)]
Add link to bug on cross-linker auto-detection
Vasudev Kamath [Sun, 3 Jun 2018 15:16:22 +0000 (20:46 +0530)]
Upload to unstable.
Vasudev Kamath [Sat, 2 Jun 2018 09:46:35 +0000 (15:16 +0530)]
Prepare upload for experimental.
Vasudev Kamath [Sat, 2 Jun 2018 09:39:46 +0000 (15:09 +0530)]
Update copyright with new vendor crate info
bors [Sun, 27 May 2018 16:26:02 +0000 (16:26 +0000)]
Auto merge of #5577 - matklad:revert-deps-beta, r=alexcrichton
Revert "Auto merge of #5461 - matklad:meta-rename, r=alexcrichton"
This reverts commit
d0d3cb5ac963eb8c3f83d079b6a547992cac2cc4, reversing
changes made to
757112c39f8a5a4f6ffa0b7e29d23a56f03fb931.
It is not clear that the design is right, see
https://github.com/rust-lang/cargo/pull/5558#issuecomment-
391791164
this is the backport sibling of https://github.com/rust-lang/cargo/pull/5576
Aleksey Kladov [Sun, 27 May 2018 08:56:44 +0000 (11:56 +0300)]
Revert "Auto merge of #5461 - matklad:meta-rename, r=alexcrichton"
This reverts commit
d0d3cb5ac963eb8c3f83d079b6a547992cac2cc4, reversing
changes made to
757112c39f8a5a4f6ffa0b7e29d23a56f03fb931.
It is not clear that the design is right, see
https://github.com/rust-lang/cargo/pull/5558#issuecomment-
391791164
bors [Fri, 25 May 2018 01:05:31 +0000 (01:05 +0000)]
Auto merge of #5567 - alexcrichton:beta-next, r=alexcrichton
[beta] Copy `--all-features` request to all workspace members
Backport of https://github.com/rust-lang/cargo/pull/5556
Alex Crichton [Fri, 25 May 2018 01:05:12 +0000 (18:05 -0700)]
Fix tests on nightly
Alex Crichton [Mon, 21 May 2018 19:57:25 +0000 (12:57 -0700)]
Copy `--all-features` request to all workspace members
This fixes an accidental regression introduced in #5012 where the
`--all-features` CLI flag was only propagated to the "main crate" as opposed to
all workspace packages. This behavior has [already been deemed][pr] as
"basically not what you want", but for now it's best to avoid the regression.
Closes #5518
[pr]: https://github.com/rust-lang/cargo/pull/5353
Vasudev Kamath [Sat, 19 May 2018 13:39:17 +0000 (19:09 +0530)]
Update changelog.
Vasudev Kamath [Sat, 19 May 2018 13:38:08 +0000 (19:08 +0530)]
Just commenting out tests won't work drop all unused imports
caused by #[deny(warnings)] directive
Vasudev Kamath [Sun, 13 May 2018 15:32:44 +0000 (21:02 +0530)]
Not just comment out #[test] but entire test
Looks like new cargo will cause build failure on unused code.
Alex Crichton [Fri, 11 May 2018 15:04:10 +0000 (08:04 -0700)]
Fix mode generated in `maybe_lib`
The new `mode` for the library dependency is dependent on the library target
rather than the target which is the reason for the dependency on the library!
Closes rust-lang/rust#50640
Eric Huss [Wed, 9 May 2018 00:23:28 +0000 (17:23 -0700)]
Fix `cargo rustc` for test with implicit binary.
Fixes #5502
Vasudev Kamath [Sat, 12 May 2018 17:25:52 +0000 (22:55 +0530)]
Refresh patch 2007
Vasudev Kamath [Sat, 12 May 2018 17:24:00 +0000 (22:54 +0530)]
Drop patch 1001 as its now part of upstream.
Vasudev Kamath [Sat, 12 May 2018 17:05:43 +0000 (22:35 +0530)]
Adjust file name and path to test files in patch 2002
Vasudev Kamath [Sat, 12 May 2018 15:19:23 +0000 (20:49 +0530)]
Update patch 2001_use-system-libgit2 for libgit2-sys 0.7.1
Vasudev Kamath [Sat, 12 May 2018 15:08:09 +0000 (20:38 +0530)]
Update upstream source from tag 'upstream/0.27.0'
Update to upstream version '0.27.0'
with Debian dir
501b0e3680662c6bd5f368b11fd2872e61a63f37
Vasudev Kamath [Sat, 12 May 2018 15:07:07 +0000 (20:37 +0530)]
New upstream version 0.27.0
Vasudev Kamath [Sat, 12 May 2018 15:05:12 +0000 (20:35 +0530)]
Add files from clap and vec_map to unsuspicious list.
Vasudev Kamath [Sat, 12 May 2018 15:04:46 +0000 (20:34 +0530)]
Update patch 2004 for the new release.
bors [Mon, 7 May 2018 06:55:24 +0000 (06:55 +0000)]
Auto merge of #5493 - ehuss:fix-changing_bin_features_caches_targets, r=matklad
Fix random Windows CI error for changing_bin_features_caches_targets
Fixes #5481.
Eric Huss [Sun, 6 May 2018 15:25:44 +0000 (08:25 -0700)]
Fix random Windows CI error for changing_bin_features_caches_targets
Fixes #5481.
bors [Sun, 6 May 2018 03:56:43 +0000 (03:56 +0000)]
Auto merge of #5491 - ehuss:profile-spec, r=alexcrichton
Add package spec support to profile overrides.
Note: It errors out if multiple overrides match the same package. This could potentially merge the overrides together with a hierarchy similar to CSS specificity. However, that seems overkill for now.
Eric Huss [Sat, 5 May 2018 23:13:09 +0000 (16:13 -0700)]
Add package spec support to profile overrides.
Note: It errors out if multiple overrides match the same package. This could potentially merge the overrides together with a hierarchy similar to CSS specificity. However, that seems overkill for now.
bors [Sat, 5 May 2018 21:32:18 +0000 (21:32 +0000)]
Auto merge of #5461 - matklad:meta-rename, r=alexcrichton
Support crate renames in `cargo metadata`
This adds information about (currently unstable) crate renames to metadata. Unfortunately, we already expose dependencies as a list of package ids (which are strings), so we can't easily add a `rename` field easily. For this reason, I've added a parallel `deps` key, which basically deprecates `dependencies` field.
So, the new format looks like this
```JavaScript
{
"dependencies": [
"bar 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"bar 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
],
"deps": [
{
"extern_crate_name": "baz", // this one is actually renamed
"id": "bar 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"
},
{
"extern_crate_name": "bar",
"id": "bar 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
}
],
"features": [],
"id": "foo 0.5.0 (path+file://[..])"
},
```
Questions:
* Is there a better name for `extern_crate_name`? This name is precise, but it's longer than I like, and might become opaque in meaning if we remove `extern crate` from the language :)
* Should we feature gate this (i.e, only produce `deps` if we have a feature in `Cargo.toml`)? I think the answer is yes, but that'll require threading `Features` to `Workspace`...
r? @alexcrichton
Aleksey Kladov [Sat, 5 May 2018 15:07:18 +0000 (18:07 +0300)]
Expand dependency info of cargo --metadata
The old `dependencies` key in `resolve` is deprecated.
Instead, the new `deps` key introduced which lists dependencies kinds
(dev/build/normal) as well as `extern crate` name for the dep.
Aleksey Kladov [Wed, 2 May 2018 17:26:52 +0000 (20:26 +0300)]
Extract Package::lib_target method
bors [Sat, 5 May 2018 20:41:12 +0000 (20:41 +0000)]
Auto merge of #5490 - alexcrichton:fix-thrash, r=matklad
Factor in `used_in_plugin` to target filenames
This prevents thrashing the cache of compiled libraries for when they're used in
a plugin or not.
Alex Crichton [Sat, 5 May 2018 19:59:50 +0000 (12:59 -0700)]
Factor in `used_in_plugin` to target filenames
This prevents thrashing the cache of compiled libraries for when they're used in
a plugin or not.
bors [Sat, 5 May 2018 19:52:25 +0000 (19:52 +0000)]
Auto merge of #5489 - dwijnand:drop-GitSource-TODO, r=matklad
Drop PathSource TODO in GitSource
This effort was started in
de6944798cf2940b91c742b8d6cd4294ea28f76a,
and looks (to me) to be resolved at this point.
bors [Sat, 5 May 2018 19:04:30 +0000 (19:04 +0000)]
Auto merge of #5488 - alexcrichton:Retry, r=matklad
Cop out on fixing a spurious test failure
This commit cops out trying to fix `rename_with_link_search_path` by simply
adding a loop on Windows to retry the operation that looks to need retrying.
Dale Wijnand [Sat, 5 May 2018 18:55:37 +0000 (19:55 +0100)]
Drop PathSource TODO in GitSource
This effort was started in
de6944798cf2940b91c742b8d6cd4294ea28f76a,
and looks (to me) to be resolved at this point.
Alex Crichton [Sat, 5 May 2018 18:47:41 +0000 (11:47 -0700)]
Cop out on fixing a spurious test failure
This commit cops out trying to fix `rename_with_link_search_path` by simply
adding a loop on Windows to retry the operation that looks to need retrying.
bors [Sat, 5 May 2018 18:35:04 +0000 (18:35 +0000)]
Auto merge of #5358 - djc:options-build-config, r=matklad
Let CompileOptions create a BuildConfig directly
This puts input validation in a more central place and prevents copying/moving stuff around as separate values.
bors [Sat, 5 May 2018 17:19:01 +0000 (17:19 +0000)]
Auto merge of #5487 - matklad:mixed-deps, r=alexcrhiton
FIx false positive warning
We warn if a feature was specified corresponding to a dependency which
is not optional. However, a dependency can be both optional and
required, and we shouldn't warn in that case.
cc https://github.com/rust-lang/cargo/pull/5480
r? @alexcrichton
Aleksey Kladov [Sat, 5 May 2018 16:04:54 +0000 (19:04 +0300)]
FIx false positive warning
We warn if a feature was specified corresponding to a dependency which
is not optional. However, a dependency can be both optional and
required, and we shouldn't warn in that case.
bors [Sat, 5 May 2018 16:11:36 +0000 (16:11 +0000)]
Auto merge of #5486 - ehuss:deprecate-doc, r=matklad
Deprecate `doc` profile.
Fixes #5434
Eric Huss [Sat, 5 May 2018 15:52:19 +0000 (08:52 -0700)]
Deprecate `doc` profile.
Fixes #5434
bors [Sat, 5 May 2018 14:24:55 +0000 (14:24 +0000)]
Auto merge of #5485 - patriksvensson:feature/GH-5474, r=matklad
Do not allow running library examples.
This is my first contribution to anything Rust related that I haven't written myself, and I'm not a very proficient Rust programmer (yet), so would love some feedback on improvements.
I also might have solved this the wrong way... 😄
Closes #5474
(cc @matklad)
Patrik Svensson [Sat, 5 May 2018 14:17:59 +0000 (16:17 +0200)]
Made adjustments based on feedback from review.
Patrik Svensson [Sat, 5 May 2018 08:39:51 +0000 (10:39 +0200)]
Do not allow running library examples.
Closes #5474
bors [Fri, 4 May 2018 21:07:15 +0000 (21:07 +0000)]
Auto merge of #5480 - alexcrichton:fix-regr, r=matklad
Fix optional deps in multiple sections
This commit fixes an issue where an optional dependency was listed multiple
times in a manifest (multiple sections). This regression was introduced by #5415
and happened because in the resolver we didn't record a `Dependency` as it was
accidentally deduplicated too soon.
The fix here was to ensure that all `Dependency` annotations make their way into
`Resolve` now that we rely on the listed `Dependency` values for correctness.
Closes #5475
Alex Crichton [Fri, 4 May 2018 16:19:30 +0000 (09:19 -0700)]
Fix optional deps in multiple sections
This commit fixes an issue where an optional dependency was listed multiple
times in a manifest (multiple sections). This regression was introduced by #5415
and happened because in the resolver we didn't record a `Dependency` as it was
accidentally deduplicated too soon.
The fix here was to ensure that all `Dependency` annotations make their way into
`Resolve` now that we rely on the listed `Dependency` values for correctness.
Closes #5475
bors [Fri, 4 May 2018 18:00:30 +0000 (18:00 +0000)]
Auto merge of #5483 - ehuss:disable-panic-test, r=matklad
Disable --all-targets panic tests until we can land a fix.
Eric Huss [Fri, 4 May 2018 17:51:20 +0000 (10:51 -0700)]
Disable --all-targets panic tests until we can land a fix.
bors [Fri, 4 May 2018 16:07:30 +0000 (16:07 +0000)]
Auto merge of #5479 - matklad:ghost-hunting, r=alexcrichton
Investigating spurious windows errors
r? @alexcrichton
Aleksey Kladov [Fri, 4 May 2018 15:02:57 +0000 (18:02 +0300)]
Try to diagnose/fix spurious windows error with better rm -r
Aleksey Kladov [Fri, 4 May 2018 14:53:10 +0000 (17:53 +0300)]
Revert "Attmept to fix a spurious failure on AppVeyor"
This reverts commit
db3328f8f7b96701faa62756a0d55ed71899d894.
We get spurious errors for thouse tests even with debug info disabled,
so let's reenable it back.
bors [Fri, 4 May 2018 14:37:41 +0000 (14:37 +0000)]
Auto merge of #5476 - dwijnand:Registry-vs-Source-confusion, r=matklad
Try & simplify Registry vs Source confusion
Refs #3006.
I tried to go further and replace references of `Registry` with `PackageRegistry`, but I ran into lifetime issue in `ops::resolve_with_previous` which I think has to do with no longer passing `PackageRegistry` as a `Registry` trait object (with a new and distinct lifetime).
Dale Wijnand [Fri, 4 May 2018 14:24:08 +0000 (15:24 +0100)]
Trash RegistryBuilder, dead cfg(test) code
Dale Wijnand [Fri, 4 May 2018 13:15:48 +0000 (14:15 +0100)]
Re-organise Source impls method definition order
Optimised for minimised PR diff, and thus reviewability
Dale Wijnand [Fri, 4 May 2018 13:10:24 +0000 (14:10 +0100)]
Re-simplify GitSource::query
Dale Wijnand [Fri, 4 May 2018 13:07:51 +0000 (14:07 +0100)]
Move query definitions back into Source impls!
Dale Wijnand [Fri, 4 May 2018 13:05:23 +0000 (14:05 +0100)]
Remove all "impl Registry for XSource" blocks!
Dale Wijnand [Fri, 4 May 2018 13:00:35 +0000 (14:00 +0100)]
Drop unnecessary Registry for Box
Dale Wijnand [Thu, 3 May 2018 22:26:42 +0000 (23:26 +0100)]
Duplicate query in Source, drop Registry parent type
.. and move query definitions to the struct impls.
Dale Wijnand [Thu, 3 May 2018 22:14:21 +0000 (23:14 +0100)]
Start moving methods from Registry to Source
For now just move `supports_checksums` and `requires_precise` methods
down from `Registry` to `Source`, as they're not as entangled as
`query`.
Dirkjan Ochtman [Sat, 14 Apr 2018 09:58:01 +0000 (11:58 +0200)]
Rename default() method that does not implement Default
Dirkjan Ochtman [Sat, 14 Apr 2018 09:06:51 +0000 (11:06 +0200)]
Store BuildConfig directly in CompileOptions
Dirkjan Ochtman [Thu, 3 May 2018 09:17:38 +0000 (11:17 +0200)]
Pass full build_config to generate_targets()
Dirkjan Ochtman [Sat, 28 Apr 2018 13:14:51 +0000 (15:14 +0200)]
Move rustc and target configs from BuildConfig into BuildContext
Dirkjan Ochtman [Thu, 3 May 2018 08:42:45 +0000 (10:42 +0200)]
Pass Workspace directly into Config::rustc()
This means we can store the cache file name in one place.
Dirkjan Ochtman [Thu, 3 May 2018 08:09:54 +0000 (10:09 +0200)]
Proxy host_triple() and target_triple() on BuildContext
Dirkjan Ochtman [Thu, 3 May 2018 08:08:16 +0000 (10:08 +0200)]
Initialize Compilation fields directly from BuildContext
Dirkjan Ochtman [Sat, 28 Apr 2018 12:50:56 +0000 (14:50 +0200)]
Pass target configs directly to BuildState::new()
Dirkjan Ochtman [Sat, 14 Apr 2018 09:55:26 +0000 (11:55 +0200)]
Move BuildConfig and dependencies into new module
Dirkjan Ochtman [Sat, 14 Apr 2018 09:44:42 +0000 (11:44 +0200)]
Move more input validation into BuildConfig::new()
Dirkjan Ochtman [Sat, 14 Apr 2018 08:49:15 +0000 (10:49 +0200)]
Store compile mode as enum in BuildConfig
Dirkjan Ochtman [Sat, 14 Apr 2018 08:47:58 +0000 (10:47 +0200)]
Expose CompileMode in command_prelude
Dirkjan Ochtman [Sat, 14 Apr 2018 08:27:33 +0000 (10:27 +0200)]
Store message format as enum in BuildConfig
bors [Thu, 3 May 2018 19:39:24 +0000 (19:39 +0000)]
Auto merge of #5472 - alexcrichton:rename-rust, r=matklad
Rename the `rust` manifest key to `edition`
This'll hopefully jive better with the terminology of "edition" throughout the
rest of Rust!
Alex Crichton [Thu, 3 May 2018 16:14:25 +0000 (09:14 -0700)]
Rename the `rust` manifest key to `edition`
This'll hopefully jive better with the terminology of "edition" throughout the
rest of Rust!
bors [Thu, 3 May 2018 18:19:51 +0000 (18:19 +0000)]
Auto merge of #5473 - ehuss:autobin-warning, r=alexcrichton
Address autobins warning.
Removes the large warning displayed if you build Cargo with itself (but adds a warning if you build with an older Cargo). Not sure which approach you prefer to address it, or if you want to do this later.
Eric Huss [Thu, 3 May 2018 16:13:36 +0000 (09:13 -0700)]
Address autobins warning.
bors [Thu, 3 May 2018 17:03:06 +0000 (17:03 +0000)]
Auto merge of #5470 - alexcrichton:hopeful-fix, r=matklad
Attmept to fix a spurious failure on AppVeyor
I *think* the issue is that `link.exe` is generating debuginfo in the background
which keeps the file open and prevents us from deleting it, but hopefully by
disabling debug information we'll either be able to confirm or deny this
hypothesis.
Alex Crichton [Thu, 3 May 2018 15:01:25 +0000 (08:01 -0700)]
Attmept to fix a spurious failure on AppVeyor
I *think* the issue is that `link.exe` is generating debuginfo in the background
which keeps the file open and prevents us from deleting it, but hopefully by
disabling debug information we'll either be able to confirm or deny this
hypothesis.
bors [Thu, 3 May 2018 15:31:44 +0000 (15:31 +0000)]
Auto merge of #5468 - matklad:aliases, r=alexcrichton
Tweak handling of aliases
Previously, `execute_subcommand` was called recursively, and each call
would `.configure` the `config` again. It worked, but seemed rather
fragile.
This commit handles aliases more explicitly, ensures that `.configure`
is called once and, as a bonus, adds a warning for when an alias is
shadowed by the built in.
Aleksey Kladov [Thu, 3 May 2018 11:05:21 +0000 (14:05 +0300)]
Tweak error messages
By convention, all errors should start with a lowercase letter
Aleksey Kladov [Thu, 3 May 2018 10:50:05 +0000 (13:50 +0300)]
Make alias handling more straightforward
Previously, `execute_subcommand` was called recursively, and each call
would `.configure` the `config` again. It worked, but seemed rather
fragile.
This commit handles aliases more explicitly, ensures that `.configure`
is called once and, as a bonus, adds a warning for when an alias is
shadowed by the built in.
bors [Thu, 3 May 2018 13:43:38 +0000 (13:43 +0000)]
Auto merge of #5464 - ehuss:restore-example-test, r=alexcrichton
Partially revert change to testing examples.
Fixes #5437
I don't think changing the behavior was quite the correct thing to do. This new behavior is very similar to the old with a few small differences:
```
cargo test
ORGINAL: Only builds examples.
NEW: Builds all examples. Any example with `test` set is tested.
cargo test --tests
ORIGINAL: Runs all examples as tests.
NEW: Only runs examples as tests if `test` is set.
cargo test --examples
ORIGINAL: Runs all examples as tests.
NEW: (SAME)
cargo test --example foo
ORIGINAL: Runs the given example as a test.
NEW: (SAME)
cargo test --all-targets
ORIGINAL: Runs all examples as tests.
NEW: (SAME)
```
bors [Thu, 3 May 2018 13:06:37 +0000 (13:06 +0000)]
Auto merge of #5469 - matklad:fix-link, r=matklad
Fix link in docs