Skip to content

Commit 864bdf7

Browse files
committed
Auto merge of #114027 - arlosi:update-cargo, r=ehuss
Update cargo 8 commits in 1b15556767f4b78a64e868eedf4073c423f02b93..7ac9416d82cd4fc5e707c9ec3574d22dff6466e5 2023-07-18 14:44:47 +0000 to 2023-07-24 14:29:38 +0000 - fix(cargo-credential): should enable feature `serde/derive` (rust-lang/cargo#12396) - fix: encode URL params correctly for SourceId in Cargo.lock (rust-lang/cargo#12280) - docs: format config override caveat as a note (rust-lang/cargo#12392) - credential provider implementation (rust-lang/cargo#12334) - feat(crates-io): expose HTTP headers and Error type (rust-lang/cargo#12310) - chore: Don't update test data (rust-lang/cargo#12380) - fix: only skip mtime check on `~/.cargo/{git,registry}` (rust-lang/cargo#12369) - Update docs for artifact JSON debuginfo levels. (rust-lang/cargo#12376) Since rust-lang/cargo#12334 makes built-in credential providers part of the cargo binary, it's no longer needed to build them in bootstrap.
2 parents 18fa7b9 + ecfac68 commit 864bdf7

File tree

4 files changed

+1
-50
lines changed

4 files changed

+1
-50
lines changed

src/bootstrap/dist.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1085,13 +1085,6 @@ impl Step for Cargo {
10851085
tarball.add_dir(etc.join("man"), "share/man/man1");
10861086
tarball.add_legal_and_readme_to("share/doc/cargo");
10871087

1088-
for dirent in fs::read_dir(cargo.parent().unwrap()).expect("read_dir") {
1089-
let dirent = dirent.expect("read dir entry");
1090-
if dirent.file_name().to_str().expect("utf8").starts_with("cargo-credential-") {
1091-
tarball.add_file(&dirent.path(), "libexec", 0o755);
1092-
}
1093-
}
1094-
10951088
Some(tarball.generate())
10961089
}
10971090
}

src/bootstrap/doc.rs

-9
Original file line numberDiff line numberDiff line change
@@ -894,19 +894,10 @@ tool_doc!(
894894
"-p",
895895
"cargo-credential",
896896
"-p",
897-
"cargo-credential-1password",
898-
"-p",
899897
"mdman",
900898
// FIXME: this trips a license check in tidy.
901899
// "-p",
902900
// "resolver-tests",
903-
// FIXME: we should probably document these, but they're different per-platform so we can't use `tool_doc`.
904-
// "-p",
905-
// "cargo-credential-gnome-secret",
906-
// "-p",
907-
// "cargo-credential-macos-keychain",
908-
// "-p",
909-
// "cargo-credential-wincred",
910901
]
911902
);
912903
tool_doc!(Tidy, "tidy", "src/tools/tidy", rustc_tool = false, ["-p", "tidy"]);

src/bootstrap/tool.rs

-33
Original file line numberDiff line numberDiff line change
@@ -558,39 +558,6 @@ impl Step for Cargo {
558558
allow_features: "",
559559
})
560560
.expect("expected to build -- essential tool");
561-
562-
let build_cred = |name, path| {
563-
// These credential helpers are currently experimental.
564-
// Any build failures will be ignored.
565-
let _ = builder.ensure(ToolBuild {
566-
compiler: self.compiler,
567-
target: self.target,
568-
tool: name,
569-
mode: Mode::ToolRustc,
570-
path,
571-
is_optional_tool: true,
572-
source_type: SourceType::Submodule,
573-
extra_features: Vec::new(),
574-
allow_features: "",
575-
});
576-
};
577-
578-
if self.target.contains("windows") {
579-
build_cred(
580-
"cargo-credential-wincred",
581-
"src/tools/cargo/credential/cargo-credential-wincred",
582-
);
583-
}
584-
if self.target.contains("apple-darwin") {
585-
build_cred(
586-
"cargo-credential-macos-keychain",
587-
"src/tools/cargo/credential/cargo-credential-macos-keychain",
588-
);
589-
}
590-
build_cred(
591-
"cargo-credential-1password",
592-
"src/tools/cargo/credential/cargo-credential-1password",
593-
);
594561
cargo_bin_path
595562
}
596563
}

src/tools/cargo

Submodule cargo updated 61 files

0 commit comments

Comments
 (0)