Cargo Features
[dependencies]
stylua = { version = "2.0.2", default-features = false, features = ["serialize", "fromstr", "luau", "lua52", "lua53", "lua54", "luajit", "editorconfig", "wasm-bindgen"] }
- default = editorconfig, wasm-bindgen
-
These default features are set whenever
stylua
is added without
somewhere in the dependency tree.default-features = false - serialize
- fromstr = strum
- luau
-
full_moon:
backwards compatibility
Affects
formatters::luau
,trivia_util::take_trailing_trivia
… - lua52 lua53?
-
Affects
formatters::lua52
… - lua53 lua54? = lua52
- lua54 = lua53
-
Affects
formatters::lua54
… - luajit
- 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
…