subversioner/
lib.rs

1//! Minimal implementation of Substrate version.
2
3#![deny(missing_docs)]
4#![deny(unused_crate_dependencies)]
5
6// crates.io
7#[cfg(feature = "serde")] use serde::Deserialize;
8
9/// Runtime version.
10///
11/// Substrate reference(s):
12/// - <https://github.com/paritytech/substrate/blob/c4d36065764ee23aeb3ccd181c4b6ecea8d2447a/primitives/version/src/lib.rs#L152-L215>
13#[derive(Debug, PartialEq, Eq)]
14#[cfg_attr(feature = "serde", derive(Deserialize), serde(rename_all = "camelCase"))]
15pub struct RuntimeVersion {
16	#[allow(missing_docs)]
17	pub spec_name: String,
18	#[allow(missing_docs)]
19	pub impl_name: String,
20	#[allow(missing_docs)]
21	pub authoring_version: u32,
22	#[allow(missing_docs)]
23	pub spec_version: u32,
24	#[allow(missing_docs)]
25	pub impl_version: u32,
26	#[allow(missing_docs)]
27	pub transaction_version: u32,
28	#[allow(missing_docs)]
29	pub state_version: u8,
30}