Embedded Ledger Rust SDK (CantonNodeBuilder)
Embed the full Daml-LF ledger engine (ExecutionService) directly inside your host Rust process memory without spawning external servers or databases, and optionally expose a background HTTP port to connect external CLI tools.
Why Embed the Ledger Directly Inside a Rust Process?
Running Daml smart contracts normally requires starting separate participant and sequencer processes, then exchanging authenticated JSON or gRPC payloads over network sockets. For matching-engine prototypes, high-frequency risk simulators, and Rust backend integration tests, managing external containers and paying serialization round-trips adds unnecessary friction.
How Does Rust SDK Code Connect to the oltenrs CLI? (3 Topologies)
CantonNodeBuilder (library) and oltenrs node json-api (CLI binary) are not separate engines — they wrap the exact same ExecutionService and differ only in which binary owns main(). Choose one of the three topologies below based on how external tools interact with your app.
Anatomy of Builder Inputs: Where Do synchronizer_id and .dar Paths Come From?
String literals passed to CantonNodeBuilder are not arbitrary magic values — each maps directly to a Ledger API v2 wire field or Daml package identifier. Use the guide below to understand where each value comes from and when to customize it.
Walkthrough Examples: Pure In-Process vs. Hybrid CLI Bridge
Compare running contracts purely inside Rust memory with zero open sockets (Example 1) against opening a background HTTP bridge so standard oltenrs CLI commands can interact with the embedded Rust process (Example 2).
Switch language (KO) · LLMs.txt · oltenrs Home