# 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 = "2021"
name = "senl"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lua-powered CLI framework with Rust host (mlua + clap)"
readme = false
keywords = [
    "lua",
    "cli",
    "framework",
    "clap",
    "scripting",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/ynishi/senl-rs"

[features]
default = [
    "json",
    "fs",
]
exec = []
fs = [
    "dep:walkdir",
    "dep:glob",
]
full = [
    "json",
    "yaml",
    "toml",
    "fs",
    "hash",
    "http",
    "exec",
]
hash = ["dep:sha2"]
http = ["dep:ureq"]
json = [
    "dep:serde",
    "dep:serde_json",
]
toml = ["dep:toml"]
yaml = ["dep:serde_yaml_ng"]

[lib]
name = "senl"
path = "src/lib.rs"

[[bin]]
name = "senl"
path = "src/main.rs"

[[example]]
name = "embedded_cli"
path = "examples/embedded_cli.rs"

[[example]]
name = "plugin_dir"
path = "examples/plugin_dir.rs"

[[example]]
name = "plugin_file"
path = "examples/plugin_file.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.clap]
version = "4"
features = ["string"]

[dependencies.glob]
version = "0.3"
optional = true

[dependencies.mlua]
version = "0.10"
features = [
    "lua54",
    "vendored",
]

[dependencies.serde]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.serde_yaml_ng]
version = "0.10"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.ureq]
version = "2"
optional = true

[dependencies.walkdir]
version = "2"
optional = true
