# 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"
rust-version = "1.95"
name = "cairn-lang-cli"
version = "2026.7.2"
authors = ["kage1020 and the Cairn authors"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for the Cairn language"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/kage1020/Cairn"
resolver = "2"

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

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

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

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

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

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

[dependencies.cairn-lang-core]
version = "2026.7.2"

[dependencies.cairn-lang-formats]
version = "2026.7.2"

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.150"

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

[lints.clippy]
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
