specta 2.0.0-rc.9

Easily export your Rust types to other languages
Documentation
// /// Alpha: [OpenAPI](https://www.openapis.org) language exporter.
// #[cfg(feature = "openapi")]
// #[cfg_attr(docsrs2, doc(cfg(feature = "openapi")))]
// pub mod openapi;

/// [TypeScript](https://www.typescriptlang.org) language exporter.
#[cfg(feature = "typescript")]
#[cfg_attr(docsrs2, doc(cfg(feature = "typescript")))]
pub mod ts;

#[cfg(all(feature = "js_doc", not(feature = "typescript")))]
compile_error!("`js_doc` feature requires `typescript` feature to be enabled");

/// [JSDoc](https://jsdoc.app) helpers.
///
/// Also requires `typescript` feature to be enabled.
#[cfg(all(feature = "js_doc", feature = "typescript"))]
#[cfg_attr(docsrs2, doc(cfg(all(feature = "js_doc", feature = "typescript"))))]
pub mod js_doc {
    pub use super::ts::js_doc::*;
}

// /// [Rust](https://www.rust-lang.org) language exporter.
// #[cfg(feature = "rust")]
// #[cfg_attr(docsrs2, doc(cfg(feature = "rust")))]
// pub mod rust;

// /// [Swift](https://www.swift.org) language exporter.
// #[cfg(feature = "swift")]
// #[cfg_attr(docsrs2, doc(cfg(feature = "swift")))]
// pub mod swift;

// /// [Kotlin](https://kotlinlang.org) language exporter.
// #[cfg(feature = "kotlin")]
// #[cfg_attr(docsrs2, doc(cfg(feature = "kotlin")))]
// pub mod kotlin;

// /// [Go Lang](https://go.dev) language exporter.
// #[cfg(feature = "go")]
// #[cfg_attr(docsrs2, doc(cfg(feature = "go")))]
// pub mod go;

macro_rules! primitive_def {
    ($($t:ident)+) => {
        $(PrimitiveType::$t)|+
    }
}

pub(crate) use primitive_def;