spin_serde/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Serde serialization helpers

#![deny(missing_docs)]

pub mod base64;
pub mod dependencies;
pub mod id;
mod version;

pub use version::{FixedStringVersion, FixedVersion, FixedVersionBackwardCompatible};

pub use dependencies::{DependencyName, DependencyPackageName};

/// A "kebab-case" identifier.
pub type KebabId = id::Id<'-', false>;

/// A "snake_case" identifier.
pub type SnakeId = id::Id<'_', false>;

/// A lower-case "snake_case" identifier.
pub type LowerSnakeId = id::Id<'_', true>;