[package]
name = "luaur-cli-lib"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
description = "Shared CLI helpers for the luaur tools."
keywords = ["luau", "lua", "cli"]
categories = ["command-line-utilities", "development-tools"]

[lib]
crate-type = ["rlib"]

[dependencies]
wasm-bindgen = { version = "0.2", optional = true }
luaur-ast = { path = "../luaur-ast", version = "0.1.4" }
luaur-bytecode = { path = "../luaur-bytecode", version = "0.1.4" }
luaur-common = { path = "../luaur-common", version = "0.1.4" }
luaur-compiler = { path = "../luaur-compiler", version = "0.1.4" }
luaur-config = { path = "../luaur-config", version = "0.1.4" }
luaur-vm = { path = "../luaur-vm", version = "0.1.4" }

[features]
default = ["std"]
std = []
native = ["std"]
cli = ["native"]
native-codegen = ["native"]
wasm = ["dep:wasm-bindgen"]

# The Windows file-utils helpers (is_file / traverse_directory_rec) call raw
# Win32 wide-char filesystem APIs. Use windows-sys (raw Win32), matching the rest
# of the workspace — the crate was referenced but never declared as a dependency.
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
] }
