Skip to content

Commit ecfac68

Browse files
committed
Remove credential providers from bootstrap
since they are now built-in to the Cargo binary
1 parent cad9cd8 commit ecfac68

File tree

3 files changed

+0
-49
lines changed

3 files changed

+0
-49
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
}

0 commit comments

Comments
 (0)