stylua 2.4.0

A code formatter for Lua
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 = "2018"
name = "stylua"
version = "2.4.0"
authors = ["JohnnyMorganz <johnnymorganz@outlook.com>"]
build = false
exclude = [
    "stylua-vscode/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A code formatter for Lua"
readme = "README.md"
keywords = [
    "cli",
    "utility",
    "lua",
    "lua51",
    "formatter",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MPL-2.0"
repository = "https://github.com/johnnymorganz/stylua"

[features]
cfxlua = [
    "lua54",
    "full_moon/cfxlua",
]
default = [
    "editorconfig",
    "wasm-bindgen",
    "lsp",
]
editorconfig = ["ec4rs"]
fromstr = ["strum"]
lsp = [
    "lsp-server",
    "lsp-types",
    "lsp-textdocument",
]
lua52 = ["full_moon/lua52"]
lua53 = [
    "lua52",
    "full_moon/lua53",
]
lua54 = [
    "lua53",
    "full_moon/lua54",
]
luajit = ["full_moon/luajit"]
luau = ["full_moon/roblox"]
serialize = []

[lib]
name = "stylua_lib"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"
bench = false

[[bin]]
name = "stylua"
path = "src/cli/main.rs"
bench = false

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

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

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

[dependencies.anyhow]
version = "1.0.75"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.clap]
version = "3.1.6"
features = ["derive"]

[dependencies.console]
version = "0.15.7"

[dependencies.crossbeam-channel]
version = "0.5.15"

[dependencies.ec4rs]
version = "1.0.2"
optional = true

[dependencies.env_logger]
version = "0.10.0"
default-features = false

[dependencies.full_moon]
version = "2.1.1"

[dependencies.globset]
version = "0.4.13"

[dependencies.ignore]
version = "0.4.20"

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.log]
version = "0.4.20"

[dependencies.lsp-server]
version = "0.7"
optional = true

[dependencies.lsp-textdocument]
version = "0.4.2"
optional = true

[dependencies.lsp-types]
version = "0.97"
optional = true

[dependencies.num_cpus]
version = "1.16.0"

[dependencies.regex]
version = "1.10.2"

[dependencies.serde]
version = "1.0.188"

[dependencies.serde_json]
version = "1.0.108"

[dependencies.similar]
version = "2.3.0"
features = [
    "text",
    "inline",
    "serde",
    "bytes",
]

[dependencies.strum]
version = "0.25.0"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "1.0.49"

[dependencies.threadpool]
version = "1.8.1"

[dependencies.toml]
version = "0.8.1"

[dev-dependencies.assert_cmd]
version = "2.0.12"

[dev-dependencies.assert_fs]
version = "1.0.13"

[dev-dependencies.criterion]
version = "0.4.0"

[dev-dependencies.insta]
version = "1.34.0"
features = ["glob"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.108"
optional = true

[profile.dev.package.full_moon]
opt-level = 3