dellingr 0.2.0

An embeddable, pure-Rust Lua VM with precise instruction-cost accounting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
disallowed-methods = [
    { path = "core::result::Result::ok", reason = "Silently discards errors. Use `?` to propagate, or handle the error explicitly." },
    { path = "rand::rng", reason = "Unseeded RNG breaks determinism. Use State.rng (seeded StdRng) instead.", allow-invalid = true },
    { path = "rand::thread_rng", reason = "Unseeded RNG breaks determinism. Use State.rng (seeded StdRng) instead.", allow-invalid = true },
]

# Determinism: ban non-deterministic collections
disallowed-types = [
    { path = "std::collections::HashMap", reason = "Non-deterministic iteration order. Use IndexMap or BTreeMap instead." },
    { path = "std::collections::HashSet", reason = "Non-deterministic iteration order. Use BTreeSet instead." },
    { path = "std::collections::hash_map::HashMap", reason = "Non-deterministic iteration order. Use IndexMap or BTreeMap instead." },
    { path = "std::collections::hash_set::HashSet", reason = "Non-deterministic iteration order. Use BTreeSet instead." },
]