moonproof-runtime 0.2.2

Wasm-friendly Compact contract runtime core — IR walker, IR-driven circuit executor, contract state, runtime values
Documentation
[package]
name = "moonproof-runtime"
version.workspace = true
authors.workspace = true
edition.workspace = true
description = "Wasm-friendly Compact contract runtime core — IR walker, IR-driven circuit executor, contract state, runtime values"
license.workspace = true
repository.workspace = true

[dependencies]
web-time.workspace = true
# Async / errors (light)
thiserror.workspace = true
anyhow.workspace = true
futures.workspace = true

# Serialization / hashing / encoding
serde.workspace = true
serde_json.workspace = true
hex.workspace = true
sha2.workspace = true
sha3.workspace = true
rustc-hash = "2"

# Logging
tracing.workspace = true

# Randomness — used by the IR executor's nonce derivation paths.
rand.workspace = true

# Midnight ledger primitives — pure-compute subset wasm-friendly with
# the `getrandom` `wasm_js` feature wired in by the cdylib consumer.
moonproof-ledger = { workspace = true }
# Runtime IR (the contract.mpir schema) — IR-driver consumes parsed IR.
moonproof-runtime-ir.workspace = true

# 256-bit signed integer for `IntLit` byte-width inference inside the
# walker's `uint_byte_len` helper.
ethnum = { workspace = true }
num-bigint = { workspace = true }

# wasm32-unknown-unknown needs the `wasm_js` getrandom backend; the
# cdylib build sets `RUSTFLAGS='--cfg getrandom_backend="wasm_js"'`.
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.4", features = ["wasm_js"] }

[dev-dependencies]
moonproof-ledger = { workspace = true, features = ["test-utilities"] }
tokio = { workspace = true, features = ["full", "test-util"] }
moonproof-test-fixtures.workspace = true
serde_json = { workspace = true }
criterion = { workspace = true }
# Heap allocation profiler — drives `examples/dhat_exec.rs`, gated on
# the `dhat-heap` feature so a normal build never swaps in the global
# allocator shim.
dhat = "0.3"

[features]
# Swaps the global allocator for dhat's inside `examples/dhat_exec.rs`.
dhat-heap = []

[[bench]]
name = "exec"
harness = false

[lints]
workspace = true