pub const fn is_supported_api_version(api_version: u32) -> boolExpand description
Whether this host accepts a plugin built against plugin API
api_version: only PLUGIN_API_VERSION itself.
This is the check rs-rich-ext’s ExtensionRegistry::add_plugin makes,
so a tool that chooses a plugin before adding it decides as the host will.
use rich_plugin_api::{is_supported_api_version, PLUGIN_API_VERSION};
assert!(is_supported_api_version(PLUGIN_API_VERSION));
assert!(!is_supported_api_version(PLUGIN_API_VERSION + 1));