Skip to main content

vortex_edition/declarations/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4//! The first-party Vortex edition declarations, one module per edition.
5//!
6//! These are plain constants naming components by id, so they depend on nothing but the types
7//! in this crate. That keeps them cheap to read: tooling that only needs to know what an
8//! edition contains — `cargo run -p xtask -- generate-editions`, for one — can depend on
9//! this crate alone rather than on the whole of `vortex`.
10//!
11//! The `vortex` facade re-exports everything here and owns the session wiring: registering
12//! the declarations and selecting which of them the default writer may emit.
13
14pub mod core;
15pub mod preview;
16pub mod unstable;
17
18use crate::EditionDeclaration;
19use crate::EditionFamily;
20
21/// The first-party edition families. Every family must be declared before its editions.
22pub static EDITION_FAMILIES: &[&EditionFamily] =
23    &[&core::FAMILY, &preview::FAMILY, &unstable::FAMILY];
24
25/// The first-party Vortex edition declarations.
26pub static EDITION_DECLARATIONS: &[&EditionDeclaration] = &[
27    &core::v2025_05::DECLARATION,
28    &core::v2025_06::DECLARATION,
29    &core::v2025_10::DECLARATION,
30    &core::v2026_08::DECLARATION_0,
31    &core::v2026_08::DECLARATION_1,
32    &core::v2026_08_2::DECLARATION,
33    &core::v2026_08_3::DECLARATION,
34    &preview::v2026_08::DECLARATION,
35    &preview::v2026_11::DECLARATION,
36    &unstable::DECLARATION,
37];