# 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"
rust-version = "1.70"
name = "dynamic-cli"
version = "0.4.0"
authors = ["Dynamic CLI Contributors"]
build = false
exclude = [
    ".git*",
    "*.md",
    "examples/",
    "benches/",
    "tests/integration/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A framework for building configurable CLI and REPL applications from YAML/JSON configuration files"
homepage = "https://github.com/biface/dcli"
documentation = "https://docs.rs/dynamic-cli"
readme = "README.md"
keywords = [
    "cli",
    "repl",
    "command",
    "yaml",
    "configuration",
]
categories = [
    "command-line-interface",
    "command-line-utilities",
    "config",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/biface/dcli"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
wasm-plugins = ["dep:wasmtime"]

[lib]
name = "dynamic_cli"
path = "src/lib.rs"
doctest = true

[dependencies.anyhow]
version = "1.0"

[dependencies.colored]
version = "3.0"

[dependencies.dirs]
version = "5.0"

[dependencies.rustyline]
version = "14.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.wasmtime]
version = "45.0.0"
optional = true

[dev-dependencies.tempfile]
version = "3.13"

[profile.bench]
debug = 2
inherits = "release"

[profile.dev]
opt-level = 0
debug = 2
split-debuginfo = "unpacked"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
panic = "abort"
strip = true
