Expand description
The datex-core crate is the core library for the DATEX system.
Re-exports§
pub use datex_macros_internal as macros;pub use inventory;
Modules§
- channel
- This module defines mpsc for communication between different components of the DATEX system. Channels are used for sending messages, events, or data between different parts of the system.
- collections
- HashMap and HashSet that work in both std and no_std environments.
- core_
compiler - This module contains the core compiler logic for DATEX, including value_compiler and type_compiler needed for compilation.
- crypto
- Crypto implementations selection based on target architecture and features.
- datex_
proxy - datex_
registry - This module acts as the central type registry, to collect structs and enums annotated with
#[derive(datex)]to make them available for external projects. - dif
- DIF is a representation of DATEX values and updates that can be serialized and deserialized in a compact format to act as interface for communication with outside components or languages.
- disassembler
- This module contains the disassembler for DATEX, which converts DXB bytecode into a human-readable assembly-like string representation.
- dxb_
parser - This module contains the parser for DATEX, which converts a string representation of DATEX source code into an abstract syntax tree (AST) that can be processed by the compiler.
- global
- This module contains a collection of shared structures that are used across different components of the DATEX system, such as protocol_structures, instruction_codes, and operators.
- libs
- This module contains the core and std libraries for DATEX, which provide the core functionality and a set of values, types, and operations for the DATEX language.
- network
- This module contains the implementation of the network communication components for DATEX, including the block_handler, com_hub, and com_interfaces.
- prelude
- The
preludemodule contains re-exports of commonly used types, traits, and functions from the alloc crate and other modules. - random
- runtime
- This module contains the implementation of the runtime, which is the backbone of the DATEX system.
- shared_
values - This module contains the implementation of the shared values system. It includes the shared_container::SharedContainer, shared_container_inner::SharedContainerInner, SelfOwnedSharedContainer/ExternalSharedContainer and finally base_shared_value_container::BaseSharedValueContainer which is the underlying data structure for shared values, as well as various types of shared containers such as owned, referenced, and self-owned shared containers.
- std_
sync - Reexport of Mutex that works in both std and no_std environments.
- task
- time
- traits
- This module contains various traits that are shared on different levels such as apply, identity, structural_eq and value_eq.
- types
- This module provides a type system implementation.
- utils
- This module contains various utility functions and types that are used throughout the project.
- value_
updates - This module contains the traits for value updates, which are used to represent changes to values.
- values
- This module contains the implementation of all levels of value representations, including core_value::CoreValue as the most basic value types, value::Value as the main value representation in the type system, and value_container as the container for values that can be shared across different parts of the system.