[package]
name = "tools-shared"
version = "0.1.0"
edition = "2021"
authors = ["Tools Contributors"]
license = "MIT OR Apache-2.0"
description = "Shared utilities for Tools ecosystem CLIs"

[lib]
name = "tools_shared"
path = "lib.rs"

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

[dependencies]
anyhow = "1.0"
serde = { version = "1.0", features = ["derive"], optional = true }
toml = { version = "0.9", optional = true }
dirs = "6.0"
inquire = { version = "0.9", optional = true }

[dev-dependencies]
tempfile = "3.23"

[features]
default = ["config-discovery", "manifest"]
config-discovery = []
manifest = ["serde", "toml"]
interactive = ["inquire"]

[[example]]
name = "manifest_usage"
path = "examples/manifest_usage.rs"
required-features = ["manifest"]
