# 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 = "mlua-gen"
version = "0.2.2"
authors = ["tkr-sh"]
build = false
exclude = [
    "LICENSE.md",
    "justfile",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generates code to easily use Rust's structs or enums in Lua with mlua"
readme = "README.md"
license = "LGPL-3.0-or-later"
repository = "https://github.com/tkr-sh/mlua-gen"

[features]
debug = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.mlua]
version = "0.10"
features = ["lua54"]

[dependencies.mlua-gen-macros]
version = "0.2.2"

[lints.clippy]
allow_attributes_without_reason = "warn"
as_conversions = "deny"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
borrow_deref_ref = "allow"
branches_sharing_code = "warn"
cfg_not_test = "warn"
clear_with_drain = "warn"
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "warn"
collection_is_never_read = "warn"
comparison_chain = "warn"
create_dir = "warn"
decimal_literal_representation = "warn"
default_trait_access = "warn"
deref_addrof = "allow"
derive_partial_eq_without_eq = "warn"
doc_link_code = "warn"
doc_link_with_quotes = "warn"
drain_collect = "allow"
elidable_lifetime_names = "warn"
empty_drop = "warn"
empty_enum = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
enum_variant_names = "allow"
equatable_if_let = "warn"
explicit_into_iter_loop = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
format_push_string = "warn"
from_iter_instead_of_collect = "warn"
if_not_else = "warn"
ignored_unit_patterns = "warn"
impl_trait_in_params = "warn"
implicit_clone = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
large_digit_groups = "warn"
literal_string_with_formatting_args = "warn"
manual_assert = "warn"
manual_midpoint = "warn"
manual_string_new = "warn"
map_unwrap_or = "warn"
map_with_unused_argument_over_ranges = "warn"
match_on_vec_items = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mismatching_type_param_order = "warn"
missing_const_for_fn = "warn"
mixed_read_write_in_expression = "warn"
mut_mut = "warn"
needless_collect = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_string_hashes = "warn"
negative_feature_names = "warn"
non_std_lazy_statics = "warn"
non_zero_suggestions = "warn"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
pub_without_shorthand = "deny"
redundant_closure_for_method_calls = "warn"
redundant_type_annotations = "warn"
ref_option_ref = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
self_named_module_files = "deny"
semicolon_if_nothing_returned = "warn"
significant_drop_in_scrutinee = "warn"
single_char_pattern = "warn"
str_split_at_newline = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
string_to_string = "warn"
too_long_first_doc_paragraph = "warn"
too_many_arguments = "allow"
trait_duplication_in_bounds = "warn"
trivial_regex = "warn"
type_complexity = "allow"
type_repetition_in_bounds = "warn"
unchecked_duration_subtraction = "warn"
undocumented_unsafe_blocks = "warn"
uninlined_format_args = "warn"
unnecessary_join = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_result_ok = "warn"
unused_rounding = "warn"
unused_self = "warn"
unwrap_used = "warn"
upper_case_acronyms = "allow"
verbose_bit_mask = "warn"
verbose_file_reads = "warn"
