Skip to content

Commit

Permalink
Remove commented-out code, since it has all been replaced.
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator committed Feb 13, 2025
1 parent 290f2e0 commit 5402a1f
Showing 1 changed file with 0 additions and 128 deletions.
128 changes: 0 additions & 128 deletions cargo-dist/src/init/apply_dist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5402a1f

Please sign in to comment.