[[bin]]
name = "tmpltool"
path = "src/main.rs"
[dependencies.base64]
version = "0.22"
[dependencies.bcrypt]
version = "0.17"
[dependencies.chrono]
version = "0.4"
[dependencies.chrono-tz]
version = "0.10"
[dependencies.clap]
features = ["derive"]
version = "4"
[dependencies.dirs]
version = "6.0"
[dependencies.dotenvy]
version = "0.15"
[dependencies.glob]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.hostname]
version = "0.4"
[dependencies.if-addrs]
version = "0.13"
[dependencies.md-5]
version = "0.10"
[dependencies.minijinja]
features = ["builtins", "loader", "json"]
version = "2"
[dependencies.percent-encoding]
version = "2"
[dependencies.rand]
version = "0.9"
[dependencies.regex]
version = "1"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.toml]
version = "0.8"
[dependencies.url]
version = "2"
[dependencies.urlencoding]
version = "2"
[dependencies.uuid]
features = ["v4", "v7"]
version = "1.19"
[dependencies.whoami]
version = "1.5"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.tempfile]
version = "3.24.0"
[lib]
name = "tmpltool"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["command-line-utilities", "template-engine"]
description = "A fast and simple command-line template rendering tool using MiniJinja templates with environment variables"
edition = "2024"
keywords = ["template", "minijinja", "cli", "environment", "variables"]
license = "MIT"
name = "tmpltool"
readme = "README.md"
repository = "https://github.com/bordeux/tmpltool"
version = "1.5.0"
[package.metadata.deb]
assets = [["target/release/tmpltool", "usr/bin/", "755"], ["README.md", "usr/share/doc/tmpltool/README.md", "644"], ["LICENSE", "usr/share/doc/tmpltool/LICENSE", "644"]]
copyright = "2026, Chris Bednarczyk"
depends = "libc6"
extended-description = "A fast and simple command-line template rendering tool using MiniJinja (Jinja2-compatible) templates with environment variables. Features include hash generation (MD5, SHA1, SHA256, SHA512), filesystem operations, data parsing (JSON, YAML, TOML), validation functions, and more."
license-file = ["LICENSE", "0"]
maintainer = "Chris Bednarczyk <tmpltool@bordeux.net>"
priority = "optional"
section = "utils"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/bin/tmpltool"
mode = "0755"
source = "target/release/tmpltool"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/tmpltool/README.md"
mode = "0644"
source = "README.md"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/tmpltool/LICENSE"
mode = "0644"
source = "LICENSE"
[package.metadata.wix]
eula = false
license = false
path-guid = "A1B2C3D4-E5F6-7890-ABCD-EF1234567890"
upgrade-guid = "E8B9F4A2-3C5D-4E6F-8A1B-2C3D4E5F6A7B"
[profile.release]
codegen-units = 1
lto = true
strip = true
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "test_advanced_array_functions"
path = "tests/test_advanced_array_functions.rs"
[[test]]
name = "test_array_extended_functions"
path = "tests/test_array_extended_functions.rs"
[[test]]
name = "test_array_filter_functions"
path = "tests/test_array_filter_functions.rs"
[[test]]
name = "test_array_functions"
path = "tests/test_array_functions.rs"
[[test]]
name = "test_cli_env_flag"
path = "tests/test_cli_env_flag.rs"
[[test]]
name = "test_cli_ide_flag"
path = "tests/test_cli_ide_flag.rs"
[[test]]
name = "test_context"
path = "tests/test_context.rs"
[[test]]
name = "test_data_parsing_unit"
path = "tests/test_data_parsing_unit.rs"
[[test]]
name = "test_datetime_filter_functions"
path = "tests/test_datetime_filter_functions.rs"
[[test]]
name = "test_datetime_functions"
path = "tests/test_datetime_functions.rs"
[[test]]
name = "test_datetime_unit"
path = "tests/test_datetime_unit.rs"
[[test]]
name = "test_debug_functions"
path = "tests/test_debug_functions.rs"
[[test]]
name = "test_direct_var_access_fails"
path = "tests/test_direct_var_access_fails.rs"
[[test]]
name = "test_edge_cases"
path = "tests/test_edge_cases.rs"
[[test]]
name = "test_encoding_filter_functions"
path = "tests/test_encoding_filter_functions.rs"
[[test]]
name = "test_encoding_functions"
path = "tests/test_encoding_functions.rs"
[[test]]
name = "test_env_with_default"
path = "tests/test_env_with_default.rs"
[[test]]
name = "test_environment_unit"
path = "tests/test_environment_unit.rs"
[[test]]
name = "test_environment_variable_substitution"
path = "tests/test_environment_variable_substitution.rs"
[[test]]
name = "test_exec_functions"
path = "tests/test_exec_functions.rs"
[[test]]
name = "test_filesystem_unit"
path = "tests/test_filesystem_unit.rs"
[[test]]
name = "test_filter_env"
path = "tests/test_filter_env.rs"
[[test]]
name = "test_filter_env_unit"
path = "tests/test_filter_env_unit.rs"
[[test]]
name = "test_filters_integration"
path = "tests/test_filters_integration.rs"
[[test]]
name = "test_formatting_filters"
path = "tests/test_formatting_filters.rs"
[[test]]
name = "test_functions_registration"
path = "tests/test_functions_registration.rs"
[[test]]
name = "test_hash_crypto_functions"
path = "tests/test_hash_crypto_functions.rs"
[[test]]
name = "test_hash_filter_functions"
path = "tests/test_hash_filter_functions.rs"
[[test]]
name = "test_hash_unit"
path = "tests/test_hash_unit.rs"
[[test]]
name = "test_invalid_template_syntax"
path = "tests/test_invalid_template_syntax.rs"
[[test]]
name = "test_is_datetime"
path = "tests/test_is_datetime.rs"
[[test]]
name = "test_is_filesystem"
path = "tests/test_is_filesystem.rs"
[[test]]
name = "test_is_functions_registration"
path = "tests/test_is_functions_registration.rs"
[[test]]
name = "test_is_network"
path = "tests/test_is_network.rs"
[[test]]
name = "test_is_validation"
path = "tests/test_is_validation.rs"
[[test]]
name = "test_kubernetes_extended_functions"
path = "tests/test_kubernetes_extended_functions.rs"
[[test]]
name = "test_kubernetes_filter_functions"
path = "tests/test_kubernetes_filter_functions.rs"
[[test]]
name = "test_kubernetes_functions"
path = "tests/test_kubernetes_functions.rs"
[[test]]
name = "test_kubernetes_ref_functions"
path = "tests/test_kubernetes_ref_functions.rs"
[[test]]
name = "test_lib_metadata"
path = "tests/test_lib_metadata.rs"
[[test]]
name = "test_logic_functions"
path = "tests/test_logic_functions.rs"
[[test]]
name = "test_math_filter_functions"
path = "tests/test_math_filter_functions.rs"
[[test]]
name = "test_math_functions"
path = "tests/test_math_functions.rs"
[[test]]
name = "test_missing_template_file"
path = "tests/test_missing_template_file.rs"
[[test]]
name = "test_multiline_template"
path = "tests/test_multiline_template.rs"
[[test]]
name = "test_network_edge_cases"
path = "tests/test_network_edge_cases.rs"
[[test]]
name = "test_network_functions"
path = "tests/test_network_functions.rs"
[[test]]
name = "test_object_filter_functions"
path = "tests/test_object_filter_functions.rs"
[[test]]
name = "test_object_functions"
path = "tests/test_object_functions.rs"
[[test]]
name = "test_path_filter_functions"
path = "tests/test_path_filter_functions.rs"
[[test]]
name = "test_path_functions"
path = "tests/test_path_functions.rs"
[[test]]
name = "test_predicate_functions"
path = "tests/test_predicate_functions.rs"
[[test]]
name = "test_random_string_unit"
path = "tests/test_random_string_unit.rs"
[[test]]
name = "test_random_unit"
path = "tests/test_random_unit.rs"
[[test]]
name = "test_relative_path_resolution"
path = "tests/test_relative_path_resolution.rs"
[[test]]
name = "test_renderer"
path = "tests/test_renderer.rs"
[[test]]
name = "test_serialization_filter_functions"
path = "tests/test_serialization_filter_functions.rs"
[[test]]
name = "test_serialization_functions"
path = "tests/test_serialization_functions.rs"
[[test]]
name = "test_simple_rendering"
path = "tests/test_simple_rendering.rs"
[[test]]
name = "test_stdout_output"
path = "tests/test_stdout_output.rs"
[[test]]
name = "test_string_filter_functions"
path = "tests/test_string_filter_functions.rs"
[[test]]
name = "test_string_functions"
path = "tests/test_string_functions.rs"
[[test]]
name = "test_successful_rendering"
path = "tests/test_successful_rendering.rs"
[[test]]
name = "test_system_functions"
path = "tests/test_system_functions.rs"
[[test]]
name = "test_template_include"
path = "tests/test_template_include.rs"
[[test]]
name = "test_template_with_conditionals"
path = "tests/test_template_with_conditionals.rs"
[[test]]
name = "test_template_with_missing_variable"
path = "tests/test_template_with_missing_variable.rs"
[[test]]
name = "test_url_filter_functions"
path = "tests/test_url_filter_functions.rs"
[[test]]
name = "test_url_functions"
path = "tests/test_url_functions.rs"
[[test]]
name = "test_uuid_unit"
path = "tests/test_uuid_unit.rs"
[[test]]
name = "test_validation"
path = "tests/test_validation.rs"
[[test]]
name = "test_validation_unit"
path = "tests/test_validation_unit.rs"
[[test]]
name = "test_validator"
path = "tests/test_validator.rs"