]> git.proxmox.com Git - cargo.git/log
cargo.git
6 years agoAuto merge of #5404 - matklad:remove-useless-nightly, r=matklad
bors [Sun, 22 Apr 2018 15:26:44 +0000 (15:26 +0000)]
Auto merge of #5404 - matklad:remove-useless-nightly, r=matklad

Remove some `is_nightly` checks from tests

6 years agoRemove some `is_nightly` checks from tests
Aleksey Kladov [Sun, 22 Apr 2018 15:06:21 +0000 (18:06 +0300)]
Remove some `is_nightly` checks from tests

6 years agoAuto merge of #5400 - kornelski:master, r=alexcrichton
bors [Sat, 21 Apr 2018 19:57:10 +0000 (19:57 +0000)]
Auto merge of #5400 - kornelski:master, r=alexcrichton

Docs: rename gcc-rs → cc-rs

6 years agoDocs: rename gcc-rs → cc-rs
Kornel [Sat, 21 Apr 2018 19:40:59 +0000 (20:40 +0100)]
Docs: rename gcc-rs → cc-rs

6 years agoAuto merge of #5335 - dwijnand:target-autodiscovery, r=alexcrichton
bors [Sat, 21 Apr 2018 16:10:13 +0000 (16:10 +0000)]
Auto merge of #5335 - dwijnand:target-autodiscovery, r=alexcrichton

Introduce autoXXX keys for target auto-discovery

In Rust 2015 absence of the configuration makes it default to not
include auto-discovered targets (i.e false), with a warnings message.

In Rust 2018 absence makes it default to include auto-discovered
targets (i.e true).

Fixes #5330

---

_original_

Fixes #5330

submitted for early review. feedback very welcome, I'm happy to iterate (and learn).

in particular I require assistance with the borrowing of `warnings` in `clean_benches`.

6 years agoAuto merge of #5399 - dwijnand:cleanup/drop-an-old-visible-doc-todo, r=matklad
bors [Sat, 21 Apr 2018 14:51:24 +0000 (14:51 +0000)]
Auto merge of #5399 - dwijnand:cleanup/drop-an-old-visible-doc-todo, r=matklad

Drop an old visible doc TODO

Looks like this originates from
https://github.com/istankovic/cargo-book/commit/418611304daac22e3590aee9322355ae159802fe

But it's even visible in the render docs:
https://doc.rust-lang.org/cargo/reference/manifest.html#package-selection
:-O

6 years agoDrop an old visible doc TODO
Dale Wijnand [Sat, 21 Apr 2018 14:17:24 +0000 (15:17 +0100)]
Drop an old visible doc TODO

Looks like this originates from
https://github.com/istankovic/cargo-book/commit/418611304daac22e3590aee9322355ae159802fe

But it's even visible in the render docs:
https://doc.rust-lang.org/cargo/reference/manifest.html#package-selection
:-O

6 years agobacktick auto-discovery key usage advice
Dale Wijnand [Fri, 20 Apr 2018 21:23:08 +0000 (22:23 +0100)]
backtick auto-discovery key usage advice

6 years agomanually line wrap warnings at 80 characters
Dale Wijnand [Fri, 20 Apr 2018 21:22:41 +0000 (22:22 +0100)]
manually line wrap warnings at 80 characters

6 years agoprefer PathBuf::display over {:?}
Dale Wijnand [Fri, 20 Apr 2018 21:21:33 +0000 (22:21 +0100)]
prefer PathBuf::display over {:?}

6 years agoavoid windows path assertion bug
Dale Wijnand [Fri, 20 Apr 2018 21:20:31 +0000 (22:20 +0100)]
avoid windows path assertion bug

6 years agoAuto merge of #5396 - dwijnand:arg_targets_all-typos, r=matklad
bors [Fri, 20 Apr 2018 20:33:06 +0000 (20:33 +0000)]
Auto merge of #5396 - dwijnand:arg_targets_all-typos, r=matklad

fix typos in arg_targets_all

None

6 years agofix typos in arg_targets_all
Dale Wijnand [Fri, 20 Apr 2018 19:00:57 +0000 (20:00 +0100)]
fix typos in arg_targets_all

6 years agoIntroduce autoXXX keys for target auto-discovery
Dale Wijnand [Mon, 16 Apr 2018 22:19:42 +0000 (00:19 +0200)]
Introduce autoXXX keys for target auto-discovery

In Rust 2015 absence of the configuration makes it default to not
include auto-discovered targets (i.e false), with a warnings message.

In Rust 2018 absence makes it default to include auto-discovered
targets (i.e true).

Fixes #5330

6 years agoExtract toml_targets_and_inferred & inferred_to_toml_targets
Dale Wijnand [Mon, 16 Apr 2018 22:13:14 +0000 (00:13 +0200)]
Extract toml_targets_and_inferred & inferred_to_toml_targets

6 years agoIncrease scope nesting to borrow
Dale Wijnand [Mon, 16 Apr 2018 22:17:57 +0000 (00:17 +0200)]
Increase scope nesting to borrow

6 years agoMove edition earlier in TomlManifest::to_real_manifest
Dale Wijnand [Tue, 10 Apr 2018 07:22:29 +0000 (08:22 +0100)]
Move edition earlier in TomlManifest::to_real_manifest

and fix a typo in the error message

6 years agoAuto merge of #5395 - dwijnand:contributing-setup-cross-tests, r=alexcrichton
bors [Fri, 20 Apr 2018 18:43:05 +0000 (18:43 +0000)]
Auto merge of #5395 - dwijnand:contributing-setup-cross-tests, r=alexcrichton

add contributing notes for cross compile test setup

adding notes from @alexcrichton's help in https://gitter.im/rust-lang/cargo?at=5ada2eae2b9dfdbc3ab01f29.

6 years agoadd contributing notes for cross compile test setup
Dale Wijnand [Fri, 20 Apr 2018 18:29:42 +0000 (19:29 +0100)]
add contributing notes for cross compile test setup

6 years agoAuto merge of #5391 - varkor:check-message, r=alexcrichton
bors [Thu, 19 Apr 2018 22:21:08 +0000 (22:21 +0000)]
Auto merge of #5391 - varkor:check-message, r=alexcrichton

Print "Checking" for cargo check

I often alternate between `check` and `build` and I'd like to be able to tell which is currently happening (short-term memory being what it is, and "compiling" implying to me that codegen is occurring). Changing the message to "Checking" seemed to be reasonable (and there was precedent for `doc` with "Documenting").

6 years agoUpdate tests to check for Checking
varkor [Thu, 19 Apr 2018 18:19:11 +0000 (19:19 +0100)]
Update tests to check for Checking

6 years agoAuto merge of #5390 - matklad:new-feature-behavior, r=alexcrichton
bors [Thu, 19 Apr 2018 14:30:48 +0000 (14:30 +0000)]
Auto merge of #5390 - matklad:new-feature-behavior, r=alexcrichton

Enable new behavior of `--feature`

So far, the feedback on https://internals.rust-lang.org/t/help-us-test-the-breaking-bug-fix-to-cargo-features/7317 has been positive, so here's a PR to try this in nightly.

Note that the logic is slightly tweak for the case `cargo build -p not-a-workspace-member`: we want not only to resolve all ws members in this case, but to enable all of their features as well!

As a sanity check, this seems to be forward compatible with further improvements to features:

1) when we solve the grand bug of features being unified across the whole workspace, `cargo build -p not-a-member` would hopefully just work without additional contortions.
2) we might add a way to specify features per package, like `cargo build -p foo -p bar --features "foo/serde bar/serde"`

6 years agoAuto merge of #5392 - ehuss:test-does-not-contain, r=alexcrichton
bors [Thu, 19 Apr 2018 14:08:29 +0000 (14:08 +0000)]
Auto merge of #5392 - ehuss:test-does-not-contain, r=alexcrichton

cargotest: Fix `with_*_does_not_contain` to support `[..]` and macro matching.

I changed it so that it is essentially the opposite of `with_*_contains` to keep it symmetric.

Any in-flight PRs using the old style will need to be updated (else they will incorrectly silently pass).  Alternatively, we could rename the method to avoid that.

The following tests contained brackets, so they were not checking what they thought they were checking.  I did a cursory look at them, but perhaps someone else could double-check that they make sense.  Asserting what *doesn't* happen can be tricky since there is an infinite number of things that won't happen.  Preferably a test would assert that it appears in one scenario and not another (like `incremental_profile` does), but some of them don't or can't.

```
build::incremental_profile
build::incremental_config
build::cargo_compile_with_workspace_excluded
build::build_all_exclude
build::targets_selected_default
check::targets_selected_default
check::check_filters
rustc::targets_selected_default
rustc_info_cache::rustc_info_cache
warn_on_failure::no_warning_on_bin_failure
warn_on_failure::warning_on_lib_failure
```

BTW, would you be interested in a PR that adds some documentation to `cargotest`?
I've discovered things I didn't know where there.  I think some docstrings on some of the methods, and a short guide for new contributors would be helpful.

6 years agoFix `with_*_does_not_contain` to support `[..]` and macro matching.
Eric Huss [Thu, 19 Apr 2018 05:13:30 +0000 (22:13 -0700)]
Fix `with_*_does_not_contain` to support `[..]` and macro matching.

6 years agoPrint "Checking" for cargo check
varkor [Thu, 19 Apr 2018 00:08:35 +0000 (01:08 +0100)]
Print "Checking" for cargo check

6 years agoEnable new behavior of `--feature`
Aleksey Kladov [Wed, 18 Apr 2018 20:36:59 +0000 (23:36 +0300)]
Enable new behavior of `--feature`

6 years agoAuto merge of #5389 - matklad:one-hard-cs-problem, r=alexcrichton
bors [Wed, 18 Apr 2018 15:09:00 +0000 (15:09 +0000)]
Auto merge of #5389 - matklad:one-hard-cs-problem, r=alexcrichton

One hard cs problem

Closes https://github.com/rust-lang/cargo/issues/5313

r? @alexcrichton

Note that, due to the first commit, this still gives us all the benefits of #5249: if RUSTFLAGS is empty, we will run only a single rustc process, even if we can't cache it across different cargo invocations.

6 years agoDon't try to use the same info if target == host
Aleksey Kladov [Wed, 18 Apr 2018 15:00:21 +0000 (18:00 +0300)]
Don't try to use the same info if target == host

The info might be different due to RUSTFLAGS, which, in general,
are applied only to target.

6 years agorustfmt
Aleksey Kladov [Wed, 18 Apr 2018 14:56:26 +0000 (17:56 +0300)]
rustfmt

6 years agoImprove rustc cache
Aleksey Kladov [Wed, 18 Apr 2018 14:44:23 +0000 (17:44 +0300)]
Improve rustc cache

Even if we've failed to calculate fingerprint and thus can't persist
cache to disk, it is still valid to cache rustc output within single
process.

6 years agoAuto merge of #5386 - ysimonson:new-metadata, r=matklad
bors [Wed, 18 Apr 2018 09:55:27 +0000 (09:55 +0000)]
Auto merge of #5386 - ysimonson:new-metadata, r=matklad

Added new metadata fields

Addresses #5373.

`cargo metadata` should now include all of the non-optional suggested fields in the [API guidelines](https://rust-lang-nursery.github.io/api-guidelines/documentation.html#cargotoml-includes-all-common-metadata-c-metadata).

6 years agoExplicitly test for new package metadata fields
Yusuf Simonson [Wed, 18 Apr 2018 08:16:50 +0000 (15:16 +0700)]
Explicitly test for new package metadata fields

6 years agoAdded new metadata fields.
Yusuf Simonson [Wed, 18 Apr 2018 08:08:18 +0000 (15:08 +0700)]
Added new metadata fields.

`cargo metadata` should now include all of the non-optional suggested fields in the API guidelines (see section C-METADATA.)

6 years agoAuto merge of #5379 - alexcrichton:bump-fieltime, r=matklad
bors [Wed, 18 Apr 2018 06:15:55 +0000 (06:15 +0000)]
Auto merge of #5379 - alexcrichton:bump-fieltime, r=matklad

Bump version of `filetime` dependency

6 years agoAuto merge of #5383 - dwijnand:contributing-custom-build, r=alexcrichton
bors [Wed, 18 Apr 2018 02:28:35 +0000 (02:28 +0000)]
Auto merge of #5383 - dwijnand:contributing-custom-build, r=alexcrichton

add build-from-source info to Tests architecture docs

it's mentioned in the README, but it's worth mentioning again in the
Tests section of the architecture doc.

6 years agoAuto merge of #5381 - dwijnand:github-casing, r=alexcrichton
bors [Wed, 18 Apr 2018 01:47:40 +0000 (01:47 +0000)]
Auto merge of #5381 - dwijnand:github-casing, r=alexcrichton

Fix how GitHub is written

just a silly PR - I noticed it in the README, and applied it repo-wide.

6 years agoAuto merge of #5380 - dwijnand:typo, r=alexcrichton
bors [Wed, 18 Apr 2018 00:39:00 +0000 (00:39 +0000)]
Auto merge of #5380 - dwijnand:typo, r=alexcrichton

typo

None

6 years agoadd build-from-source info to Tests architecture docs
Dale Wijnand [Wed, 18 Apr 2018 00:27:44 +0000 (01:27 +0100)]
add build-from-source info to Tests architecture docs

it's mentioned in the README, but it's worth mentioning again in the
Tests section of the architecture doc.

6 years agoBump version of `filetime` dependency
Alex Crichton [Tue, 17 Apr 2018 22:08:04 +0000 (15:08 -0700)]
Bump version of `filetime` dependency

6 years agoAuto merge of #5372 - alexcrichton:bump, r=matklad
bors [Tue, 17 Apr 2018 20:49:43 +0000 (20:49 +0000)]
Auto merge of #5372 - alexcrichton:bump, r=matklad

Bump to 0.28.0

Looks like we've forgotten to do this so far on nightly!

6 years agotypo
Dale Wijnand [Tue, 17 Apr 2018 20:10:28 +0000 (22:10 +0200)]
typo

6 years agoFix how GitHub is written
Dale Wijnand [Tue, 17 Apr 2018 20:14:41 +0000 (22:14 +0200)]
Fix how GitHub is written

6 years agoAuto merge of #5374 - matklad:simplify, r=alexcrichton
bors [Tue, 17 Apr 2018 16:00:32 +0000 (16:00 +0000)]
Auto merge of #5374 - matklad:simplify, r=alexcrichton

Simplify RegistryPackage deserialization

Just mapping dependencies seems so much simpler than thread locals / deserializers with default. Am I missing something, or this indeed will work? :-)

cc @Mark-Simulacrum

6 years agoAuto merge of #5361 - derekdreery:issue_5345, r=matklad
bors [Tue, 17 Apr 2018 13:39:04 +0000 (13:39 +0000)]
Auto merge of #5361 - derekdreery:issue_5345, r=matklad

Fix issue 5345

Fixes #5345.

Also adds some docs and Debug impls.

6 years agoAdd fix and some docs
Richard Dodd [Tue, 17 Apr 2018 13:16:58 +0000 (14:16 +0100)]
Add fix and some docs

6 years agoSimplify RegistryPackage deserialization
Aleksey Kladov [Tue, 17 Apr 2018 07:48:15 +0000 (10:48 +0300)]
Simplify RegistryPackage deserialization

6 years agoBump to 0.28.0
Alex Crichton [Tue, 17 Apr 2018 03:29:41 +0000 (20:29 -0700)]
Bump to 0.28.0

Looks like we've forgotten to do this so far on nightly!

6 years agoAuto merge of #5272 - Phlosioneer:5211-missing-size-hints, r=matklad
bors [Mon, 16 Apr 2018 21:10:56 +0000 (21:10 +0000)]
Auto merge of #5272 - Phlosioneer:5211-missing-size-hints, r=matklad

Implement size_hint for some iterators

This PR implements size_hints for `Deps`, `DepsNotReplaced`, and `Members`.
These size_hints are used extensively by cargo to allocate Vecs.

`Deps`, `DepsNotReplaced`, and `RcVecIter` also now implement `ExactSizeIterator`.

Closes #5211

6 years agoAdd compile-time check for ExactSizeIterator
Phlosioneer [Mon, 16 Apr 2018 20:59:22 +0000 (16:59 -0400)]
Add compile-time check for ExactSizeIterator

6 years agoAuto merge of #5359 - matklad:rustc-cache, r=alexcrichton
bors [Mon, 16 Apr 2018 17:23:53 +0000 (17:23 +0000)]
Auto merge of #5359 - matklad:rustc-cache, r=alexcrichton

Rustc cache

This implements rustc caching, to speed-up no-op builds.

The cache is per-project, and stored in `target` directory. To implement this, I had to move `rustc` from `Config` down to `BuildConfig`.

closes https://github.com/rust-lang/cargo/issues/5315

6 years agorustc is rustc.exe on windows
Aleksey Kladov [Mon, 16 Apr 2018 16:22:53 +0000 (19:22 +0300)]
rustc is rustc.exe on windows

6 years agoSimplify
Aleksey Kladov [Mon, 16 Apr 2018 15:53:12 +0000 (18:53 +0300)]
Simplify

6 years agoMake rustc_info a hidden file
Aleksey Kladov [Mon, 16 Apr 2018 15:52:35 +0000 (18:52 +0300)]
Make rustc_info a hidden file

6 years agoHandle non-rustup cargo + rustup rustc in rustc cache
Aleksey Kladov [Mon, 16 Apr 2018 15:50:25 +0000 (18:50 +0300)]
Handle non-rustup cargo + rustup rustc in rustc cache

6 years agoAuto merge of #5360 - euclio:metadata, r=alexcrichton
bors [Mon, 16 Apr 2018 15:36:50 +0000 (15:36 +0000)]
Auto merge of #5360 - euclio:metadata, r=alexcrichton

include package metadata in `cargo metadata`

Fixes #4819.

All-in-all a pretty small change. I'm a little concerned about threading the `toml::Value` all the way through however, should I make another type? Also, cloning the metadata value initially is maybe not ideal, since it's technically accessible through the original manifest. I figured this way was cleaner.

6 years agoRemove `internal` from error handling
Aleksey Kladov [Mon, 16 Apr 2018 14:57:25 +0000 (17:57 +0300)]
Remove `internal` from error handling

6 years agoAuto merge of #5357 - matklad:even-rust-has-format-string-bugs, r=alexcrichton
bors [Mon, 16 Apr 2018 04:48:29 +0000 (04:48 +0000)]
Auto merge of #5357 - matklad:even-rust-has-format-string-bugs, r=alexcrichton

Correctly print fractional part of a second

So my experiments with `rustc -vV` caching bring no-op build times to around 50ms, and this actually exposes a bug in our time-printing code :-)

6 years agoBetter test description
Richard Dodd [Sun, 15 Apr 2018 13:00:36 +0000 (14:00 +0100)]
Better test description

6 years ago[Wip] fix issue 5345
Richard Dodd [Sun, 15 Apr 2018 12:56:22 +0000 (13:56 +0100)]
[Wip] fix issue 5345

6 years agoinclude package metadata in `cargo metadata`
Andy Russell [Sat, 14 Apr 2018 19:07:23 +0000 (15:07 -0400)]
include package metadata in `cargo metadata`

Fixes #4819.

6 years agoCorrectly resolve executables in paths on windows
Aleksey Kladov [Sat, 14 Apr 2018 14:06:05 +0000 (17:06 +0300)]
Correctly resolve executables in paths on windows

6 years agoAdd env-var to suppress rustc caching
Aleksey Kladov [Sat, 14 Apr 2018 11:09:23 +0000 (14:09 +0300)]
Add env-var to suppress rustc caching

6 years agoSpeedup no-op builds by caching rustc invocations
Aleksey Kladov [Sat, 14 Apr 2018 10:39:59 +0000 (13:39 +0300)]
Speedup no-op builds by caching rustc invocations

6 years agoHide BuildConfig.host_triple behind a getter
Aleksey Kladov [Sat, 14 Apr 2018 08:54:33 +0000 (11:54 +0300)]
Hide BuildConfig.host_triple behind a getter

6 years agoAssociated Rustc with a build config
Aleksey Kladov [Sat, 14 Apr 2018 08:49:13 +0000 (11:49 +0300)]
Associated Rustc with a build config

We want to create `rustc` only when we already have workspace, so that
we could use the `target` dir to store cached info about the compiler.

6 years agoExtract mtime calculation
Aleksey Kladov [Fri, 13 Apr 2018 18:11:41 +0000 (21:11 +0300)]
Extract mtime calculation

6 years agoCorrectly print fractional part of a second
Aleksey Kladov [Fri, 13 Apr 2018 22:06:21 +0000 (01:06 +0300)]
Correctly print fractional part of a second

6 years agoAuto merge of #5355 - djc:target-info-no-context, r=matklad
bors [Fri, 13 Apr 2018 18:55:35 +0000 (18:55 +0000)]
Auto merge of #5355 - djc:target-info-no-context, r=matklad

Make it possible to construct TargetInfo without Context

This should make stuff like #5349 easier.

6 years agoAuto merge of #5354 - djc:config-initialization, r=matklad
bors [Fri, 13 Apr 2018 18:23:10 +0000 (18:23 +0000)]
Auto merge of #5354 - djc:config-initialization, r=matklad

Move initialization of BuildConfig, TargetConfig into new() methods

6 years agoInline creation of TargetInfos in Context::new()
Dirkjan Ochtman [Fri, 13 Apr 2018 18:09:50 +0000 (20:09 +0200)]
Inline creation of TargetInfos in Context::new()

6 years agoDon't require full Context to build a TargetInfo
Dirkjan Ochtman [Fri, 13 Apr 2018 17:58:00 +0000 (19:58 +0200)]
Don't require full Context to build a TargetInfo

6 years agoRemove target_triple() method from Context
Dirkjan Ochtman [Fri, 13 Apr 2018 17:54:05 +0000 (19:54 +0200)]
Remove target_triple() method from Context

Favor accessing cx.build_config directly.

6 years agoRemove host_triple() method from Context
Dirkjan Ochtman [Fri, 13 Apr 2018 17:48:16 +0000 (19:48 +0200)]
Remove host_triple() method from Context

Favor accessing cx.build_config directly.

6 years agoRemove requested_target() method from Context
Dirkjan Ochtman [Fri, 13 Apr 2018 17:43:35 +0000 (19:43 +0200)]
Remove requested_target() method from Context

Favor accessing cx.build_config directly.

6 years agoCorrect formatting with cargo fmt
Dirkjan Ochtman [Fri, 13 Apr 2018 17:59:55 +0000 (19:59 +0200)]
Correct formatting with cargo fmt

6 years agoAuto merge of #5353 - matklad:features, r=alexcrichton
bors [Fri, 13 Apr 2018 16:28:23 +0000 (16:28 +0000)]
Auto merge of #5353 - matklad:features, r=alexcrichton

New semantics for `--features` flag

Historically, feature-related flags like `--all-features`,
`--no-default-features` and `--features` operated on the *current*
package. That is, `cargo --package foo --feature feat` would activate
`feat` for the package at the current working directory, and not for the
`foo` package. `-Z package-features` flag implements the more obvious
semantics for this combination of flags. This changes behavior, and that
is why we want to start with an unstable opt-in. The changes are:

* `--feature` flag affects the selected package. It is an error to
  specify `--feature` with more than a single `-p`, or with `-p` outside
  workspace (the latter could work in theory, but would be hard to
  implement).

* `--all-features` and `--no-default-features` affect all selected
  packages, and not the one at cwd.

* The package in `cwd` is not implicitly enabled when doing feature
  selection. That is, `cargo build -Z package-features -p foo` could
  select *less* features for various packages than `cargo build -p foo`.

r? @alexcrichton

6 years agoNew semantics for `--features` flag
Aleksey Kladov [Fri, 13 Apr 2018 14:36:09 +0000 (17:36 +0300)]
New semantics for `--features` flag

Historically, feature-related flags like `--all-features`,
`--no-default-features` and `--features` operated on the *current*
package. That is, `cargo --package foo --feature feat` would activate
`feat` for the package at the current working directory, and not for the
`foo` package. `-Z package-features` flag implements the more obvious
semantics for this combination of flags. This changes behavior, and that
is why we want to start with an unstable opt-in. The changes are:

* `--feature` flag affects the selected package. It is an error to
  specify `--feature` with more than a single `-p`, or with `-p` outside
  workspace (the latter could work in theory, but would be hard to
  implement).

* `--all-features` and `--no-default-features` affect all selected
  packages, and not the one at cwd.

* The package in `cwd` is not implicitly enabled when doing feature
  selection. That is, `cargo build -Z package-features -p foo` could
  select *less* features for various packages than `cargo build -p foo`.

6 years agoMove BuildConfig initialization into new() method
Dirkjan Ochtman [Thu, 12 Apr 2018 14:12:14 +0000 (16:12 +0200)]
Move BuildConfig initialization into new() method

6 years agoMove creation of TargetConfig into new() method
Dirkjan Ochtman [Thu, 12 Apr 2018 13:58:12 +0000 (15:58 +0200)]
Move creation of TargetConfig into new() method

6 years agoAuto merge of #5350 - matklad:simplify-install, r=djc
bors [Thu, 12 Apr 2018 11:16:51 +0000 (11:16 +0000)]
Auto merge of #5350 - matklad:simplify-install, r=djc

Simplify install

Just a mechanical simplification.

6 years agoAuto merge of #5352 - surma-dump:what-is-a-manifest, r=matklad
bors [Thu, 12 Apr 2018 10:44:05 +0000 (10:44 +0000)]
Auto merge of #5352 - surma-dump:what-is-a-manifest, r=matklad

Mention Cargo.toml in manifest help description

I was looking for a CLI flag to pass a different TOML to cargo, but didn’t realize it’s called “manifest” from reading the help.

6 years agoRemove parens
Surma [Thu, 12 Apr 2018 10:42:19 +0000 (12:42 +0200)]
Remove parens

6 years agoMention Cargo.toml in manifest help description
Surma [Thu, 12 Apr 2018 10:30:42 +0000 (12:30 +0200)]
Mention Cargo.toml in manifest help description

6 years agoAuto merge of #5346 - derekdreery:package_id_docs, r=matklad
bors [Thu, 12 Apr 2018 08:00:38 +0000 (08:00 +0000)]
Auto merge of #5346 - derekdreery:package_id_docs, r=matklad

Add docs

Just adds some docs matching what @matklad told me on irc :)

6 years agoremove getter/setter docs
Richard Dodd (dodj) [Thu, 12 Apr 2018 07:32:53 +0000 (08:32 +0100)]
remove getter/setter docs

6 years agoCleanup formatting
Aleksey Kladov [Thu, 12 Apr 2018 06:06:09 +0000 (09:06 +0300)]
Cleanup formatting

6 years agoMinor simplification
Aleksey Kladov [Thu, 12 Apr 2018 06:04:46 +0000 (09:04 +0300)]
Minor simplification

6 years agoAuto merge of #5348 - djc:resolve-target-specific, r=alexcrichton
bors [Thu, 12 Apr 2018 00:03:59 +0000 (00:03 +0000)]
Auto merge of #5348 - djc:resolve-target-specific, r=alexcrichton

Have compilation context info available earlier in the build process

Eventually, I hope this will allow us to ignore platform-specific dependencies when irrelevant for the current build earlier in the process. This should save on extraneous errors. As is, this seems like it already decreases coupling in the code base.

6 years agoMove compiler driver code from ops into core
Dirkjan Ochtman [Wed, 11 Apr 2018 23:08:01 +0000 (01:08 +0200)]
Move compiler driver code from ops into core

6 years agoUse relative dependencies inside cargo_rustc module
Dirkjan Ochtman [Wed, 11 Apr 2018 22:49:56 +0000 (00:49 +0200)]
Use relative dependencies inside cargo_rustc module

6 years agoUse Unit type as interface to compilation
Dirkjan Ochtman [Wed, 11 Apr 2018 22:37:30 +0000 (00:37 +0200)]
Use Unit type as interface to compilation

6 years agoMove cargo_rustc::compile_targets() to Context::compile()
Dirkjan Ochtman [Wed, 11 Apr 2018 22:29:24 +0000 (00:29 +0200)]
Move cargo_rustc::compile_targets() to Context::compile()

6 years agoHoist Context creation out of compile_targets()
Dirkjan Ochtman [Wed, 11 Apr 2018 20:50:07 +0000 (22:50 +0200)]
Hoist Context creation out of compile_targets()

6 years agoDeliver units to compilation Context after initialization
Dirkjan Ochtman [Wed, 11 Apr 2018 20:25:05 +0000 (22:25 +0200)]
Deliver units to compilation Context after initialization

6 years agoError out early on empty targets
Dirkjan Ochtman [Wed, 11 Apr 2018 22:04:58 +0000 (00:04 +0200)]
Error out early on empty targets

6 years agoInitialize BuildConfig in a single place
Dirkjan Ochtman [Wed, 11 Apr 2018 21:55:01 +0000 (23:55 +0200)]
Initialize BuildConfig in a single place

6 years agoInline single use variable binding
Dirkjan Ochtman [Wed, 11 Apr 2018 21:44:58 +0000 (23:44 +0200)]
Inline single use variable binding

6 years agoProcess build configuration before resolving dependencies
Dirkjan Ochtman [Wed, 11 Apr 2018 14:05:28 +0000 (16:05 +0200)]
Process build configuration before resolving dependencies

6 years agoCorrect formatting with cargo fmt
Dirkjan Ochtman [Wed, 11 Apr 2018 21:16:17 +0000 (23:16 +0200)]
Correct formatting with cargo fmt

6 years agoAdd docs
Richard Dodd [Wed, 11 Apr 2018 16:42:52 +0000 (17:42 +0100)]
Add docs