diff --git a/tools/codegen/base/uv.json b/tools/codegen/base/uv.json index 7251c7bd..4b22ca0f 100644 --- a/tools/codegen/base/uv.json +++ b/tools/codegen/base/uv.json @@ -4,6 +4,7 @@ "tag_prefix": "", "rust_crate": "${package}", "version_range": ">= 0.8.16", + "ignore": ["0.11.9"], "signing": { "version_range": ">= 0.9.13", "kind": { diff --git a/tools/codegen/src/lib.rs b/tools/codegen/src/lib.rs index cb428ce6..9eec7d7c 100644 --- a/tools/codegen/src/lib.rs +++ b/tools/codegen/src/lib.rs @@ -31,9 +31,13 @@ pub struct BaseManifest { /// Path to binaries in archive. Default to `${tool}${exe}`. pub bin: Option, pub signing: Option, + pub version_range: Option, + /// Include to manifest, but exclude from candidate for latest and omitted versions. #[serde(default)] pub broken: Vec, - pub version_range: Option, + /// Exclude from manifest. + #[serde(default)] + pub ignore: Vec, /// Use glibc build if host_env is gnu. #[serde(default)] pub prefer_linux_gnu: bool, diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 0a68b884..1ff36fac 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -96,7 +96,11 @@ fn main() { semver_version = format!("{default_major_version}.{version}").parse(); } } - Some((Reverse(semver_version.ok()?), (version, release))) + let semver_version = semver_version.ok()?; + if base_info.ignore.contains(&semver_version) { + return None; + } + Some((Reverse(semver_version), (version, release))) }) .collect();