ruau 0.4.0

Pure Rust implementation of Luau and its analyzer.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "ruau"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust implementation of Luau and its analyzer."
readme = "README.md"
keywords = [
    "luau",
    "lua",
    "runtime",
    "parser",
    "typechecker",
]
license = "MIT"
repository = "https://github.com/cortesi/ruau"
resolver = "2"

[features]
declaration-parse = ["ruau-declaration/parse"]
default = []
derive = ["ruau-vm/derive"]
json-module = ["dep:serde_json"]

[lib]
name = "ruau"
path = "src/lib.rs"
test = false
doctest = false

[[example]]
name = "call_context"
path = "examples/call_context.rs"

[[example]]
name = "check_and_run"
path = "examples/check_and_run.rs"

[[example]]
name = "diagnostic_records"
path = "examples/diagnostic_records.rs"

[[example]]
name = "embedding_stack"
path = "examples/embedding_stack.rs"

[[example]]
name = "graph_preparation"
path = "examples/graph_preparation.rs"

[[example]]
name = "json_module"
path = "examples/json_module.rs"

[[example]]
name = "modules"
path = "examples/modules.rs"

[[example]]
name = "multi_root_files"
path = "examples/multi_root_files.rs"

[[example]]
name = "multi_tenant_executor"
path = "examples/multi_tenant_executor.rs"

[[example]]
name = "native_module"
path = "examples/native_module.rs"

[[example]]
name = "retained_host"
path = "examples/retained_host.rs"

[[example]]
name = "retained_runtime"
path = "examples/retained_runtime.rs"

[[example]]
name = "surface_session"
path = "examples/surface_session.rs"

[[example]]
name = "table_layout"
path = "examples/table_layout.rs"

[[test]]
name = "api"
path = "tests/api.rs"

[[test]]
name = "executor_concurrency"
path = "tests/executor_concurrency.rs"

[[test]]
name = "host_userdata"
path = "tests/host_userdata.rs"

[[test]]
name = "module_binding"
path = "tests/module_binding.rs"

[dependencies.ruau-bytecode]
version = "0.4.0"

[dependencies.ruau-declaration]
version = "0.4.0"

[dependencies.ruau-json-schema]
version = "0.4.0"

[dependencies.ruau-source]
version = "0.4.0"

[dependencies.ruau-surface]
version = "0.4.0"

[dependencies.ruau-syntax]
version = "0.4.0"

[dependencies.ruau-typecheck]
version = "0.4.0"

[dependencies.ruau-vm]
version = "0.4.0"

[dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]
optional = true

[dev-dependencies.ruau-vm]
version = "0.4.0"
features = ["conformance"]

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "sync",
    "time",
    "io-util",
    "rt-multi-thread",
    "net",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ruau-executor]
version = "0.4.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ruau-filesystem]
version = "0.4.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ruau-session]
version = "0.4.0"
features = ["eval"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.ruau-session]
version = "0.4.0"
default-features = false

[lints.clippy]
branches_sharing_code = "warn"
cfg_not_test = "warn"
cognitive_complexity = "warn"
comparison_chain = "warn"
excessive_nesting = "warn"
ignore_without_reason = "warn"
items_after_statements = "warn"
let_underscore_must_use = "warn"
many_single_char_names = "warn"
missing_safety_doc = "deny"
multiple_inherent_impl = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
redundant_pub_crate = "warn"
self_named_module_files = "warn"
tests_outside_test_module = "warn"
too_many_lines = "warn"
undocumented_unsafe_blocks = "deny"
use_self = "warn"
wildcard_dependencies = "warn"

[lints.rust]
missing_docs = "warn"
unnameable_types = "warn"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"