Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/cargo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.71.0
Choose a base ref
...
head repository: rust-lang/cargo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.72.0
Choose a head ref

Commits on Mar 23, 2023

  1. Update cargo-yank.md

    tustvold authored and weihanglo committed Mar 23, 2023
    Copy the full SHA
    33dfd3d View commit details
  2. Copy the full SHA
    1ccbdae View commit details
  3. Copy the full SHA
    6b032af View commit details
  4. doc(yank): when to yank

    weihanglo committed Mar 23, 2023
    Copy the full SHA
    cf53de8 View commit details
  5. Copy the full SHA
    e908f6a View commit details

Commits on Mar 24, 2023

  1. Copy the full SHA
    2aea4d0 View commit details

Commits on Apr 11, 2023

  1. Allow named debuginfo options in Cargo.toml

    Rustc supports these since rust-lang/rust#109808. It's technically
    possible to set a named debuginfo level through `RUSTFLAGS`, but in
    practice cargo always passes its own opinion of what the debuginfo level
    is, so allow it to be configured through cargo too.
    jyn514 committed Apr 11, 2023
    Copy the full SHA
    d861dcf View commit details
  2. Copy the full SHA
    3dbb474 View commit details

Commits on Apr 12, 2023

  1. chore: create a [workspace] for cargo

    Some dependencies in `resolver-tests` do not have any license
    information. This prevent it from being a member when integrating in
    rust-lang/rust. Will figure it out after.
    
    Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
    Co-authored-by: Eric Huss <eric@huss.org>
    3 people committed Apr 12, 2023
    Copy the full SHA
    ecfe927 View commit details
  2. chore: new Cargo feature all-static

    This is primarily for the release process of rust-lang/rust.
    
    Note that in rustc-worksace-hack[1] it enable http2 via libnghttp2,
    cargo probably needs to enable it to compile in rust-lang/rust.
    
    [1]: https://github.com/rust-lang/rust/blob/992d154f3a84cc8abcefcf6e6cf3698e4821b506/src/tools/rustc-workspace-hack/Cargo.toml#L77
    
    Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
    Co-authored-by: Eric Huss <eric@huss.org>
    3 people committed Apr 12, 2023
    Copy the full SHA
    796853c View commit details
  3. ci: use -p to specify which package to build an test

    Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
    Co-authored-by: Eric Huss <eric@huss.org>
    3 people committed Apr 12, 2023
    Copy the full SHA
    36f00f4 View commit details
  4. chore: track Cargo.lock

    Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
    Co-authored-by: Eric Huss <eric@huss.org>
    3 people committed Apr 12, 2023
    Copy the full SHA
    0289f2b View commit details
  5. chore: remove dependency rustc-workspace-hack

    Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
    Co-authored-by: Eric Huss <eric@huss.org>
    3 people committed Apr 12, 2023
    Copy the full SHA
    aaca5a0 View commit details
  6. Address review comments

    - Update the documentation and doc-comments
    - Improve the error message for parsing Cargo.toml
    jyn514 committed Apr 12, 2023
    Copy the full SHA
    8a9db7a View commit details
  7. Copy the full SHA
    f026409 View commit details
  8. Copy the full SHA
    ccd77a3 View commit details

Commits on Apr 14, 2023

  1. Correct the bug report for cargo clippy --fix

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 14, 2023
    Copy the full SHA
    3a880a2 View commit details
  2. Add broken_clippy_fixes_backed_out

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 14, 2023
    Copy the full SHA
    47f6e2d View commit details
  3. Add rustc_shim_for_cargo_fix and wrapped_clippy_driver to reuse code

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 14, 2023
    Copy the full SHA
    08169fd View commit details
  4. Auto merge of #11882 - hi-rustin:rustin-patch-clippy-fix, r=weihanglo

    Correct the bug report for `cargo clippy --fix`
    bors committed Apr 14, 2023
    Copy the full SHA
    b0742b2 View commit details
  5. Auto merge of #11963 - jhpratt:master, r=epage

    Use restricted Damerau-Levenshtein algorithm
    
    This uses the same implementation as the one used in rustc, so review should be simple. As with rust-lang/rust#108200, the module and function names have been changed to be implementation-agnostic.
    
    [Reference](https://github.com/rust-lang/rust/blob/13d1802b8882452f7d9d1bf514a096c5c8a22303/compiler/rustc_span/src/edit_distance.rs) for rustc's current implementation.
    bors committed Apr 14, 2023
    Copy the full SHA
    d2e7cfb View commit details
  6. Copy the full SHA
    6fa758e View commit details
  7. Auto merge of #11976 - ehuss:fix-not_found_permutations, r=epage

    Fix flaky not_found_permutations test.
    
    This fixes the `registry::not_found_permutations` test which would randomly fail since the order of http requests was not deterministic. The resolver can issue queries in parallel which can process requests out-of-order.
    
    Fixes #11975
    bors committed Apr 14, 2023
    Copy the full SHA
    7fb89f0 View commit details

Commits on Apr 15, 2023

  1. Auto merge of #11851 - weihanglo:make-cargo-a-workspace, r=ehuss

    Make cargo a workspace
    
    ### What does this PR try to resolve?
    
    The first step of making cargo a workspace.
    
    Benefits:
    
    * Dogfooding ourselves.
    * Unblock #11831: It got stuck because the new version of tempfile using `windows-sys` but some issues haven't yet be solved in rust-lang/rust.
    * Make `cargo xtask` or similar developer workflow possible (e.g., #11717)
    * Having our own Cargo.lock, so our CI can cover the exact binary going to ship. Also free Cargo from CI breaks due to dependency patch releases.
    * Probably more? Please add them by yourself.
    
    ### How should we test and review this PR?
    
    Please review it commit by commit. A companion PR is here rust-lang/rust#109133, and should be reviewed together.
    
    ### Unresolved issues
    
    To limit the scope of this pull request, the following issues are intentionally left unresolved. They will be addressed right after this pull request gets merged.
    
    - [x] Make `benches/capture` and `benches/capture` workspace members. (Addressed with 2cf9718)
    - [x] Make `crates/resolver-tests` a workspace member. (Addressed with #11886)
    - [ ] ~~Fix clippy warnings and re-enable clippy check in CI for all workspace members.~~
      - Blocked on rust-lang/rfcs#3389 so we can more easily propagate our clippy settings
    - [ ] Fix rustdoc warnings and re-enable rustdoc check in CI for all workspace members.
    - [ ] Fix `linkchecker.sh` warnings in CI (#11851 (comment))
    - [ ] Leverage workspace flag `--workspace` when running `cargo build` or `cargo test`, instead of using flag `-p`.
    - [ ] Leverage glob syntax when probing members in `[workspace]` in Cargo.toml (i.e., `crates/*`).
    
    ### Additional information
    
    This depends on prior works from `@Muscraft` and `@ehuss.` Credits to them!
    bors committed Apr 15, 2023
    Copy the full SHA
    39116cc View commit details

Commits on Apr 16, 2023

  1. Copy the full SHA
    a0bb59c View commit details
  2. Auto merge of #11979 - weihanglo:openssl-for-non-windows, r=ehuss

    chore: use openssl only on non-Windows platforms
    
    On Windows, the system-provided Schannel will be used instead.
    
    See
    
    - rust-lang/rust#109133 (comment)
    - https://github.com/rust-lang/cargo/blob/39116ccc9b420a883a98a960f0597f9cf87414b8/README.md?plain=1#L38-L49
    bors committed Apr 16, 2023
    Copy the full SHA
    d0a4cbc View commit details

Commits on Apr 17, 2023

  1. Copy the full SHA
    6d4677d View commit details
  2. Auto merge of #11982 - ehuss:changelog-clarification, r=weihanglo

    Clarify some 1.69 changelog entries.
    
    These are some updates that were added in the rust-lang/rust release notes to try to clarify some of these entries.
    bors committed Apr 17, 2023
    Copy the full SHA
    5861176 View commit details
  3. Copy the full SHA
    e080273 View commit details

Commits on Apr 18, 2023

  1. Auto merge of #11981 - Systemcluster:rustflags-comparable, r=epage

    Recompile on profile rustflags changes
    
    Adding `rustflags` to the comparable profile properties.
    
    Follow-up to #11121 without the additional changes.
    
    Closes #11120
    bors committed Apr 18, 2023
    Copy the full SHA
    60bf28f View commit details
  2. Copy the full SHA
    feb6d88 View commit details
  3. Copy the full SHA
    2e3dde1 View commit details
  4. Copy the full SHA
    72fee80 View commit details
  5. Copy the full SHA
    b533f89 View commit details
  6. Copy the full SHA
    943edea View commit details
  7. Copy the full SHA
    6dc17a2 View commit details
  8. Prevent false positives when checking for changes in src/doc.

    When changing cargo versions from stable to nightly, it's possible
    that the Cargo.lock format changes ever so slightly. This leaves
    the `Cargo.lock` file changed which is picked up by `git status`.
    
    This patch adjusts the `git status` invocation to limit itself
    to the CWD.
    Byron authored and weihanglo committed Apr 18, 2023
    Copy the full SHA
    7715010 View commit details
  9. Auto merge of #11994 - weihanglo:lockfile, r=epage

    ci: check if Cargo.lock is up-to-date
    bors committed Apr 18, 2023
    Copy the full SHA
    7a7f965 View commit details
  10. Add S-triage auto-label.

    ehuss committed Apr 18, 2023
    Copy the full SHA
    15dd1f4 View commit details
  11. Auto merge of #11995 - ehuss:s-triage-label, r=weihanglo

    Add S-triage auto-label.
    
    This automatically adds the https://github.com/rust-lang/cargo/labels/S-triage label to new issues using the template.
    
    This is intended to help make it clear that issues have not been triaged, and need some decision on the next state they should go to.
    
    cc #11788
    bors committed Apr 18, 2023
    Copy the full SHA
    d3a1bbd View commit details
  12. Auto merge of #11993 - epage:member, r=weihanglo

    fix: Allow win/mac credential managers to build on all platforms
    
    ### What does this PR try to resolve?
    
    This is a step towards #11987 by making two of the platform-specific credential managers build on all platforms using `cfg`.
    
    I haven't done `gnome-secret` yet because that is more of an oddball in that it isn't just platforms-specific but dependent on what is installed on that platform.
    
    ### How should we test and review this PR?
    
    ```console
    $ cargo check --workspace --exclude cargo-credential-gnome-secret
    ```
    
    Note that the commits are broken down so you can view the movements of code separate from the functionality being changed.
    
    ### Additional information
    
    Other information you want to mention in this PR, such as prior arts,
    future extensions, an unresolved problem, or a TODO list.
    -->
    <!-- homu-ignore:end -->
    bors committed Apr 18, 2023
    Copy the full SHA
    9d506e5 View commit details

Commits on Apr 19, 2023

  1. chore: Use globs for workspace members

    This is a short-term option until we can have a better solution for
    globbing.  This does not update `benches/` to support which has a README
    in there preventing globbing; this seems low-churn enough not to find a
    solution for it.
    
    On the next sync-up with rust-lang/rust, we'll need to update https://github.com/rust-lang/rust/blob/4e463012580415a932ae4fc255aff45982c70369/src/bootstrap/tool.rs#L588-L603
    
    Fixes #11988
    epage committed Apr 19, 2023
    Copy the full SHA
    895435f View commit details
  2. Better error message when getting an empty dep table

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 19, 2023
    Copy the full SHA
    7399c27 View commit details
  3. Update linux-raw-sys to 0.3.2

    Adds support for LoongArch.
    heiher committed Apr 19, 2023
    Copy the full SHA
    d54cc30 View commit details
  4. Auto merge of #11996 - epage:move, r=weihanglo

    chore: Use globs for workspace members
    
    This is a short-term option until we can have a better solution for globbing.  This does not update `benches/` to support which has a README in there preventing globbing; this seems low-churn enough not to find a solution for it.
    
    On the next sync-up with rust-lang/rust, we'll need to update https://github.com/rust-lang/rust/blob/4e463012580415a932ae4fc255aff45982c70369/src/bootstrap/tool.rs#L588-L603
    
    Fixes #11988
    bors committed Apr 19, 2023
    Copy the full SHA
    95535a9 View commit details
  5. Auto merge of #11998 - loongarch-rs:master, r=weihanglo

    Update linux-raw-sys to 0.3.2
    
    Adds support for LoongArch.
    bors committed Apr 19, 2023
    Copy the full SHA
    a3672a3 View commit details

Commits on Apr 20, 2023

  1. Add test for empty dep table error

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 20, 2023
    Copy the full SHA
    4d401bd View commit details
  2. add more debuginfo tests

    jyn514 committed Apr 20, 2023
    Copy the full SHA
    a982bcc View commit details
  3. Update error message to not start with capital letters

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 20, 2023
    Copy the full SHA
    e0276ca View commit details
  4. Improve error message for empty dep

    Signed-off-by: hi-rustin <rustin.liu@gmail.com>
    Rustin170506 committed Apr 20, 2023
    Copy the full SHA
    af0cd9f View commit details
Showing with 11,713 additions and 1,947 deletions.
  1. +4 −0 .cargo/config.toml
  2. +1 −1 .github/ISSUE_TEMPLATE/bug_report.yml
  3. +1 −1 .github/ISSUE_TEMPLATE/feature_request.yml
  4. +75 −44 .github/workflows/main.yml
  5. +0 −1 .gitignore
  6. +150 −9 CHANGELOG.md
  7. +3,755 −0 Cargo.lock
  8. +145 −50 Cargo.toml
  9. +7 −8 benches/benchsuite/Cargo.toml
  10. +5 −4 benches/capture/Cargo.toml
  11. +8 −7 ci/validate-man.sh
  12. +61 −0 ci/validate-version-bump.sh
  13. +2 −2 crates/cargo-platform/Cargo.toml
  14. +1 −0 crates/cargo-test-macro/Cargo.toml
  15. +21 −20 crates/cargo-test-support/Cargo.toml
  16. +5 −1 crates/cargo-test-support/src/install.rs
  17. +29 −4 crates/cargo-test-support/src/lib.rs
  18. +4 −0 crates/cargo-test-support/src/publish.rs
  19. +10 −5 crates/cargo-test-support/src/registry.rs
  20. +14 −14 crates/cargo-util/Cargo.toml
  21. +7 −7 crates/crates-io/Cargo.toml
  22. +2 −1 crates/crates-io/lib.rs
  23. +0 −50 crates/credential/cargo-credential-macos-keychain/src/main.rs
  24. +0 −111 crates/credential/cargo-credential-wincred/src/main.rs
  25. +9 −2 crates/home/CHANGELOG.md
  26. +2 −2 crates/home/Cargo.toml
  27. +1 −1 crates/home/src/env.rs
  28. +20 −22 crates/home/src/lib.rs
  29. +0 −459 crates/mdman/Cargo.lock
  30. +9 −8 crates/mdman/Cargo.toml
  31. +0 −7 crates/mdman/build-man.sh
  32. +1 −1 crates/mdman/doc/mdman.md
  33. +4 −4 crates/mdman/doc/out/mdman.1
  34. +3 −3 crates/mdman/doc/out/mdman.md
  35. +4 −4 crates/mdman/doc/out/mdman.txt
  36. +8 −7 crates/resolver-tests/Cargo.toml
  37. +4 −0 crates/resolver-tests/src/lib.rs
  38. +3 −2 {src/doc → crates}/semver-check/Cargo.toml
  39. +7 −3 {src/doc → crates}/semver-check/src/main.rs
  40. +7 −0 crates/xtask-build-man/Cargo.toml
  41. +108 −0 crates/xtask-build-man/src/main.rs
  42. +8 −0 crates/xtask-stale-label/Cargo.toml
  43. +91 −0 crates/xtask-stale-label/src/main.rs
  44. +12 −0 crates/xtask-unpublished/Cargo.toml
  45. +15 −0 crates/xtask-unpublished/src/main.rs
  46. +200 −0 crates/xtask-unpublished/src/xtask.rs
  47. 0 {crates → }/credential/README.md
  48. +3 −3 {crates → }/credential/cargo-credential-1password/Cargo.toml
  49. 0 {crates → }/credential/cargo-credential-1password/src/main.rs
  50. +2 −2 {crates → }/credential/cargo-credential-gnome-secret/Cargo.toml
  51. 0 {crates → }/credential/cargo-credential-gnome-secret/build.rs
  52. 0 {crates → }/credential/cargo-credential-gnome-secret/src/main.rs
  53. +4 −2 {crates → }/credential/cargo-credential-macos-keychain/Cargo.toml
  54. +58 −0 credential/cargo-credential-macos-keychain/src/main.rs
  55. +5 −2 {crates → }/credential/cargo-credential-wincred/Cargo.toml
  56. +122 −0 credential/cargo-credential-wincred/src/main.rs
  57. 0 {crates → }/credential/cargo-credential/Cargo.toml
  58. +1 −1 {crates → }/credential/cargo-credential/README.md
  59. +20 −0 {crates → }/credential/cargo-credential/src/lib.rs
  60. +3 −0 src/bin/cargo/cli.rs
  61. +16 −0 src/bin/cargo/commands/add.rs
  62. +0 −4 src/bin/cargo/main.rs
  63. +3 −1 src/cargo/core/compiler/build_context/target_info.rs
  64. +3 −12 src/cargo/core/compiler/compilation.rs
  65. +86 −15 src/cargo/core/compiler/custom_build.rs
  66. +4 −0 src/cargo/core/compiler/fingerprint/mod.rs
  67. +14 −10 src/cargo/core/compiler/job_queue/mod.rs
  68. +33 −5 src/cargo/core/compiler/mod.rs
  69. +7 −7 src/cargo/core/compiler/standard_lib.rs
  70. +1 −1 src/cargo/core/compiler/unit_dependencies.rs
  71. +16 −15 src/cargo/core/features.rs
  72. +9 −0 src/cargo/core/manifest.rs
  73. +3 −3 src/cargo/core/package_id_spec.rs
  74. +27 −27 src/cargo/core/profiles.rs
  75. +6 −1 src/cargo/core/resolver/dep_cache.rs
  76. +2 −3 src/cargo/core/resolver/errors.rs
  77. +9 −1 src/cargo/core/resolver/features.rs
  78. +9 −1 src/cargo/core/resolver/version_prefs.rs
  79. +1 −1 src/cargo/core/shell.rs
  80. +71 −20 src/cargo/core/source/mod.rs
  81. +93 −71 src/cargo/core/source/source_id.rs
  82. +7 −0 src/cargo/core/summary.rs
  83. +12 −11 src/cargo/core/workspace.rs
  84. +2 −2 src/cargo/lib.rs
  85. +115 −15 src/cargo/ops/cargo_add/mod.rs
  86. +2 −2 src/cargo/ops/cargo_clean.rs
  87. +16 −9 src/cargo/ops/cargo_install.rs
  88. +91 −50 src/cargo/ops/cargo_new.rs
  89. +2 −0 src/cargo/ops/cargo_output_metadata.rs
  90. +27 −19 src/cargo/ops/cargo_package.rs
  91. +20 −43 src/cargo/ops/registry.rs
  92. +4 −0 src/cargo/ops/tree/graph.rs
  93. +0 −18 src/cargo/ops/tree/mod.rs
  94. +13 −3 src/cargo/sources/config.rs
  95. +47 −0 src/cargo/sources/directory.rs
  96. +41 −0 src/cargo/sources/git/mod.rs
  97. +44 −13 src/cargo/sources/git/oxide.rs
  98. +29 −7 src/cargo/sources/git/source.rs
  99. +78 −21 src/cargo/sources/git/utils.rs
  100. +21 −0 src/cargo/sources/mod.rs
  101. +41 −5 src/cargo/sources/path.rs
  102. +2 −86 src/cargo/sources/registry/index.rs
  103. +33 −9 src/cargo/sources/registry/mod.rs
  104. +9 −2 src/cargo/sources/registry/remote.rs
  105. +11 −0 src/cargo/sources/replaced.rs
  106. +4 −4 src/cargo/util/command_prelude.rs
  107. +174 −11 src/cargo/util/config/mod.rs
  108. +51 −13 src/cargo/util/diagnostic_server.rs
  109. +143 −0 src/cargo/util/edit_distance.rs
  110. +0 −93 src/cargo/util/lev_distance.rs
  111. +9 −1 src/cargo/util/machine_message.rs
  112. +2 −2 src/cargo/util/mod.rs
  113. +1 −0 src/cargo/util/network/mod.rs
  114. +42 −0 src/cargo/util/network/proxy.rs
  115. +317 −10 src/cargo/util/toml/mod.rs
  116. +55 −45 src/cargo/util/toml_mut/dependency.rs
  117. +7 −7 src/doc/README.md
  118. +0 −31 src/doc/build-man.sh
  119. +1 −0 src/doc/contrib/src/SUMMARY.md
  120. +1 −1 src/doc/contrib/src/implementation/console.md
  121. +1 −1 src/doc/contrib/src/implementation/filesystem.md
  122. +4 −3 src/doc/contrib/src/index.md
  123. +170 −39 src/doc/contrib/src/issues.md
  124. +31 −39 src/doc/contrib/src/process/index.md
  125. +21 −1 src/doc/contrib/src/process/unstable.md
  126. +157 −0 src/doc/contrib/src/team.md
  127. +9 −0 src/doc/man/cargo-add.md
  128. +9 −3 src/doc/man/cargo-bench.md
  129. +1 −1 src/doc/man/cargo-install.md
  130. +6 −0 src/doc/man/cargo-metadata.md
  131. +9 −2 src/doc/man/cargo-test.md
  132. +53 −3 src/doc/man/cargo-yank.md
  133. +9 −0 src/doc/man/generated_txt/cargo-add.txt
  134. +11 −4 src/doc/man/generated_txt/cargo-bench.txt
  135. +2 −2 src/doc/man/generated_txt/cargo-install.txt
  136. +6 −0 src/doc/man/generated_txt/cargo-metadata.txt
  137. +13 −4 src/doc/man/generated_txt/cargo-test.txt
  138. +59 −3 src/doc/man/generated_txt/cargo-yank.txt
  139. +8 −0 src/doc/src/commands/cargo-add.md
  140. +9 −3 src/doc/src/commands/cargo-bench.md
  141. +1 −1 src/doc/src/commands/cargo-install.md
  142. +6 −0 src/doc/src/commands/cargo-metadata.md
  143. +9 −2 src/doc/src/commands/cargo-test.md
  144. +53 −3 src/doc/src/commands/cargo-yank.md
  145. +2 −2 src/doc/src/faq.md
  146. +4 −1 src/doc/src/reference/manifest.md
  147. +9 −3 src/doc/src/reference/profiles.md
  148. +4 −4 src/doc/src/reference/publishing.md
  149. +5 −0 src/doc/src/reference/registry-index.md
  150. +6 −1 src/doc/src/reference/registry-web-api.md
  151. +133 −3 src/doc/src/reference/semver.md
  152. +231 −9 src/doc/src/reference/unstable.md
  153. +10 −0 src/etc/man/cargo-add.1
  154. +9 −3 src/etc/man/cargo-bench.1
  155. +1 −1 src/etc/man/cargo-install.1
  156. +6 −0 src/etc/man/cargo-metadata.1
  157. +9 −2 src/etc/man/cargo-test.1
  158. +82 −3 src/etc/man/cargo-yank.1
  159. +12 −0 tests/testsuite/alt_registry.rs
  160. +1 −0 tests/testsuite/artifact_dep.rs
  161. +35 −3 tests/testsuite/bad_config.rs
  162. +1 −1 tests/testsuite/build.rs
  163. +8 −0 tests/testsuite/cargo_add/empty_dep_table/in/Cargo.toml
  164. +1 −0 tests/testsuite/cargo_add/empty_dep_table/in/src/lib.rs
  165. +25 −0 tests/testsuite/cargo_add/empty_dep_table/mod.rs
  166. +8 −0 tests/testsuite/cargo_add/empty_dep_table/out/Cargo.toml
  167. +1 −0 tests/testsuite/cargo_add/empty_dep_table/stderr.log
  168. 0 tests/testsuite/cargo_add/empty_dep_table/stdout.log
  169. +5 −0 tests/testsuite/cargo_add/mod.rs
  170. +6 −0 tests/testsuite/cargo_add/rust_version_ignore/in/Cargo.toml
  171. 0 tests/testsuite/cargo_add/rust_version_ignore/in/src/lib.rs
  172. +36 −0 tests/testsuite/cargo_add/rust_version_ignore/mod.rs
  173. +9 −0 tests/testsuite/cargo_add/rust_version_ignore/out/Cargo.toml
  174. 0 tests/testsuite/cargo_add/rust_version_ignore/out/src/lib.rs
  175. +2 −0 tests/testsuite/cargo_add/rust_version_ignore/stderr.log
  176. 0 tests/testsuite/cargo_add/rust_version_ignore/stdout.log
  177. +6 −0 tests/testsuite/cargo_add/rust_version_incompatible/in/Cargo.toml
  178. 0 tests/testsuite/cargo_add/rust_version_incompatible/in/src/lib.rs
  179. +38 −0 tests/testsuite/cargo_add/rust_version_incompatible/mod.rs
  180. +6 −0 tests/testsuite/cargo_add/rust_version_incompatible/out/Cargo.toml
  181. 0 tests/testsuite/cargo_add/rust_version_incompatible/out/src/lib.rs
  182. +4 −0 tests/testsuite/cargo_add/rust_version_incompatible/stderr.log
  183. 0 tests/testsuite/cargo_add/rust_version_incompatible/stdout.log
  184. +6 −0 tests/testsuite/cargo_add/rust_version_latest/in/Cargo.toml
  185. 0 tests/testsuite/cargo_add/rust_version_latest/in/src/lib.rs
  186. +35 −0 tests/testsuite/cargo_add/rust_version_latest/mod.rs
  187. +9 −0 tests/testsuite/cargo_add/rust_version_latest/out/Cargo.toml
  188. 0 tests/testsuite/cargo_add/rust_version_latest/out/src/lib.rs
  189. +2 −0 tests/testsuite/cargo_add/rust_version_latest/stderr.log
  190. 0 tests/testsuite/cargo_add/rust_version_latest/stdout.log
  191. +6 −0 tests/testsuite/cargo_add/rust_version_older/in/Cargo.toml
  192. 0 tests/testsuite/cargo_add/rust_version_older/in/src/lib.rs
  193. +35 −0 tests/testsuite/cargo_add/rust_version_older/mod.rs
  194. +9 −0 tests/testsuite/cargo_add/rust_version_older/out/Cargo.toml
  195. 0 tests/testsuite/cargo_add/rust_version_older/out/src/lib.rs
  196. +3 −0 tests/testsuite/cargo_add/rust_version_older/stderr.log
  197. 0 tests/testsuite/cargo_add/rust_version_older/stdout.log
  198. +80 −20 tests/testsuite/cargo_env_config.rs
  199. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table.in/Cargo.toml
  200. 0 tests/testsuite/cargo_new/inherit_workspace_package_table.in/README.md
  201. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table.in/src/lib.rs
  202. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/in
  203. +22 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/mod.rs
  204. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/out/Cargo.toml
  205. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/out/crates/foo/Cargo.toml
  206. +3 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/out/crates/foo/src/main.rs
  207. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/out/src/lib.rs
  208. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table/stderr.log
  209. 0 tests/testsuite/cargo_new/inherit_workspace_package_table/stdout.log
  210. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/in
  211. +22 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/mod.rs
  212. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/out/Cargo.toml
  213. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/out/crates/foo/Cargo.toml
  214. +3 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/out/crates/foo/src/main.rs
  215. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/out/src/lib.rs
  216. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/stderr.log
  217. 0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_edition/stdout.log
  218. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/in
  219. +22 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/mod.rs
  220. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/out/Cargo.toml
  221. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/out/crates/foo/Cargo.toml
  222. +3 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/out/crates/foo/src/main.rs
  223. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/out/src/lib.rs
  224. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/stderr.log
  225. 0 tests/testsuite/cargo_new/inherit_workspace_package_table_with_registry/stdout.log
  226. +20 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/in/Cargo.toml
  227. 0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/in/README.md
  228. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/in/src/lib.rs
  229. +22 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/mod.rs
  230. +20 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/out/Cargo.toml
  231. +21 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/out/crates/foo/Cargo.toml
  232. +3 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/out/crates/foo/src/main.rs
  233. +14 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/out/src/lib.rs
  234. +1 −0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/stderr.log
  235. 0 tests/testsuite/cargo_new/inherit_workspace_package_table_without_version/stdout.log
  236. +5 −0 tests/testsuite/cargo_new/mod.rs
  237. +15 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/in/Cargo.toml
  238. 0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/in/README.md
  239. +14 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/in/src/lib.rs
  240. +22 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/mod.rs
  241. +15 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/out/Cargo.toml
  242. +21 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/out/foo/Cargo.toml
  243. +3 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/out/foo/src/main.rs
  244. +14 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/out/src/lib.rs
  245. +9 −0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/stderr.log
  246. 0 tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_memebers/stdout.log
  247. +2 −24 tests/testsuite/check.rs
  248. +62 −5 tests/testsuite/config.rs
  249. +81 −0 tests/testsuite/features_namespaced.rs
  250. +54 −7 tests/testsuite/fix.rs
  251. +4 −85 tests/testsuite/git.rs
  252. +831 −0 tests/testsuite/git_shallow.rs
  253. +1 −1 tests/testsuite/https.rs
  254. +11 −2 tests/testsuite/inheritable_workspace_fields.rs
  255. +21 −0 tests/testsuite/init/inherit_workspace_package_table/in/Cargo.toml
  256. 0 tests/testsuite/init/inherit_workspace_package_table/in/README.md
  257. +3 −0 tests/testsuite/init/inherit_workspace_package_table/in/crates/foo/src/main.rs
  258. +14 −0 tests/testsuite/init/inherit_workspace_package_table/in/src/lib.rs
  259. +22 −0 tests/testsuite/init/inherit_workspace_package_table/mod.rs
  260. +21 −0 tests/testsuite/init/inherit_workspace_package_table/out/Cargo.toml
  261. +21 −0 tests/testsuite/init/inherit_workspace_package_table/out/crates/foo/Cargo.toml
  262. +3 −0 tests/testsuite/init/inherit_workspace_package_table/out/crates/foo/src/main.rs
  263. +14 −0 tests/testsuite/init/inherit_workspace_package_table/out/src/lib.rs
  264. +1 −0 tests/testsuite/init/inherit_workspace_package_table/stderr.log
  265. 0 tests/testsuite/init/inherit_workspace_package_table/stdout.log
  266. +1 −0 tests/testsuite/init/mod.rs
  267. +121 −0 tests/testsuite/install.rs
  268. +639 −0 tests/testsuite/lints.rs
  269. +4 −0 tests/testsuite/main.rs
  270. +58 −0 tests/testsuite/metadata.rs
  271. +15 −0 tests/testsuite/mock-std/library/sysroot/Cargo.toml
  272. +1 −0 tests/testsuite/mock-std/library/sysroot/src/lib.rs
  273. +0 −7 tests/testsuite/mock-std/library/test/Cargo.toml
  274. +29 −9 tests/testsuite/offline.rs
  275. +221 −0 tests/testsuite/package.rs
  276. +17 −2 tests/testsuite/patch.rs
  277. +4 −3 tests/testsuite/profile_config.rs
  278. +8 −14 tests/testsuite/profile_targets.rs
  279. +12 −0 tests/testsuite/publish.rs
  280. +4 −4 tests/testsuite/registry.rs
  281. +72 −1 tests/testsuite/registry_auth.rs
  282. +262 −0 tests/testsuite/rustup.rs
  283. +53 −2 tests/testsuite/tree.rs
  284. +3 −0 tests/testsuite/update.rs
  285. +1 −0 tests/testsuite/weak_dep_features.rs
  286. +20 −5 triagebot.toml
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
build-man = "run --package xtask-build-man --"
stale-label = "run --package xtask-stale-label --"
unpublished = "run --package xtask-unpublished --"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: Create a report to help us improve
labels: ["C-bug"]
labels: ["C-bug", "S-triage"]
body:
- type: markdown
attributes:
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Feature Request
description: Suggest an idea for enhancing Cargo
labels: ["C-feature-request"]
labels: ["C-feature-request", "S-triage"]
body:
- type: markdown
attributes:
119 changes: 75 additions & 44 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -24,12 +24,6 @@ jobs:
- run: rustup update stable && rustup default stable
- run: rustup component add rustfmt
- run: cargo fmt --all --check
- run: |
for manifest in `find crates benches/benchsuite benches/capture -name Cargo.toml`
do
echo check fmt for $manifest
cargo fmt --all --manifest-path $manifest --check
done

# Ensure there are no clippy warnings
clippy:
@@ -39,7 +33,35 @@ jobs:
- run: rustup update stable && rustup default stable
- run: rustup component add clippy
# Only check cargo lib for now
- run: cargo clippy -p cargo --lib -- -D warnings
# TODO: check every members
- run: cargo clippy -p cargo --lib --no-deps -- -D warnings

stale-label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update stable && rustup default stable
- run: cargo stale-label

# Ensure Cargo.lock is up-to-date
lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update stable && rustup default stable
- run: cargo update -p cargo --locked

check-version-bump:
runs-on: ubuntu-latest
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # make `git diff` work
- run: rustup update stable && rustup default stable
- run: ci/validate-version-bump.sh

test:
runs-on: ${{ matrix.os }}
@@ -101,47 +123,39 @@ jobs:
run: echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'

- run: cargo test
- run: cargo test -p cargo
- name: Clear intermediate test output
run: ci/clean-test-output.sh
- name: gitoxide tests (all git-related tests)
run: cargo test git
run: cargo test -p cargo git
env:
__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2: 1
# The testsuite generates a huge amount of data, and fetch-smoke-test was
# running out of disk space.
- name: Clear test output
run: ci/clean-test-output.sh
# This only tests `cargo fix` because fix-proxy-mode is one of the most
# complicated subprocess management in Cargo.
- name: Check operability of rustc invocation with argfile
run: 'cargo test -p cargo --test testsuite -- fix::'
env:
__CARGO_TEST_FORCE_ARGFILE: 1
run: |
# This only tests `cargo fix` because fix-proxy-mode is one of the most
# complicated subprocess management in Cargo.
cargo test --test testsuite -- fix::
- run: cargo test --manifest-path crates/cargo-test-support/Cargo.toml
env:
CARGO_TARGET_DIR: target
- run: cargo test -p cargo-test-support
- run: cargo test -p cargo-platform
- run: cargo test -p cargo-util
- run: cargo test --manifest-path crates/home/Cargo.toml
- run: cargo test --manifest-path crates/mdman/Cargo.toml
- run: cargo build --manifest-path crates/credential/cargo-credential-1password/Cargo.toml
- run: cargo build --manifest-path crates/credential/cargo-credential-gnome-secret/Cargo.toml
- run: cargo test -p home
- run: cargo test -p mdman
- run: cargo build -p cargo-credential-1password
- run: cargo build -p cargo-credential-macos-keychain
- run: cargo build -p cargo-credential-wincred
- run: cargo build -p cargo-credential-gnome-secret
if: matrix.os == 'ubuntu-latest'
- run: cargo build --manifest-path crates/credential/cargo-credential-macos-keychain/Cargo.toml
if: matrix.os == 'macos-latest'
- run: cargo build --manifest-path crates/credential/cargo-credential-wincred/Cargo.toml
if: matrix.os == 'windows-latest'
- name: Check benchmarks
env:
# Share the target dir to try to cache a few build-time deps.
CARGO_TARGET_DIR: target
run: |
# This only tests one benchmark since it can take over 10 minutes to
# download all workspaces.
cargo test --manifest-path benches/benchsuite/Cargo.toml --all-targets -- cargo
cargo check --manifest-path benches/capture/Cargo.toml
cargo test -p benchsuite --all-targets -- cargo
cargo check -p capture
# The testsuite generates a huge amount of data, and fetch-smoke-test was
# running out of disk space.
- name: Clear benchmark output
@@ -154,7 +168,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update stable && rustup default stable
- run: cargo test --manifest-path crates/resolver-tests/Cargo.toml
- run: cargo test -p resolver-tests

test_gitoxide:
runs-on: ubuntu-latest
@@ -164,7 +178,7 @@ jobs:
- run: rustup target add i686-unknown-linux-gnu
- run: sudo apt update -y && sudo apt install gcc-multilib libsecret-1-0 libsecret-1-dev -y
- run: rustup component add rustfmt || echo "rustfmt not available"
- run: cargo test
- run: cargo test -p cargo
env:
__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2: 1

@@ -175,7 +189,7 @@ jobs:
- run: rustup update nightly && rustup default nightly
- run: rustup component add rust-src
- run: cargo build
- run: cargo test --test build-std
- run: cargo test -p cargo --test build-std
env:
CARGO_RUN_BUILD_STD_TESTS: 1
docs:
@@ -187,26 +201,36 @@ jobs:
- run: rustup component add rust-docs
- run: ci/validate-man.sh
# This requires rustfmt, use stable.
- run: cd src/doc/semver-check && cargo +stable run
- run: |
- name: Run semver-check
run: cargo +stable run -p semver-check
- name: Ensure intradoc links are valid
run: cargo doc --workspace --document-private-items --no-deps
env:
RUSTDOCFLAGS: -D warnings
- name: Install mdbook
run: |
mkdir mdbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.27/mdbook-v0.4.27-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- run: cargo doc --document-private-items --no-deps
env:
RUSTDOCFLAGS: -D warnings
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
- run: |
cd src/doc
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all cargo
- name: Run linkchecker.sh
run: |
cd target
curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all --path ../src/doc cargo
success:
permissions:
contents: none
name: bors build finished
needs: [docs, rustfmt, test, resolver, build_std, test_gitoxide]
needs:
- build_std
- docs
- lockfile
- resolver
- rustfmt
- test
- test_gitoxide
runs-on: ubuntu-latest
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'"
steps:
@@ -215,7 +239,14 @@ jobs:
permissions:
contents: none
name: bors build finished
needs: [docs, rustfmt, test, resolver, build_std]
needs:
- build_std
- docs
- lockfile
- resolver
- rustfmt
- test
- test_gitoxide
runs-on: ubuntu-latest
if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'"
steps:
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
target
Cargo.lock
.cargo
/config.stamp
/Makefile
/config.mk
Loading