odem-rs Core
odem-rs-core is the foundational crate of the odem-rs library, providing essential structures and traits for object-based discrete-event modeling in Rust. It defines the core components that facilitate agent-based simulation modeling, event scheduling, and cooperative concurrency.
Features
- Provides the key simulation structures
Agent,Job, andContinuation, as well as the simulation contextSim. - Implements event scheduling and deterministic execution.
- Contains supporting structures and traits like intrusively counted pointers (
Irc), theConfig-trait, and theScheduler-trait.
Feature Flags
| Feature | Default | Description |
|---|---|---|
std |
yes | Standard library support (implies alloc). |
alloc |
yes | Heap allocation for per-type agent identifiers. |
tracing |
yes | Structured instrumentation of agents and jobs. |
debug-tracing |
no | Debug-level trace output for internal state machines. |
uom |
yes | Type-safe SI quantities for model time. |
See the API documentation for detailed descriptions of each feature flag.
Installation
Using the entry crate odem-rs is recommended, but it is possible to use this crate as a standalone simulator core.
[]
= "0.3"
License
Licensed under MIT. See LICENSE for details.