[package]
edition = "2021"
rust-version = "1.95"
name = "rustia"
version = "0.2.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Rustia is a pure-Rust interpreter for embedding standalone Luau in games and tools. Edit scripts without a rebuild and let players write mods.
Rustia grew out of a game by Slowchop Studios that needed to script character decisions and replay them on desktop and in a browser."""
homepage = "https://github.com/slowchop/rustia"
readme = "README.md"
keywords = [
"luau",
"scripting",
"deterministic",
"wasm",
"embedding",
]
categories = [
"compilers",
"game-development",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/slowchop/rustia"
[features]
default = ["platform-adapters"]
platform-adapters = [
"dep:getrandom",
"dep:js-sys",
"dep:wasm-bindgen",
"getrandom/wasm_js",
]
send = ["rustia-vm/send"]
[lib]
name = "rustia"
path = "src/lib.rs"
[[example]]
name = "chunk_builder"
path = "examples/chunk_builder.rs"
[[example]]
name = "diagnostics"
path = "examples/diagnostics.rs"
[[example]]
name = "embedding"
path = "examples/embedding.rs"
[[example]]
name = "first_script"
path = "examples/first_script.rs"
[[example]]
name = "game_objects"
path = "examples/game_objects.rs"
[[example]]
name = "hardened_decision"
path = "examples/hardened_decision.rs"
[[example]]
name = "hot_reload"
path = "examples/hot_reload.rs"
[[example]]
name = "leaf_lifecycle_bench"
path = "examples/leaf_lifecycle_bench.rs"
[[example]]
name = "live_serde_bench"
path = "examples/live_serde_bench.rs"
[[example]]
name = "live_values"
path = "examples/live_values.rs"
[[example]]
name = "module_resolution"
path = "examples/module_resolution.rs"
[[example]]
name = "mutable_objects"
path = "examples/mutable_objects.rs"
[[example]]
name = "transferable"
path = "examples/transferable.rs"
required-features = ["send"]
[[example]]
name = "typed_invocation"
path = "examples/typed_invocation.rs"
[[test]]
name = "array_slot_mutation"
path = "tests/array_slot_mutation.rs"
[[test]]
name = "bare_wasm_live"
path = "tests/bare_wasm_live.rs"
[[test]]
name = "builtin_argument_expansion"
path = "tests/builtin_argument_expansion.rs"
[[test]]
name = "builtin_call_phases"
path = "tests/builtin_call_phases.rs"
[[test]]
name = "builtin_callee_order"
path = "tests/builtin_callee_order.rs"
[[test]]
name = "builtin_nested_expansion"
path = "tests/builtin_nested_expansion.rs"
[[test]]
name = "callable_continuations"
path = "tests/callable_continuations.rs"
[[test]]
name = "callback_adapter_api"
path = "tests/callback_adapter_api.rs"
[[test]]
name = "chunk_builder"
path = "tests/chunk_builder.rs"
[[test]]
name = "diagnostic_parity"
path = "tests/diagnostic_parity.rs"
[[test]]
name = "error_level_open_result_call"
path = "tests/error_level_open_result_call.rs"
[[test]]
name = "error_recovery"
path = "tests/error_recovery.rs"
[[test]]
name = "facade_errors"
path = "tests/facade_errors.rs"
[[test]]
name = "hardened_leaf"
path = "tests/hardened_leaf.rs"
[[test]]
name = "host_functions"
path = "tests/host_functions.rs"
[[test]]
name = "hot_path_memory_limit"
path = "tests/hot_path_memory_limit.rs"
[[test]]
name = "issue_18_19"
path = "tests/issue_18_19.rs"
[[test]]
name = "live_serde"
path = "tests/live_serde.rs"
[[test]]
name = "live_value_contract"
path = "tests/live_value_contract.rs"
[[test]]
name = "metamethod_yield_errors"
path = "tests/metamethod_yield_errors.rs"
[[test]]
name = "method_callee_order"
path = "tests/method_callee_order.rs"
[[test]]
name = "mixed_heap_pressure"
path = "tests/mixed_heap_pressure.rs"
[[test]]
name = "module_resolution"
path = "tests/module_resolution.rs"
[[test]]
name = "numeric_index_contract"
path = "tests/numeric_index_contract.rs"
[[test]]
name = "platform_golden"
path = "tests/platform_golden.rs"
[[test]]
name = "puc51_compat"
path = "tests/puc51_compat.rs"
[[test]]
name = "settings_api"
path = "tests/settings_api.rs"
[[test]]
name = "transactional_install"
path = "tests/transactional_install.rs"
[[test]]
name = "transferable_facade"
path = "tests/transferable_facade.rs"
[[test]]
name = "type_grammar"
path = "tests/type_grammar.rs"
[[test]]
name = "typed_invocation"
path = "tests/typed_invocation.rs"
[[test]]
name = "typed_objects"
path = "tests/typed_objects.rs"
[[test]]
name = "web_live"
path = "tests/web_live.rs"
[[test]]
name = "yieldable_require"
path = "tests/yieldable_require.rs"
[dependencies.getrandom]
version = "0.3.4"
optional = true
[dependencies.rustia-compiler]
version = "0.2.0"
[dependencies.rustia-lexer]
version = "0.2.0"
[dependencies.rustia-parser]
version = "0.2.0"
[dependencies.rustia-vm]
version = "0.2.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_path_to_error]
version = "=0.1.20"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[lints.clippy]
disallowed_methods = "deny"
disallowed_types = "deny"
[lints.rust]
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"