luau 0.732.0

Safe lifetime-bound Rust embedding API for the Luau runtime
# 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"
rust-version = "1.88"
name = "luau"
version = "0.732.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe lifetime-bound Rust embedding API for the Luau runtime"
homepage = "https://github.com/luau-rs/luau"
readme = "README.md"
license = "MIT"
repository = "https://github.com/luau-rs/luau"

[package.metadata.docs.rs]
features = ["macros"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
macros = [
    "dep:inventory",
    "dep:luau-derive",
]
time-trace = [
    "luau-common/time-trace",
    "luau-compiler/time-trace",
    "luau-syntax/time-trace",
]
vector4 = ["luau-vm/vector4"]

[lib]
name = "luau"
path = "src/lib.rs"

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

[[example]]
name = "captured_chunk"
path = "examples/captured_chunk.rs"
required-features = ["macros"]

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "userdata_counter"
path = "examples/userdata_counter.rs"
required-features = ["macros"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bstr]
version = "1.0.0"

[dependencies.inventory]
version = "0.3.0"
optional = true

[dependencies.luau-bytecode]
version = "=0.732.0"

[dependencies.luau-common]
version = "=0.732.0"

[dependencies.luau-compiler]
version = "=0.732.0"

[dependencies.luau-derive]
version = "=0.732.0"
optional = true

[dependencies.luau-syntax]
version = "=0.732.0"

[dependencies.luau-vm]
version = "=0.732.0"

[dependencies.num-traits]
version = "0.2.4"

[dev-dependencies.trybuild]
version = "1.0.0"

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"