Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion crates/stackable-versioned/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! This crate enables versioning of structs and enums through procedural macros.
//!
//! It is part of the project DeLorean and converts between different CRD versions by using 1.21 GW
//! of power, 142km/h and time travel.
//!
//! Currently supported versioning schemes:
//!
//! - Kubernetes API versions (eg: `v1alpha1`, `v1beta1`, `v1`, `v2`), with optional support for
Expand All @@ -8,7 +11,30 @@
//! Support will be extended to SemVer versions, as well as custom version formats in the future.
//!
//! See [`versioned`] for an in-depth usage guide and a list of supported arguments.

//!
//! ```text
//! __---~~~~--__ __--~~~~---__
//! `\---~~~~~~~~\\ //~~~~~~~~---/'
//! \/~~~~~~~~~\|| ||/~~~~~~~~~\/
//! `\\ //'
//! `\\ //'
//! || ||
//! ______--~~~~~~~~~~~~~~~~~~--______
//! ___ // _-~ ~-_ \\ ___
//! `\__)\/~ ~\/(__/'
//! _--`-___ ___-'--_
//! /~ `\ ~~~~~~~~------------~~~~~~~~ /' ~\
//! /| `\ ________ /' |\
//! | `\ ______`\_ \------/ _/'______ /' |
//! | `\_~-_____\ ~-________________-~ /_____-~_/' |
//! `. ~-__________________________________-~ .'
//! `. [_______/------|~~|------\_______] .'
//! `\--___((____)(________\/________)(____))___--/'
//! |>>>>>>||</ \>||<<<<<<|
//! `\<<<<</' `\>>>>>/'
//! ```
//!
//! Credit: Tua Xiong in <https://asciiart.website/art/4323>
use std::collections::BTreeMap;

use schemars::{Schema, json_schema};
Expand Down