From 5402a1fdb98fca06deb402d00f0660382f5b54d4 Mon Sep 17 00:00:00 2001 From: Ellen Marie Dash Date: Thu, 13 Feb 2025 17:50:58 -0500 Subject: [PATCH] Remove commented-out code, since it has all been replaced. --- cargo-dist/src/init/apply_dist/mod.rs | 128 -------------------------- 1 file changed, 128 deletions(-) diff --git a/cargo-dist/src/init/apply_dist/mod.rs b/cargo-dist/src/init/apply_dist/mod.rs index 5ef8597a1..b89d12a87 100644 --- a/cargo-dist/src/init/apply_dist/mod.rs +++ b/cargo-dist/src/init/apply_dist/mod.rs @@ -100,134 +100,6 @@ pub fn apply_dist_to_metadata(metadata: &mut toml_edit::Item, meta: &TomlLayer) installers::apply(table, installers); publishers::apply(table, publishers); - // TODO(migration): make sure all of these are handled - /* - - apply_optional_value( - table, - "create-release", - "# Whether dist should create a Github Release or use an existing draft\n", - *create_release, - ); - - apply_optional_value( - table, - "github-release", - "# Which phase dist should use to create the GitHub release\n", - github_release.as_ref().map(|a| a.to_string()), - ); - - apply_optional_value( - table, - "github-releases-repo", - "# Publish GitHub Releases to this repo instead\n", - github_releases_repo.as_ref().map(|a| a.to_string()), - ); - - apply_optional_value( - table, - "github-releases-submodule-path", - "# Read the commit to be tagged from the submodule at this path\n", - github_releases_submodule_path - .as_ref() - .map(|a| a.to_string()), - ); - - apply_string_list( - table, - "local-artifacts-jobs", - "# Local artifacts jobs to run in CI\n", - local_artifacts_jobs.as_ref(), - ); - - apply_string_list( - table, - "global-artifacts-jobs", - "# Global artifacts jobs to run in CI\n", - global_artifacts_jobs.as_ref(), - ); - - apply_string_list( - table, - "host-jobs", - "# Host jobs to run in CI\n", - host_jobs.as_ref(), - ); - - apply_string_list( - table, - "publish-jobs", - "# Publish jobs to run in CI\n", - publish_jobs.as_ref(), - ); - - apply_string_list( - table, - "post-announce-jobs", - "# Post-announce jobs to run in CI\n", - post_announce_jobs.as_ref(), - ); - - apply_optional_value( - table, - "publish-prereleases", - "# Whether to publish prereleases to package managers\n", - *publish_prereleases, - ); - - apply_optional_value( - table, - "force-latest", - "# Always mark releases as latest, ignoring semver semantics\n", - *force_latest, - ); - - apply_optional_value( - table, - "github-attestations", - "# Whether to enable GitHub Attestations\n", - *github_attestations, - ); - - apply_string_or_list( - table, - "hosting", - "# Where to host releases\n", - hosting.as_ref(), - ); - - apply_optional_value( - table, - "install-updater", - "# Whether to install an updater program\n", - *install_updater, - ); - - apply_optional_value( - table, - "always-use-latest-updater", - "# Whether to always use the latest updater instead of a specific known-good version\n", - *always_use_latest_updater, - ); - - apply_optional_value( - table, - "display", - "# Whether to display this app's installers/artifacts in release bodies\n", - *display, - ); - - apply_optional_value( - table, - "display-name", - "# Custom display name to use for this app in release bodies\n", - display_name.as_ref(), - ); - - - - */ - // Finalize the table table.decor_mut().set_prefix("\n# Config for 'dist'\n"); }