pub fn validate_excluded_platforms(
platforms: &[&str],
) -> Result<(), ExtensionError>Expand description
Validates a list of excluded platform identifiers.
Each platform must be a known DuckDB build target or one of
DUCKDB_RETIRED_PLATFORMS (excluding a platform that is no longer built
is a harmless no-op). Duplicates are flagged as an error.
§Errors
Returns ExtensionError on the first invalid or duplicate platform.
§Example
use quack_rs::validate::platform::validate_excluded_platforms;
assert!(validate_excluded_platforms(&["wasm_mvp", "wasm_eh"]).is_ok());
assert!(validate_excluded_platforms(&["invalid_platform"]).is_err());
assert!(validate_excluded_platforms(&["linux_amd64", "linux_amd64"]).is_err());