Crate dmsc

Crate dmsc 

Source
Expand description

Copyright © 2025-2026 Wenze Wei. All Rights Reserved.

This file is part of DMSC. The DMSC project belongs to the Dunimd Team.

Licensed under the Apache License, Version 2.0 (the “License”); You may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

§DMSC (Dunimd Middleware Service) Library

This is the main entry point for the DMSC library, which provides a comprehensive middleware service framework for building enterprise-grade backend applications.

§Core Modules

DMSC is organized into 12 core modules, each responsible for a specific set of functionalities:

  • core: Core runtime, application builder, and service context
  • fs: Secure file system operations and management
  • log: Structured logging with tracing integration
  • config: Multi-source configuration management
  • hooks: Lifecycle event hooks for modules
  • observability: Metrics, tracing, and monitoring support
  • device: Device management and scheduling
  • cache: Multi-backend cache abstraction
  • queue: Distributed queue management
  • gateway: API gateway with load balancing and rate limiting
  • service_mesh: Service discovery and traffic management
  • auth: Authentication and authorization mechanisms

§Prelude

The prelude module re-exports commonly used types and traits for convenient access, allowing users to import all essential components with a single use dmsc::prelude::*; statement.

Modules§

auth
Authentication and authorization mechanisms Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
c
C/C++ API support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
cache
Multi-backend cache abstraction Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
config
Multi-source configuration management Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
core
Core runtime, application builder, and service context Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
database
Database abstraction layer with multiple backend support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
device
Device management and scheduling Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
fs
Secure file system operations and management Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
gateway
API gateway with load balancing and rate limiting Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
grpc
gRPC server and client support Copyright 2025-2026 Wenze Wei. All Rights Reserved.
hooks
Lifecycle event hooks for modules Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
java
Java JNI bindings support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
log
Structured logging with tracing integration Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
module_rpc
Inter-module RPC communication for distributed method calls Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
observability
Metrics, tracing, and monitoring support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
prelude
Common re-exports for convenient access to core functionality
protocol
Protocol abstraction layer for multiple protocol support Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
py
Python bindings for DMSC
queue
Distributed queue management Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
service_mesh
Service discovery and traffic management Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
validation
Validation utilities for input validation and data sanitization Copyright © 2025-2026 Wenze Wei. All Rights Reserved.
ws
WebSocket server and client support Copyright 2025-2026 Wenze Wei. All Rights Reserved.

Macros§

c_constructor
Macro to generate C constructor function
c_destructor
Macro to generate C destructor function
c_string_getter
Macro to generate C getter for string
c_string_setter
Macro to generate C setter for string
c_wrapper
Macro to generate C wrapper struct for a Rust type
check_java_ptr
Macro to check for null pointer and return early if null
check_java_ptr_or_default
Macro to check for null pointer and return default value if null