Expand description
Storage for design systems, their base component catalog, and per-design-system component overrides.
Mirrors the CredentialStore pattern in
src/uar/security/credentials/store.rs: a backend-agnostic
#[async_trait] DesignSystemStore trait, an always-available
InMemoryDesignSystemStore, a SurrealDB-backed
SurrealDesignSystemStore that compiles in the default (surreal-backend)
build, and a Postgres-backed [PostgresDesignSystemStore] gated behind the
sqlx feature for Postgres deployments.
This is a UAR-native design, not a line-for-line port: flint-forge’s
source (flint-forge/crates/fdb-gateway/src/a2ui_embedder.rs +
flint-forge/migrations/0009_flint_a2ui_design_systems.sql) is
Postgres/pgvector-only (LISTEN/NOTIFY, an in-database llm.embed()
function). UAR’s default and server-full release profile run on
SurrealDB (see Cargo.toml’s minimal = ["surreal-backend"]), so the
storage layer here is expressed against UAR’s existing
PersistenceLayer-adjacent trait-per-backend convention instead of
requiring Postgres to build or run.
Structs§
Traits§
- Design
System Store - Backend-agnostic storage for design systems, components, and overrides.
Type Aliases§
- Shared
Design System Store - Convenience alias for a shared store handle.