#![doc = include_str!("../README.md")]
mod edit;
mod id;
mod manifest;
mod message;
mod registry;
mod rules;
pub mod usage;
pub use edit::{Diagnostic, DiagnosticSeverity, Position, Range, TextEdit};
pub use id::{PLUGIN_ID_PATTERN, PluginId, PluginIdError};
pub use manifest::{
Command, Contributes, Engines, Exporter, Importer, PaletteItem, Permission, PluginManifest,
Runtime, View,
};
pub use message::{
HostMessage, ModelElement, ModelPort, ModelRelation, ModelSnapshot, NotifyLevel, PluginMessage,
PortDirection, RelationKind,
};
pub use registry::{Pricing, Publisher, RegistryEntry, RegistryVersion};
pub use rules::{
CountRange, ElementMatch, OneOrMany, RULE_ID_PATTERN, Requirement, Rule, RuleId, RuleIdError,
RuleSet,
};
pub use usage::{USAGE_SCHEMA_VERSION, UsageReport};
pub const API_VERSION: &str = "0";
#[cfg(feature = "codegen")]
pub mod generate;
#[cfg(test)]
mod tests {
#[test]
fn api_version_matches_crate_major() {
let major = env!("CARGO_PKG_VERSION_MAJOR");
let api_version = super::API_VERSION;
assert_eq!(api_version, major);
}
}