Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
0b051c7
Remove redundant check for Kind::Target.
ehuss Aug 11, 2019
3e82792
Use azure condition for rust-src.
ehuss Aug 11, 2019
aee4048
Remove bin_nostd test, it will likely to finicky.
ehuss Aug 16, 2019
d4c3eea
Update for libtest changes.
ehuss Aug 25, 2019
3ba9de8
Make libtest optional.
ehuss Aug 29, 2019
5da11a5
Auto merge of #7295 - zachlute:config-toml-extension, r=alexcrichton
bors Sep 3, 2019
9382be1
Fix type error due to signature change.
ehuss Sep 3, 2019
49fbf52
Auto merge of #7216 - ehuss:build-std, r=alexcrichton
bors Sep 3, 2019
7176df0
Change --all to --workspace
k-nasa Aug 12, 2019
ecf824f
Update additional uses of --all.
ehuss Sep 4, 2019
fe0e5a4
Auto merge of #7241 - k-nasa:all_to_workspace, r=ehuss
bors Sep 4, 2019
880337a
`map_dependencies` is doing a deep clone, so lets make it cheaper
Eh2406 Sep 4, 2019
542536b
dont need to copy this string
Eh2406 Sep 3, 2019
e9fc779
Auto merge of #7324 - Eh2406:two-copys-of-hash, r=alexcrichton
bors Sep 4, 2019
8f5bdc4
Auto merge of #7326 - Eh2406:map_dependencies, r=ehuss
bors Sep 4, 2019
2e10986
guide: add section about cargo home
matthiaskrgr Aug 29, 2019
4dfc693
Auto merge of #7314 - matthiaskrgr:cargo_home_doc, r=alexcrichton
bors Sep 5, 2019
3432813
Fix some man pages where the files weren't rebuilt.
ehuss Sep 5, 2019
cf03f71
Auto merge of #7332 - ehuss:man-fixup, r=alexcrichton
bors Sep 5, 2019
734c690
doc: capitalization change for consistency.
matthiaskrgr Sep 6, 2019
803b9cd
Fix test for changes in plugin API.
ehuss Sep 6, 2019
62dfd31
Auto merge of #7335 - ehuss:fix-plugin, r=alexcrichton
bors Sep 6, 2019
9eaddf5
Auto merge of #7334 - matthiaskrgr:ch_doc, r=alexcrichton
bors Sep 6, 2019
2ed112c
Add `alloc` and `proc_macro` to libstd crates
alexcrichton Sep 6, 2019
f5a701e
Auto merge of #7336 - alexcrichton:more-crates, r=Eh2406
bors Sep 6, 2019
4592af4
Don't resolve std's optional dependencies
alexcrichton Sep 6, 2019
ad9e421
Auto merge of #7337 - alexcrichton:less-optional, r=ehuss
bors Sep 6, 2019
829fd71
Explicitly ignore some results
varkor Sep 7, 2019
f089697
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
da-x Sep 8, 2019
84331fc
profiles: allow to specify overrides other than for 'dev' and 'release'
da-x Aug 1, 2019
cab8640
Create a jobserver with N tokens, not N-1
alexcrichton Sep 9, 2019
d9ff576
Auto merge of #7340 - varkor:ignore-must_use-results, r=alexcrichton
bors Sep 9, 2019
d551d90
add readme key to cargos manifest.
matthiaskrgr Sep 10, 2019
d41f4af
Auto merge of #7347 - matthiaskrgr:manifest_readme, r=alexcrichton
bors Sep 10, 2019
ecc175e
Remove trailing spaces.
ehuss Sep 10, 2019
57b3d04
Fix broken links, misspellings, style fixes, clarifications.
ehuss Sep 10, 2019
48640e3
Validate profile names and dir-name
da-x Sep 10, 2019
9655d70
Auto merge of #7348 - ehuss:fix-vendor-link, r=alexcrichton
bors Sep 10, 2019
fc4ee77
Rustfmt fixes
da-x Sep 10, 2019
f55a9db
Add initial documentation for `-Z build-std`
alexcrichton Sep 10, 2019
651b1c5
Auto merge of #7351 - alexcrichton:doc-std-aware, r=ehuss
bors Sep 11, 2019
70bea01
Don't build libstd as a `dylib`
alexcrichton Sep 11, 2019
7d41d45
Include the publish field in cargo-metadata output
sfackler Sep 11, 2019
bb53f51
Update man page
sfackler Sep 11, 2019
a0be578
Auto merge of #7344 - alexcrichton:jobserver, r=ehuss
bors Sep 11, 2019
752112c
Pass --crate-type to rustdoc
Aaron1011 Jul 21, 2019
8a0255f
Only pass '--crate-type' if supported by rustdoc
Aaron1011 Aug 25, 2019
511050b
Run 'cargo fmt'
Aaron1011 Aug 25, 2019
5d302e5
Cache outout of 'rustdoc --crate-type proc-macro --help'
Aaron1011 Aug 26, 2019
4a58255
Auto merge of #7353 - alexcrichton:libstd-no-dylib, r=ehuss
bors Sep 11, 2019
80cc7c8
Reinstate warning regarding 'debug' profile
da-x Sep 12, 2019
c86213f
Typo fix
da-x Sep 12, 2019
d71a172
profiles: improve formatting of some new error messages
da-x Sep 12, 2019
593641d
testsuite: introduce profile_custom
da-x Sep 12, 2019
ac2a438
Rustfmt fixes
da-x Sep 12, 2019
ea2b1b5
testsuite: profile_custom - add conflicting_usage
da-x Sep 12, 2019
5bc05b4
Add tests
Aaron1011 Sep 12, 2019
ffc24e0
testsuite: profile_custom - add clean_custom_dirname
da-x Sep 12, 2019
60afaa7
Run 'cargo fmt'
Aaron1011 Sep 12, 2019
84d08bd
Clarify mandoc
sfackler Sep 12, 2019
59f50ab
Auto merge of #7354 - sfackler:publish-in-manifest, r=alexcrichton
bors Sep 12, 2019
ced10bd
custom-named-profiles: add documentation in unstable.md
da-x Sep 13, 2019
18a8973
Only build libtest when libstd is built
phil-opp Sep 13, 2019
0664484
Experiment: Create timing report.
ehuss May 14, 2019
aca3274
Add rustc info to timing output.
ehuss Sep 12, 2019
674150e
Move hardlink_or_copy to a common location so it can be reused.
ehuss Sep 13, 2019
6f353b5
Make the cargo-timing.html filename unique per run.
ehuss Sep 13, 2019
06ed7a4
Add some asserts.
ehuss Sep 13, 2019
da07061
Remove format!
ehuss Sep 13, 2019
8bfae2d
Make timings optional.
ehuss Sep 13, 2019
911a9b0
Always emit rmeta when timings are enable to visualize codegen everyw…
ehuss Sep 14, 2019
095f154
Give build scripts a different color.
ehuss Sep 14, 2019
6b4fd44
Add a test for -Zbuild-std with custom test frameworks
phil-opp Sep 13, 2019
b12bd38
Parse `unsupported crate type` error more tightly
phil-opp Sep 16, 2019
a5edf21
Add a test that uses a custom binary target
phil-opp Sep 16, 2019
be01054
Auto merge of #7364 - phil-opp:fix-7363, r=alexcrichton
bors Sep 16, 2019
7ac51b7
Auto merge of #7360 - phil-opp:zbuild-std-custom-test-frameworks, r=a…
bors Sep 16, 2019
573a5e7
Remove another `FnBox` trait
alexcrichton Sep 16, 2019
b68e854
Compute 'rustdoc --crate-type' support when Compilation is created
Aaron1011 Sep 16, 2019
b2d4f20
Auto merge of #7159 - Aaron1011:feature/rustdoc-proc-macro-final, r=a…
bors Sep 16, 2019
8a3c0fe
Don't hang when Cargo's worker threads panic
alexcrichton Sep 16, 2019
bcb89d1
Auto merge of #7366 - alexcrichton:fix-hang, r=Eh2406
bors Sep 16, 2019
4cbfd02
Improve test suite for `-Zbuild-std`
alexcrichton Sep 10, 2019
9115b2c
Extract `support` directory to its own crate
alexcrichton Sep 12, 2019
0dd7967
Add back a full integration test for `-Zbuild-std`
alexcrichton Sep 12, 2019
40be3bb
Don't install rust-src on nightly for normal tests
alexcrichton Sep 12, 2019
ebd1052
Run rustfmt
alexcrichton Sep 12, 2019
4a04a1c
Auto merge of #7367 - alexcrichton:less-fn-box, r=ehuss
bors Sep 16, 2019
13bc9a1
Auto merge of #7350 - alexcrichton:mock-std, r=ehuss
bors Sep 16, 2019
26229cd
Uncapitalize "Could not compile" error message
jonas-schievink Sep 16, 2019
c3868bb
Clear out memoized hashes before building crates
alexcrichton Sep 17, 2019
3b735c6
Auto merge of #7369 - jonas-schievink:the-little-c-that-Could, r=alex…
bors Sep 17, 2019
658bde1
Auto merge of #7373 - alexcrichton:clear-memos, r=ehuss
bors Sep 17, 2019
e545412
Work with canonical URLs in `[patch]`
alexcrichton Sep 16, 2019
35c55a9
Auto merge of #7368 - alexcrichton:canonical-urls-omg, r=ehuss
bors Sep 17, 2019
77a47b3
Switch rendering to canvas.
ehuss Sep 16, 2019
0df0595
Update docs.
ehuss Sep 17, 2019
2f79b20
Don't require the `serde` feature of `url`
alexcrichton Sep 17, 2019
6c6aa97
Remove Option from Timings.
ehuss Sep 17, 2019
aae1416
Style update.
ehuss Sep 17, 2019
e913efe
Move timings check to rmeta_required.
ehuss Sep 17, 2019
8be10f7
Set min slider to step 0.1 seconds.
ehuss Sep 17, 2019
d764fff
Auto merge of #7311 - ehuss:pipeline-timing, r=alexcrichton
bors Sep 17, 2019
cdf7f63
Auto merge of #7374 - alexcrichton:less-url-serde, r=ehuss
bors Sep 17, 2019
57c96c1
Extract Platform to a separate crate.
ehuss Sep 5, 2019
fa05eb2
Update hex requirement from 0.3 to 0.4
dependabot-preview[bot] Sep 18, 2019
375a46f
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
da-x Sep 18, 2019
8c93de6
Added ability to crosscompile doctests
Goirad Apr 26, 2019
a5235b7
moved cross-compiling doctests behind the doctest-xcompile feature flag
Goirad Jun 11, 2019
a2209fc
added tests
Goirad Sep 12, 2019
1d5d19e
Update `-Ztimings` with CPU usage information
alexcrichton Sep 17, 2019
e2ed0d0
Auto merge of #7377 - rust-lang:dependabot/cargo/hex-0.4, r=alexcrichton
bors Sep 18, 2019
eadbaec
Auto merge of #6892 - Goirad:doctest-xcompile, r=alexcrichton
bors Sep 18, 2019
079b3fb
Fix `tar` duplicate artifact in rust-lang/rust.
ehuss Sep 19, 2019
3596cb8
Auto merge of #7385 - ehuss:fix-tar-features, r=alexcrichton
bors Sep 19, 2019
ef5b89c
Remove all `CARGO_*` env vars in tests
alexcrichton Sep 19, 2019
0f751de
Remove dependency on `winapi` 0.2
alexcrichton Sep 19, 2019
d3df047
Auto merge of #7389 - alexcrichton:less-winapi-02, r=Eh2406
bors Sep 19, 2019
35853c1
change the priority in witch we build crates
Eh2406 Sep 19, 2019
d96c050
Auto merge of #7386 - alexcrichton:less-env-leak, r=ehuss
bors Sep 19, 2019
0bce400
minimize diff
Eh2406 Sep 19, 2019
384056e
less clones
alexcrichton Sep 19, 2019
b385d51
Auto merge of #7381 - alexcrichton:cpu-usage-graph, r=ehuss
bors Sep 19, 2019
b6c6f68
Auto merge of #7390 - Eh2406:better-graph, r=alexcrichton
bors Sep 19, 2019
7ab4778
Auto merge of #7375 - ehuss:extract-platform, r=alexcrichton
bors Sep 20, 2019
4b5f104
added documentation for the -Zdoctest-xcompile feature
Goirad Sep 20, 2019
2e9c47b
Fix integration tests waiting for binaries to finish.
ehuss Sep 20, 2019
023a082
Auto merge of #7394 - ehuss:fix-bin-edge, r=alexcrichton
bors Sep 20, 2019
9f7a68f
Auto merge of #7391 - Goirad:update-doctest-xcompile-feature-docs, r=…
bors Sep 20, 2019
8fadd2b
Fix -Ztimings with doc tests.
ehuss Sep 20, 2019
67ef2cb
Fix some rendering issues with -Ztimings.
ehuss Sep 20, 2019
317f0f5
Auto merge of #7395 - ehuss:fix-timings-test, r=alexcrichton
bors Sep 20, 2019
a6ecbad
-Ztimings: show max jobs/cpus
ehuss Sep 20, 2019
e6c5758
Better fix for overflowing text.
ehuss Sep 20, 2019
2fd180f
Auto merge of #7398 - ehuss:timings-jobs, r=alexcrichton
bors Sep 21, 2019
73d8d2d
Auto merge of #7397 - ehuss:fix-timing-scale, r=alexcrichton
bors Sep 21, 2019
eeab934
Update src/cargo/core/profiles.rs
da-x Sep 21, 2019
f352af9
Update tests/testsuite/profile_targets.rs
da-x Sep 21, 2019
fb75361
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
da-x Sep 21, 2019
61beda6
command_prelude: document ProfileChecking
da-x Sep 21, 2019
4c272da
profiles: use HashMap for new maps instead of BTreeMap
da-x Sep 21, 2019
c2a8ca1
cargo_clean: add profile name validation
da-x Sep 21, 2019
47007d9
cargo_compile: earlier profile name validation
da-x Sep 21, 2019
5421610
cargo clean: remove 'release' field'
da-x Sep 21, 2019
1e097c3
Update src/cargo/core/profiles.rs
da-x Sep 21, 2019
01a0c24
profiles: add feature gating on 'inherits' and validate names
da-x Sep 21, 2019
a2b7197
profiles: catch invalid 'inherits' use on root profile
da-x Sep 21, 2019
6cd8e87
tests: profile_custom - test for invalid 'inherits' use on root profile
da-x Sep 21, 2019
bf5f0b7
tests: profile_custom - add missing stdout/stderr checks
da-x Sep 21, 2019
a50be59
Rustfmt adjustments
da-x Sep 21, 2019
5eef815
Move profile name and dir-name validation and gating to Toml level
da-x Sep 21, 2019
97035e2
TomlProfile::validate_name: disallow a 'doc' dir-name
da-x Sep 21, 2019
cdd85cc
toml: add missing profile name validation
da-x Sep 21, 2019
3307176
tests: profile_custom - add name validation tests
da-x Sep 21, 2019
a08a1a3
toml: be less stringent on 'debug' profile, we already emit a warning…
da-x Sep 21, 2019
96bd455
-Ztimings: Fix more scale problems.
ehuss Sep 21, 2019
da99127
Auto merge of #7403 - ehuss:fix-timing-scale2, r=Eh2406
bors Sep 21, 2019
f703d3b
Update some unstable docs
ehuss Sep 21, 2019
4850f9b
Fix xcompile tests.
ehuss Sep 21, 2019
dba5870
Auto merge of #7408 - ehuss:fix-xcompile-tests, r=alexcrichton
bors Sep 22, 2019
7d2b578
Auto merge of #7407 - ehuss:update-unstable, r=alexcrichton
bors Sep 22, 2019
b437782
profiles: remove 'check' from stable access
da-x Sep 22, 2019
30df731
set mtime_on_use from config or ENV
Eh2406 Sep 23, 2019
e9dd306
Change build-std to use --sysroot.
ehuss Sep 23, 2019
bc5c441
Change how standard_lib tests work
alexcrichton Sep 23, 2019
53a3db0
Some more --sysroot tests.
ehuss Sep 24, 2019
8f52dc9
Update env_logger requirement from 0.6.0 to 0.7.0
dependabot-preview[bot] Sep 24, 2019
068a9b6
Auto merge of #7422 - rust-lang:dependabot/cargo/env_logger-0.7.0, r=…
bors Sep 24, 2019
1fa02e7
Fix interpretation of `--features a b` on the CLI
alexcrichton Sep 23, 2019
aa6b7e0
Auto merge of #7419 - alexcrichton:fix-features-regression, r=ehuss
bors Sep 24, 2019
0afe1b1
Remove dynamic detection of pipelining support
alexcrichton Sep 24, 2019
d0ab04a
Simplify mock rustc wrapper.
ehuss Sep 24, 2019
8e13d1a
use the newer `.get::<Option<bool>>`
Eh2406 Sep 24, 2019
581da42
Don't add sysroot lib path to dylib path for build-std.
ehuss Sep 24, 2019
3afb5d7
Add warning when mixing -Zbuild-std with --build-plan.
ehuss Sep 24, 2019
473f999
More docs
Eh2406 Sep 24, 2019
400221e
Auto merge of #7411 - Eh2406:mtime, r=alexcrichton
bors Sep 24, 2019
abe92bc
Add some comments about Layout naming and .sysroot.
ehuss Sep 24, 2019
9d86d86
Add comment for unusual placement of add_sysroot_artifact.
ehuss Sep 24, 2019
fb80b9e
Don't ever capture CPU state if timings are disabled
alexcrichton Sep 25, 2019
e8a9d3a
Call `vm_deallocate` on OSX for CPU statistics
alexcrichton Sep 25, 2019
0c812db
Fix a panic collecting cpu data on OSX
alexcrichton Sep 25, 2019
c59e1f4
Auto merge of #7421 - ehuss:build-std-sysroot, r=alexcrichton
bors Sep 25, 2019
249b31b
Auto merge of #7428 - alexcrichton:nocapture, r=ehuss
bors Sep 25, 2019
ab6fa89
Auto merge of #7429 - alexcrichton:fix-osx-cpu, r=ehuss
bors Sep 25, 2019
33d5c83
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
da-x Sep 25, 2019
56f8848
Fix zalgo formatting.
ehuss Sep 26, 2019
74383b4
Auto merge of #7441 - ehuss:fix-zalgo, r=alexcrichton
bors Sep 26, 2019
494cbd8
Auto merge of #7440 - alexcrichton:always-pipeline, r=ehuss
bors Sep 26, 2019
05d88bf
add an option to specify ssl version
Aug 15, 2019
342ec6d
remove unsafe sslv2 and sslv3 methods
Sep 4, 2019
593a02f
Refactor `Kind` to carry target name in `Target`
alexcrichton Sep 24, 2019
ef425b7
Refactor how compile targets are handled
alexcrichton Sep 25, 2019
f745ca7
Address review about doc blocks
alexcrichton Sep 26, 2019
3fce509
fix a bunch of clippy warnings
matthiaskrgr Sep 26, 2019
c2edcab
add dependencies for `pkg-config`
Sep 26, 2019
cec20e8
support http.ssl-version.min/max to specify min/max respectively
Sep 26, 2019
d2db2bd
Auto merge of #7444 - matthiaskrgr:clippy_v8, r=Eh2406
bors Sep 26, 2019
d8e62ee
Auto merge of #7425 - alexcrichton:kind-string, r=ehuss
bors Sep 26, 2019
f3c92ed
Go back to not hashing `RUSTFLAGS` in `-Cmetadata`
alexcrichton Sep 23, 2019
04804ea
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
da-x Sep 26, 2019
61fb34b
Allow a number of tests to run on stable
alexcrichton Sep 26, 2019
7606f79
Improve test output with `--quiet`
alexcrichton Sep 26, 2019
a82037b
Auto merge of #7445 - alexcrichton:more-stable, r=Eh2406
bors Sep 26, 2019
d5621be
Auto merge of #7446 - alexcrichton:quiet-output, r=Eh2406
bors Sep 26, 2019
36f01e6
Allow gitignore of Cargo.lock with explicit `include`.
ehuss Sep 26, 2019
4d094c0
Add a test to model the bug found in #7346
pyrrho Sep 17, 2019
e2010e8
Modify Context::flag_activated to return ActivateResult
pyrrho Sep 26, 2019
f7bfd9d
Don't panic on a non-fatal error
pyrrho Sep 26, 2019
d096a86
Auto merge of #7448 - ehuss:gitignore-lockfile, r=alexcrichton
bors Sep 27, 2019
fdcc73f
Auto merge of #7452 - pyrrho:bug7346/transitive_patches, r=Eh2406
bors Sep 27, 2019
8ad031b
Bump to 0.41.0, Update changelog
ehuss Sep 27, 2019
3cd05e2
Auto merge of #7454 - ehuss:version-bump, r=alexcrichton
bors Sep 27, 2019
e634ee5
named-profiles: add backward compatibility if feature is disabled
da-x Sep 27, 2019
1d43c19
move `public_dependency`s code to methods for better organization
Eh2406 May 24, 2019
2d29734
Some cleanups
Eh2406 May 26, 2019
a8a79b4
change `age` to count edges not just activations
Eh2406 May 27, 2019
4a2dcf4
change `PublicDependency` to store the `age` for each edge
Eh2406 May 28, 2019
b48616f
allow `find_candidate` to backtrack from a `PublicDependency`
Eh2406 Jun 25, 2019
0750caf
add a test to show the new performance
Eh2406 Sep 13, 2019
fad192d
named-profiles: fix backward compatibility for `rustc` with `--profil…
da-x Sep 27, 2019
0e5d378
modify to enum/struct and add test for SslVersionConfig
Sep 29, 2019
ba1f16a
fixes
Sep 29, 2019
99c034a
Auto merge of #7417 - alexcrichton:less-hashing, r=Eh2406
bors Sep 30, 2019
a4e3b81
run cargo fmt to pass the CI build
Sep 30, 2019
852cf05
add a bit more docs
Sep 30, 2019
8ae8b5e
Auto merge of #7308 - guanqun:add-ssl-version, r=alexcrichton
bors Sep 30, 2019
8b0561d
Auto merge of #6989 - da-x:custom-profile-pr-rfc, r=ehuss
bors Sep 30, 2019
d7071c2
unify the quote in Cargo.toml
Oct 1, 2019
f4d1b77
Auto merge of #7461 - guanqun:unify-quotes-in-cargo-toml, r=alexcrichton
bors Oct 1, 2019
55deda0
Removed redundant borrow
hbina Oct 1, 2019
368333c
Auto merge of #7361 - Eh2406:public_dependency-as-type_4, r=alexcrichton
bors Oct 1, 2019
589fa74
Auto merge of #7462 - hbina:redundant_borrow, r=ehuss
bors Oct 1, 2019
35bcbde
Update `curl-sys` dependency requirement
alexcrichton Oct 1, 2019
8c92e88
Disable preserving mtimes on archives
alexcrichton Oct 1, 2019
e7c5579
removing hash from output files when using MSVC
snf Sep 21, 2019
053b767
Auto merge of #7465 - alexcrichton:no-preserve, r=Eh2406
bors Oct 2, 2019
9f82a74
Auto merge of #7400 - snf:fix_7358, r=alexcrichton
bors Oct 2, 2019
7b07aa4
Auto merge of #7443 - guanqun:patch-1, r=ehuss
bors Oct 2, 2019
0a59a76
Auto merge of #7464 - alexcrichton:update-curl-sys, r=ehuss
bors Oct 2, 2019
715e5d8
Mark Emscripten's .wasm files auxiliary
tlively Oct 3, 2019
189fef1
rustfmt, even if I disagree
tlively Oct 3, 2019
c8c6839
Drop unnecessary target check
tlively Oct 4, 2019
bfc3603
Update SPDX list to 3.6
Lythenas Oct 4, 2019
0fe1638
Auto merge of #7476 - tlively:emscripten-wasm-aux, r=alexcrichton
bors Oct 4, 2019
61188d7
Fix wrong directories in PATH on Windows
alexcrichton Oct 4, 2019
6925462
Auto merge of #7482 - alexcrichton:fix-bin, r=ehuss
bors Oct 4, 2019
a429e8c
Auto merge of #7481 - Lythenas:doc-spdx-list-3.6, r=ehuss
bors Oct 4, 2019
39d5391
Added aliases to subcommand typo suggestions.
zachlute Aug 22, 2019
b28da0e
Merge branch 'suggest-alias' of https://github.com/zachlute/cargo int…
zachlute Oct 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 92 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,50 @@
# Changelog

## Cargo 1.40 (2019-12-19)
[4b105b6a...HEAD](https://github.com/rust-lang/cargo/compare/4b105b6a...HEAD)

### Added
- (Nightly only): The `mtime-on-use` feature may now be enabled via the
`unstable.mtime_on_use` config option.
[#7411](https://github.com/rust-lang/cargo/pull/7411)

### Changed
- Cargo's "platform" `cfg` parsing has been extracted into a separate crate
named `cargo-platform`.
[#7375](https://github.com/rust-lang/cargo/pull/7375)

### Fixed
- Fixed an issue where if a package had an `include` field, and `Cargo.lock`
in `.gitignore`, and a binary or example target, and the `Cargo.lock` exists
in the current project, it would fail to publish complaining the
`Cargo.lock` was dirty.
[#7448](https://github.com/rust-lang/cargo/pull/7448)
- Fixed a panic in a particular combination of `[patch]` entries.
[#7452](https://github.com/rust-lang/cargo/pull/7452)

## Cargo 1.39 (2019-11-07)
[e853aa97...HEAD](https://github.com/rust-lang/cargo/compare/e853aa97...HEAD)
[e853aa97...4b105b6a](https://github.com/rust-lang/cargo/compare/e853aa97...4b105b6a)

### Added
- Config files may now use the `.toml` filename extension.
[#7295](https://github.com/rust-lang/cargo/pull/7295)
- (Nightly only): Basic support for building the standard library directly
from Cargo has been added.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std))
[#7216](https://github.com/rust-lang/cargo/pull/7216)
- The `--workspace` flag has been added as an alias for `--all` to help avoid
confusion about the meaning of "all".
[#7241](https://github.com/rust-lang/cargo/pull/7241)
- The `publish` field has been added to `cargo metadata`.
[#7354](https://github.com/rust-lang/cargo/pull/7354)
- (Nightly only): Added `-Ztimings` feature to generate an HTML report
on the time spent on individual compilation steps. This also may output
completion steps on the console and JSON data.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#timings))
[#7311](https://github.com/rust-lang/cargo/pull/7311)
- (Nightly only): Added ability to cross-compile doctests.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile))
[#6892](https://github.com/rust-lang/cargo/pull/6892)

### Changed
- Display more information if parsing the output from `rustc` fails.
Expand All @@ -29,14 +70,62 @@
`git` value will be stripped from the uploaded crate, matching the behavior
of `path` dependencies.
[#7237](https://github.com/rust-lang/cargo/pull/7237)
- The behavior of workspace default-members has changed. The default-members
now only applies when running Cargo in the root of the workspace. Previously
it would always apply regardless of which directory Cargo is running in.
[#7270](https://github.com/rust-lang/cargo/pull/7270)
- libgit2 updated pulling in all upstream changes.
[#7275](https://github.com/rust-lang/cargo/pull/7275)
- Bump `home` dependency for locating home directories.
[#7277](https://github.com/rust-lang/cargo/pull/7277)
- zsh completions have been updated.
[#7296](https://github.com/rust-lang/cargo/pull/7296)
- SSL connect errors are now retried.
[#7318](https://github.com/rust-lang/cargo/pull/7318)
- The jobserver has been changed to acquire N tokens (instead of N-1), and
then immediately acquires the extra token. This was changed to accommodate
the `cc` crate on Windows to allow it to release its implicit token.
[#7344](https://github.com/rust-lang/cargo/pull/7344)
- The scheduling algorithm for choosing which crate to build next has been
changed. It now chooses the crate with the greatest number of transitive
crates waiting on it. Previously it used a maximum topological depth.
[#7390](https://github.com/rust-lang/cargo/pull/7390)

### Fixed
- Git dependencies with submodules with shorthand SSH URLs (like
`git@github.com/user/repo.git`) should now work.
[#7238](https://github.com/rust-lang/cargo/pull/7238)
- Handle broken symlinks when creating `.dSYM` symlinks on macOS.
[#7268](https://github.com/rust-lang/cargo/pull/7268)
- Fixed issues with multiple versions of the same crate in a `[patch]` table.
[#7303](https://github.com/rust-lang/cargo/pull/7303)
- Fixed issue with custom target `.json` files where a substring of the name
matches an unsupported crate type (like "bin").
[#7363](https://github.com/rust-lang/cargo/issues/7363)
- Fixed issues with generating documentation for proc-macro crate types.
[#7159](https://github.com/rust-lang/cargo/pull/7159)
- Fixed hang if Cargo panics within a build thread.
[#7366](https://github.com/rust-lang/cargo/pull/7366)
- Fixed rebuild detection if a `build.rs` script issues different `rerun-if`
directives between builds. Cargo was erroneously causing a rebuild after the
change.
[#7373](https://github.com/rust-lang/cargo/pull/7373)
- Properly handle canonical URLs for `[patch]` table entries, preventing
the patch from working after the first time it is used.
[#7368](https://github.com/rust-lang/cargo/pull/7368)
- Fixed an issue where integration tests were waiting for the package binary
to finish building before starting their own build. They now may build
concurrently.
[#7394](https://github.com/rust-lang/cargo/pull/7394)
- Fixed accidental change in the previous release on how `--features a b` flag
is interpreted, restoring the original behavior where this is interpreted as
`--features a` along with the argument `b` passed to the command. To pass
multiple features, use quotes around the features to pass multiple features
like `--features "a b"`, or use commas, or use multiple `--features` flags.
[#7419](https://github.com/rust-lang/cargo/pull/7419)

## Cargo 1.38 (2019-09-26)
[4c1fa54d...e853aa97](https://github.com/rust-lang/cargo/compare/4c1fa54d...e853aa97)
[4c1fa54d...23ef9a4e](https://github.com/rust-lang/cargo/compare/4c1fa54d...23ef9a4e)

### Added

Expand Down Expand Up @@ -127,7 +216,7 @@
[#7162](https://github.com/rust-lang/cargo/pull/7162)

## Cargo 1.37 (2019-08-15)
[c4fcfb72...4c1fa54d](https://github.com/rust-lang/cargo/compare/c4fcfb72...4c1fa54d)
[c4fcfb72...9edd0891](https://github.com/rust-lang/cargo/compare/c4fcfb72...9edd0891)

### Added
- Added `doctest` field to `cargo metadata` to determine if a target's
Expand Down
26 changes: 15 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo"
version = "0.40.0"
version = "0.41.0"
edition = "2018"
authors = ["Yehuda Katz <wycats@gmail.com>",
"Carl Lerche <me@carllerche.com>",
Expand All @@ -9,6 +9,7 @@ license = "MIT OR Apache-2.0"
homepage = "https://crates.io"
repository = "https://github.com/rust-lang/cargo"
documentation = "https://docs.rs/cargo"
readme = "README.md"
description = """
Cargo, a package manager for Rust.
"""
Expand All @@ -20,22 +21,24 @@ path = "src/cargo/lib.rs"
[dependencies]
atty = "0.2"
bytesize = "1.0"
crates-io = { path = "crates/crates-io", version = "0.28" }
cargo-platform = { path = "crates/cargo-platform", version = "0.1" }
crates-io = { path = "crates/crates-io", version = "0.29" }
crossbeam-utils = "0.6"
crypto-hash = "0.3.1"
curl = { version = "0.4.21", features = ['http2'] }
curl-sys = "0.4.18"
env_logger = "0.6.0"
curl = { version = "0.4.23", features = ["http2"] }
curl-sys = "0.4.22"
env_logger = "0.7.0"
pretty_env_logger = { version = "0.3", optional = true }
failure = "0.1.5"
filetime = "0.2"
flate2 = { version = "1.0.3", features = ['zlib'] }
flate2 = { version = "1.0.3", features = ["zlib"] }
fs2 = "0.4"
git2 = "0.10.0"
git2-curl = "0.11.0"
glob = "0.3.0"
hex = "0.3"
hex = "0.4"
home = "0.5"
humantime = "1.2.0"
ignore = "0.4.7"
lazy_static = "1.2.0"
jobserver = "0.1.13"
Expand All @@ -51,7 +54,7 @@ remove_dir_all = "0.5.2"
rustfix = "0.4.6"
same-file = "1"
semver = { version = "0.9.0", features = ["serde"] }
serde = { version = "1.0.82", features = ['derive'] }
serde = { version = "1.0.82", features = ["derive"] }
serde_ignored = "0.1.0"
serde_json = { version = "1.0.30", features = ["raw_value"] }
shell-escape = "0.1.4"
Expand All @@ -60,7 +63,7 @@ tar = { version = "0.4.18", default-features = false }
tempfile = "3.0"
termcolor = "1.0"
toml = "0.5.3"
url = { version = "2.0", features = ['serde'] }
url = "2.0"
walkdir = "2.2"
clap = "2.31.2"
unicode-width = "0.1.5"
Expand Down Expand Up @@ -102,6 +105,7 @@ features = [

[dev-dependencies]
cargo-test-macro = { path = "crates/cargo-test-macro", version = "0.1.0" }
cargo-test-support = { path = "crates/cargo-test-support", version = "0.1.0" }

[[bin]]
name = "cargo"
Expand All @@ -110,5 +114,5 @@ doc = false

[features]
deny-warnings = []
vendored-openssl = ['openssl/vendored']
pretty-env-logger = ['pretty_env_logger']
vendored-openssl = ["openssl/vendored"]
pretty-env-logger = ["pretty_env_logger"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Learn more at https://doc.rust-lang.org/cargo/

## Code Status

[![Build Status](https://dev.azure.com/rust-lang/cargo/_apis/build/status/rust-lang.cargo?branchName=master)](https://dev.azure.com/rust-lang/cargo/_build/latest?definitionId=18&branchName=master)
[![Build Status](https://dev.azure.com/rust-lang/cargo/_apis/build/status/rust-lang.cargo?branchName=auto-cargo)](https://dev.azure.com/rust-lang/cargo/_build?definitionId=18)

Code documentation: https://docs.rs/cargo/

Expand All @@ -22,6 +22,7 @@ Cargo requires the following tools and packages to build:
* `git`
* `python`
* `curl` (on Unix)
* `pkg-config` (on Unix, used to figure out the `libssl` headers/libraries)
* OpenSSL headers (only for Unix, this is the `libssl-dev` package on ubuntu)
* `cargo` and `rustc`

Expand Down
20 changes: 19 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
x86_64-msvc:
TOOLCHAIN: stable-x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc

- job: rustfmt
pool:
vmImage: ubuntu-16.04
Expand All @@ -54,10 +55,14 @@ jobs:
displayName: "Check rustfmt (cargo)"
- bash: cd crates/cargo-test-macro && cargo fmt --all -- --check
displayName: "Check rustfmt (cargo-test-macro)"
- bash: cd crates/cargo-test-support && cargo fmt --all -- --check
displayName: "Check rustfmt (cargo-test-support)"
- bash: cd crates/crates-io && cargo fmt --all -- --check
displayName: "Check rustfmt (crates-io)"
- bash: cd crates/resolver-tests && cargo fmt --all -- --check
displayName: "Check rustfmt (resolver-tests)"
- bash: cd crates/cargo-platform && cargo fmt --all -- --check
displayName: "Check rustfmt (cargo-platform)"
variables:
TOOLCHAIN: stable

Expand All @@ -71,6 +76,20 @@ jobs:
variables:
TOOLCHAIN: stable

- job: build_std
pool:
vmImage: ubuntu-16.04
steps:
- template: ci/azure-install-rust.yml
- bash: rustup component add rust-src
displayName: "Install rust-src"
- bash: cargo build
- bash: cargo test --test build-std
displayName: "tests"
variables:
TOOLCHAIN: nightly
CARGO_RUN_BUILD_STD_TESTS: 1

- job: docs
pool:
vmImage: ubuntu-16.04
Expand All @@ -88,4 +107,3 @@ jobs:
displayName: "Build mdbook documentation"
variables:
TOOLCHAIN: stable

6 changes: 6 additions & 0 deletions ci/azure-test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ steps:
# fix the link errors.
- bash: cargo test --features 'deny-warnings curl/force-system-lib-on-osx'
displayName: "cargo test"

- bash: cargo test -p cargo-test-support
displayName: "cargo test -p cargo-test-support"

- bash: cargo test -p cargo-platform
displayName: "cargo test -p cargo-platform"
13 changes: 13 additions & 0 deletions crates/cargo-platform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "cargo-platform"
version = "0.1.0"
authors = ["The Cargo Project Developers"]
edition = "2018"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/rust-lang/cargo"
repository = "https://github.com/rust-lang/cargo"
documentation = "https://docs.rs/cargo-platform"
description = "Cargo's representation of a target platform."

[dependencies]
serde = { version = "1.0.82", features = ['derive'] }
55 changes: 55 additions & 0 deletions crates/cargo-platform/examples/matches.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//! This example demonstrates how to filter a Platform based on the current
//! host target.

use cargo_platform::{Cfg, Platform};
use std::process::Command;
use std::str::FromStr;

static EXAMPLES: &[&str] = &[
"cfg(windows)",
"cfg(unix)",
"cfg(target_os=\"macos\")",
"cfg(target_os=\"linux\")",
"cfg(any(target_arch=\"x86\", target_arch=\"x86_64\"))",
];

fn main() {
let target = get_target();
let cfgs = get_cfgs();
println!("host target={} cfgs:", target);
for cfg in &cfgs {
println!(" {}", cfg);
}
let mut examples: Vec<&str> = EXAMPLES.iter().copied().collect();
examples.push(target.as_str());
for example in examples {
let p = Platform::from_str(example).unwrap();
println!("{:?} matches: {:?}", example, p.matches(&target, &cfgs));
}
}

fn get_target() -> String {
let output = Command::new("rustc")
.arg("-Vv")
.output()
.expect("rustc failed to run");
let stdout = String::from_utf8(output.stdout).unwrap();
for line in stdout.lines() {
if line.starts_with("host: ") {
return String::from(&line[6..]);
}
}
panic!("Failed to find host: {}", stdout);
}

fn get_cfgs() -> Vec<Cfg> {
let output = Command::new("rustc")
.arg("--print=cfg")
.output()
.expect("rustc failed to run");
let stdout = String::from_utf8(output.stdout).unwrap();
stdout
.lines()
.map(|line| Cfg::from_str(line).unwrap())
.collect()
}
Loading