Skip to main content

mockforge_registry_core/
lib.rs

1//! Shared core for MockForge registry backends.
2//!
3//! This crate houses the domain models, storage trait, error types,
4//! authentication middleware, and OSS-safe HTTP handlers that power both:
5//!
6//!   * `mockforge-registry-server` — the multi-tenant SaaS binary (Postgres
7//!     backend plus SaaS-only integrations like Stripe, SSO/SAML, S3, Redis).
8//!   * `mockforge-ui`'s embedded OSS admin server (SQLite backend only).
9//!
10//! The cloud-core extraction is being landed incrementally. Modules move
11//! over in small reviewable commits; this file tracks what's here so far.
12
13#![deny(unsafe_code)]
14#![allow(clippy::module_inception)]
15
16pub mod auth;
17pub mod error;
18pub mod models;
19pub mod permissions;
20pub mod scope_check;
21pub mod store;
22pub mod two_factor;
23pub mod validation;
24
25pub use error::{ApiError, ApiResult, StoreError, StoreResult};