# 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 = "2024"
name = "hm-dsl-engine"
version = "0.0.6"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DSL engine: evaluate Python/TypeScript pipeline definitions via system runtimes."
readme = false
keywords = [
    "ci",
    "harmont",
    "dsl",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/harmont-dev/harmont-cli"
resolver = "2"

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.derive_more]
version = "1"
features = ["full"]
default-features = false

[dependencies.include_dir]
version = "0.7"

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1"
features = [
    "process",
    "fs",
]

[dependencies.tracing]
version = "0.1"

[dependencies.which]
version = "7"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.which]
version = "7"

[lints.clippy]
cargo_common_metadata = "allow"
dbg_macro = "deny"
exit = "warn"
expect_used = "warn"
implicit_clone = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
multiple_crate_versions = "allow"
panic = "warn"
print_stderr = "deny"
print_stdout = "deny"
redundant_pub_crate = "allow"
todo = "deny"
unimplemented = "deny"
unwrap_used = "warn"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
