photon_core/lib.rs
1//! Core identity and shared types for Photon (no delivery topology).
2//!
3//! Portable actor reconstruction used by handlers and hosts. Delivery backends and the runtime
4//! live in other crates.
5//!
6//! ## Entry points
7//!
8//! - [`IdentityFactory`] / [`Actor`] — reconstruct actors from captured JSON at handler dispatch
9//! - [`JsonIdentityFactory`] / [`JsonActor`] — JSON stubs for tests and examples
10//! - [`IdentityError`] — identity port failures
11
12#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
13
14pub mod error;
15pub mod identity;
16pub mod stub_identity;
17
18pub use error::IdentityError;
19pub use identity::{Actor, IdentityFactory};
20// `actor_downcast_methods` is exported via `#[macro_export]` from `identity`.
21pub use stub_identity::{JsonActor, JsonIdentityFactory};