Skip to main content

API_VERSION

Constant API_VERSION 

Source
pub const API_VERSION: u32 = 1;
Expand description

The revision of this contract that host and guest must agree on.

It is bumped whenever the shape of a PluginComment or the rules in validate_comments change. A guest reports the version it was built against and the host refuses anything else, so a plugin compiled against an older SDK fails loudly instead of being misread.