v0.3.1-pre.005
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
// file: crates/ksp-store-api/src/capability.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Private home for backend-agnostic Store capability contracts.
|
||||
//!
|
||||
//! `0.3.1-pre.002` establishes the ownership boundary only. Concrete read and
|
||||
//! write capabilities are introduced after the RAW models they operate on are
|
||||
//! defined; no backend/runtime contract belongs here.
|
||||
//! Capabilities are split by persistent family and operation direction so a
|
||||
//! backend can implement only the contracts it actually supports. The runtime
|
||||
//! Store facade, backend selection and concrete database implementations remain
|
||||
//! outside `ksp-store-api`.
|
||||
|
||||
pub(crate) mod raw_account;
|
||||
pub(crate) mod raw_transaction;
|
||||
|
||||
/// Boxed async operation returned by object-safe Store capability contracts.
|
||||
///
|
||||
/// The alias uses only standard-library primitives so backend implementations
|
||||
/// need no async helper dependency merely to implement `ksp-store-api`.
|
||||
pub type StoreApiFuture<'a, T> = std::pin::Pin<std::boxed::Box<dyn std::future::Future<Output = T> + std::marker::Send + 'a>>;
|
||||
|
||||
Reference in New Issue
Block a user