swc_common/plugin/diagnostics.rs
1/// A serializable, wrapped struct for the diagnostics information
2/// included in plugin binaries.
3/// TODO: Must implement forward-compatible validation for schema changes to
4/// prevent handshake failure.
5#[derive(Debug, Clone, PartialEq, Eq)]
6#[cfg_attr(
7 feature = "encoding-impl",
8 derive(::ast_node::Encode, ::ast_node::Decode)
9)]
10pub struct PluginCorePkgDiagnostics {
11 pub pkg_version: String,
12 pub git_sha: String,
13 pub cargo_features: String,
14 pub ast_schema_version: u32,
15}