pub fn validate_excluded_platforms_str(s: &str) -> Result<(), ExtensionError>Expand description
Validates the excluded_platforms field from description.yml as a semicolon-separated string.
DuckDB’s description.yml stores excluded platforms as a semicolon-delimited string:
"wasm_mvp;wasm_eh;wasm_threads". This function splits on ; and validates each token.
An empty string is valid and means no platforms are excluded.
§Errors
Returns crate::error::ExtensionError if any token is not a known DuckDB build target,
or if the same platform appears more than once.
§Example
use quack_rs::validate::validate_excluded_platforms_str;
assert!(validate_excluded_platforms_str("").is_ok());
assert!(validate_excluded_platforms_str("wasm_mvp;wasm_eh").is_ok());
assert!(validate_excluded_platforms_str("wasm_mvp;wasm_threads;wasm_eh").is_ok());
assert!(validate_excluded_platforms_str("invalid_platform").is_err());
assert!(validate_excluded_platforms_str("linux_amd64;linux_amd64").is_err()); // duplicate