Cargo Features

[dependencies]
stylua = { version = "0.20.0", default-features = false, features = ["serialize", "fromstr", "luau", "lua52", "lua53", "lua54", "editorconfig", "wasm-bindgen"] }
default = editorconfig, wasm-bindgen

These default features are set whenever stylua is added without default-features = false somewhere in the dependency tree.

serialize
fromstr = strum
luau

Enables roblox of full_moon

Affects formatters::luau, trivia_util::take_trailing_trivia

lua52 lua53?

Enables lua52 of full_moon

Affects formatters::lua52

lua53 lua54? = lua52

Enables lua53 of full_moon

lua54 = lua53

Enables lua54 of full_moon

Affects formatters::lua54

editorconfig default = ec4rs

Affects opt::Opt.no_editorconfig, stylua::editorconfig

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ec4rs editorconfig
strum fromstr?

Enables strum ^0.25.0

wasm-bindgen wasm32 default

Affects stylua::format_code_wasm