Skip to main content

Crate communitas_bindings

Crate communitas_bindings 

Source
Expand description

Communitas Core - Business logic for the Communitas P2P collaboration platform

This crate contains all the core functionality shared between the desktop app and the headless node/CLI, without any UI dependencies.

Re-exports§

pub use auth_service::AuthService;
pub use auth_service::SessionInfo;
pub use connectivity_watchdog::ConnectivityWatchdog;
pub use connectivity_watchdog::WatchdogConfig;
pub use core_context::CoreContext;
pub use crdt_manager::CrdtError;
pub use crdt_manager::CrdtManager;
pub use crdt_manager::CrdtResult;
pub use entity_service::CascadeRemovalResult;
pub use entity_service::Entity;
pub use entity_service::EntityService;
pub use entity_service::EntityServiceError;
pub use entity_service::EntityServiceResult;
pub use entity_type::EntityType;
pub use error::AppError;
pub use error::AppResult as Result;
pub use linking_service::LinkingError;
pub use linking_service::LinkingResult;
pub use linking_service::LinkingService;
pub use linking_service::SyncResult;
pub use message_service::MessageService;
pub use message_service::MessageServiceError;
pub use message_service::MessageServiceResult;
pub use resource_limits::ResourceLimitError;
pub use resource_limits::ResourceLimits;
pub use retry_utils::RetryConfig;
pub use retry_utils::retry_dial;
pub use retry_utils::retry_with_backoff;
pub use services::CoreServices;
pub use validation::InputType;
pub use validation::ValidationError;
pub use validation::ValidationService;
pub use identity::IdentityError;
pub use identity::IdentityResult;
pub use identity::conn_from_words;
pub use identity::conn_words;
pub use identity::generate_id_words;
pub use identity::identity_to_seed;
pub use identity::validate_id_words;
pub use disk_service::DiskStats;
pub use disk_service::DiskType;
pub use disk_service::EntityDiskService;
pub use disk_service::FileInfo;
pub use permissions::AccessLevel;
pub use permissions::MemberPermissions;
pub use permissions::ResourceType;
pub use permissions::role_defaults;
pub use invite::Invite;
pub use invite::InviteStatus;
pub use invite_service::InviteRequest;
pub use invite_service::InviteService;
pub use invite_service::InviteServiceError;
pub use invite_service::InviteServiceResult;
pub use peer_presence::PresenceCache;
pub use peer_presence::PresenceError;
pub use peer_presence::PresenceQuery;
pub use peer_presence::PresenceRecord;
pub use peer_presence::PresenceResponse;
pub use peer_presence::PresenceResult;
pub use recovery::RecoveryConfig;
pub use recovery::RecoveryError;
pub use recovery::RecoveryResult;

Modules§

app
CommunitasApp - The headless core application with execute/query/subscribe API
auth_service
Shared Authentication Service
command
Command/Event/Query Architecture for Headless Core
connectivity_watchdog
core_context
Core Context - Centralized application state for Communitas
crdt
Pure CRDT Infrastructure for Communitas
crdt_manager
CRDT Manager - Manages Yrs documents with filesystem persistence
disk_service
Entity Disk Service - Per-entity virtual disk management
doc_replicator
Document Replicator (Sprint 3.2)
encrypted_storage
Local Storage System for Communitas
entity_service
Entity Service - Unified entity and member management
entity_type
Entity type discriminator.
error
identity
Identity helpers
invite
Invite model for cross-organization collaboration.
invite_service
Invite service for managing collaboration invites.
keystore
legacy_crdt
CRDT-based Message Synchronization
linking_service
Linking Service Module
message_service
Message Service - Unified messaging and synchronization
message_sync
Message Synchronization Service
metrics
Metrics collection and reporting for Communitas.
peer_presence
Peer Discovery Presence System (ADR-014)
permissions
Granular permission system for entity resources.
presence_service
Presence Service for Group-Scoped Presence Beacons
recovery
Recovery module for vault backup and restoration (ADR-016).
resource_limits
Resource Limits and Management
retry_utils
security
Security module for Communitas core
services
Domain services for Communitas
storage
Storage module for Communitas core
telemetry
OpenTelemetry integration for production observability.
test_harness
types
Core types for Communitas (replaces Saorsa Core types)
ui_core
Rust-native UI API surface consumed by Dioxus/Tauri front-ends
validation
Input validation service for Communitas
website
Website Storage and Markdown Management

Macros§

check_rate_limit
Macro for checking rate limits in adapter commands
require_auth
Macro for protecting adapter commands with authentication
require_session
Macro for protecting adapter commands with session validation only