toolkit/gts/mod.rs
1//! GTS re-exports from `toolkit-gts`.
2//!
3//! Platform base GTS types (plugin base, permission base, and future
4//! role/grant/binding) live in the dedicated `toolkit-gts` crate alongside
5//! the link-time inventory machinery. This gear re-exports them for
6//! convenience so existing consumers can continue writing
7//! `use toolkit::gts::PluginV1;` without an extra dependency.
8//!
9//! A deprecated type alias is provided for the former `BaseToolkitPluginV1`
10//! name to preserve backward compatibility of the published `cf-toolkit`
11//! crate for external consumers. In-repo callsites have been migrated to
12//! `PluginV1`.
13
14pub use toolkit_gts::{
15 AuthzPermissionV1, InventoryInstance, InventoryTypeSchema, PluginV1, all_inventory_instances,
16 all_inventory_type_schemas,
17};
18
19/// Deprecated alias — `BaseToolkitPluginV1` was renamed to [`PluginV1`].
20///
21/// The "Base" prefix was redundant with the type's role (every
22/// `struct_to_gts_schema(base = true)` struct is a base type); "Toolkit" was
23/// then dropped since the crate path (`toolkit::gts::`) already carries that
24/// context. Callsites in this workspace have all been migrated. This alias
25/// is retained to keep the published crate's surface backward-compatible
26/// for external consumers.
27#[deprecated(since = "0.7.0", note = "Renamed to `PluginV1`")]
28pub type BaseToolkitPluginV1<P> = PluginV1<P>;