[package]
edition = "2024"
rust-version = "1.92"
name = "dellingr"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An embeddable, pure-Rust Lua VM with precise instruction-cost accounting"
readme = "README.md"
license = "MIT"
repository = "https://github.com/folknor/dellingr"
[features]
debug_gc = []
debug_parser = []
debug_vm = []
hotpath = ["hotpath/hotpath"]
hotpath-alloc = [
"hotpath/hotpath",
"hotpath/hotpath-alloc",
]
[lib]
name = "dellingr"
path = "src/lib.rs"
[[bin]]
name = "dellingr"
path = "src/main.rs"
[[example]]
name = "hotpath"
path = "examples/hotpath.rs"
[[test]]
name = "anchor"
path = "tests/anchor.rs"
[[test]]
name = "diff_test"
path = "tests/diff_test.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "gc_upvalues"
path = "tests/gc_upvalues.rs"
[[test]]
name = "gsub_errors"
path = "tests/gsub_errors.rs"
[[test]]
name = "metamethod_errors"
path = "tests/metamethod_errors.rs"
[[test]]
name = "method_cache_globals"
path = "tests/method_cache_globals.rs"
[[test]]
name = "run_examples"
path = "tests/run_examples.rs"
[[test]]
name = "rustfn_error"
path = "tests/rustfn_error.rs"
[[test]]
name = "string_bytes"
path = "tests/string_bytes.rs"
[dependencies.hotpath]
version = "0.15"
[dependencies.indexmap]
version = "2.0"
[dependencies.rand]
version = "0.10"
[dependencies.slotmap]
version = "1.1"
[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
clone_on_ref_ptr = "deny"
cloned_instead_of_copied = "deny"
collapsible_match = "deny"
dbg_macro = "deny"
disallowed_methods = "deny"
explicit_iter_loop = "deny"
if_same_then_else = "deny"
implicit_clone = "deny"
large_enum_variant = "deny"
let_underscore_must_use = "deny"
manual_string_new = "deny"
map_unwrap_or = "deny"
match_same_arms = "deny"
needless_borrow = "deny"
needless_pass_by_value = "deny"
ok_expect = "deny"
ptr_arg = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
redundant_locals = "deny"
regex_creation_in_loops = "deny"
semicolon_if_nothing_returned = "deny"
todo = "deny"
too_many_arguments = "deny"
uninlined_format_args = "deny"
unnecessary_sort_by = "deny"
unnecessary_unwrap = "deny"
unnested_or_patterns = "deny"
unwrap_in_result = "deny"
wrong_self_convention = "deny"
[lints.rust]
future_incompatible = "deny"
non_ascii_idents = "deny"
rust_2018_idioms = "deny"
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "deny"
unused = "deny"
variant_size_differences = "deny"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1