Skip to main content

spin_manifest/schema/
mod.rs

1//! Serialization types for the Spin manifest file format (spin.toml).
2
3use serde::Deserialize;
4
5/// Serialization types for the Spin manifest V1.
6pub mod v1;
7/// Serialization types for the Spin manifest V2.
8pub mod v2;
9
10// Types common between manifest versions. Re-exported from versioned modules
11// to make them easier to split if necessary.
12pub(crate) mod common;
13mod json_schema;
14
15// Serde serialise-deserialise modules
16mod kebab_or_snake_case;
17mod one_or_many;
18
19#[derive(Deserialize)]
20pub(crate) struct VersionProbe {
21    #[serde(alias = "spin_version")]
22    pub spin_manifest_version: toml::Value,
23}