# 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.

cargo-features = ["profile-rustflags"]

[package]
edition = "2024"
name = "rsjson-lua"
version = "0.1.5"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "a json module based on serde-json (rust)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/benniekiss/rsjson"

[features]
default = [
    "lua54",
    "vendored",
]
lua51 = ["mlua/lua51"]
lua52 = ["mlua/lua52"]
lua53 = ["mlua/lua53"]
lua54 = ["mlua/lua54"]
lua55 = ["mlua/lua55"]
module = ["mlua/module"]
vendored = ["mlua/vendored"]

[lib]
name = "rsjson_lua"
crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies.mlua]
version = "0.11"
features = [
    "serde",
    "macros",
]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"
features = [
    "preserve_order",
    "float_roundtrip",
    "arbitrary_precision",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
rustflags = [
    "-Zlocation-detail=none",
    "-Zfmt-debug=none",
]
