# 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.92"
name = "rilua"
version = "0.1.16"
authors = ["Daniel S. Reichenbach <daniel@kogito.network>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lua 5.1.1 implemented in Rust, targeting the World of Warcraft addon variant."
readme = "README.md"
keywords = [
    "lua",
    "interpreter",
    "scripting",
    "wow",
    "vm",
]
categories = [
    "compilers",
    "game-development",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/wowemulation-dev/rilua"

[features]
default = []
dynmod = []

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

[[bin]]
name = "rilua"
path = "src/bin/rilua.rs"

[[bin]]
name = "riluac"
path = "src/bin/riluac.rs"

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

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

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

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

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

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

[[bench]]
name = "interpreter"
path = "benches/interpreter.rs"
harness = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.flamegraph]
version = "0.6"

[dev-dependencies.proptest]
version = "1"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.cargo_common_metadata]
level = "allow"
priority = 1

[lints.clippy.cast_possible_truncation]
level = "allow"
priority = 1

[lints.clippy.cast_possible_wrap]
level = "allow"
priority = 1

[lints.clippy.cast_precision_loss]
level = "allow"
priority = 1

[lints.clippy.cast_sign_loss]
level = "allow"
priority = 1

[lints.clippy.doc_markdown]
level = "allow"
priority = 1

[lints.clippy.enum_glob_use]
level = "allow"
priority = 1

[lints.clippy.expect_used]
level = "warn"
priority = 2

[lints.clippy.match_wildcard_for_single_variants]
level = "allow"
priority = 1

[lints.clippy.missing_const_for_fn]
level = "allow"
priority = 1

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1

[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1

[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.clippy.must_use_candidate]
level = "allow"
priority = 1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.option_if_let_else]
level = "allow"
priority = 1

[lints.clippy.panic]
level = "warn"
priority = 2

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.redundant_else]
level = "allow"
priority = 1

[lints.clippy.redundant_pub_crate]
level = "allow"
priority = 1

[lints.clippy.self_named_module_files]
level = "allow"
priority = 1

[lints.clippy.similar_names]
level = "allow"
priority = 1

[lints.clippy.todo]
level = "warn"
priority = 2

[lints.clippy.too_many_lines]
level = "allow"
priority = 1

[lints.clippy.unimplemented]
level = "warn"
priority = 2

[lints.clippy.unnested_or_patterns]
level = "allow"
priority = 1

[lints.clippy.unreadable_literal]
level = "allow"
priority = 1

[lints.clippy.unwrap_used]
level = "warn"
priority = 2

[lints.clippy.wildcard_imports]
level = "allow"
priority = 1

[lints.rust]
future_incompatible = "warn"
non_ascii_idents = "warn"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
unused = "warn"
variant_size_differences = "warn"

[profile.release]
lto = true
codegen-units = 1
strip = true
