mago 1.41.0

A comprehensive suite of PHP tooling inspired by Rust’s approach, providing parsing, linting, formatting, and more through a unified CLI and library interface.
# 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.96.0"
name = "mago"
version = "1.41.0"
authors = ["Seifeddine Gmati <azjezz@carthage.software>"]
build = "build.rs"
exclude = [
    "composer",
    "scripts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A comprehensive suite of PHP tooling inspired by Rust’s approach, providing parsing, linting, formatting, and more through a unified CLI and library interface."
homepage = "https://mago.carthage.software"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/carthage-software/mago"

[features]
dhat-heap = ["dhat"]

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

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

[[test]]
name = "suite"
path = "tests/suite.rs"
harness = false

[dependencies.clap]
version = "4.5.20"
features = [
    "cargo",
    "derive",
    "unicode",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4.5.59"

[dependencies.colored]
version = "3.0.0"

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.dialoguer]
version = "0.12.0"

[dependencies.diffy]
version = "0.4.0"

[dependencies.flate2]
version = "1"

[dependencies.indicatif]
version = "0.18.0"

[dependencies.indoc]
version = "2"

[dependencies.mago-algebra]
version = "1.41.0"

[dependencies.mago-allocator]
version = "1.41.0"

[dependencies.mago-analyzer]
version = "1.41.0"

[dependencies.mago-bytes]
version = "1.41.0"

[dependencies.mago-codex]
version = "1.41.0"

[dependencies.mago-composer]
version = "1.41.0"

[dependencies.mago-database]
version = "1.41.0"

[dependencies.mago-formatter]
version = "1.41.0"
features = ["serde"]

[dependencies.mago-guard]
version = "1.41.0"
features = ["serde"]

[dependencies.mago-linter]
version = "1.41.0"
features = ["serde"]

[dependencies.mago-names]
version = "1.41.0"

[dependencies.mago-orchestrator]
version = "1.41.0"

[dependencies.mago-php-version]
version = "1.41.0"

[dependencies.mago-prelude]
version = "1.41.0"
features = ["serde"]

[dependencies.mago-reporting]
version = "1.41.0"

[dependencies.mago-syntax]
version = "1.41.0"
features = ["serde"]

[dependencies.mago-syntax-core]
version = "1.41.0"

[dependencies.mago-text-edit]
version = "1.41.0"

[dependencies.mago-word]
version = "1.41.0"

[dependencies.notify]
version = "8.2"

[dependencies.rayon]
version = "1.10.0"

[dependencies.schemars]
version = "1.1"
features = ["preserve_order"]

[dependencies.self-replace]
version = "1"

[dependencies.semver]
version = "1"

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

[dependencies.serde_json]
version = "1.0.138"

[dependencies.serde_norway]
version = "0.9.42"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3.15.0"

[dependencies.termtree]
version = "1.0.0"

[dependencies.toml]
version = "1.0.3"

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]

[dependencies.unicode-width]
version = "0.2.0"
default-features = false

[dependencies.ureq]
version = "3"
features = [
    "rustls",
    "json",
]

[dependencies.zip]
version = "6"
features = ["deflate"]
default-features = false

[dev-dependencies.libtest-mimic]
version = "0.7"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

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

[dev-dependencies.serde_json]
version = "1.0.138"

[dev-dependencies.temp-env]
version = "0.3.6"

[build-dependencies.mago-prelude]
version = "1.41.0"
features = ["build"]

[target.'cfg(any(target_os = "macos", target_os = "windows", target_env = "musl", target_env = "gnu"))'.dependencies.mimalloc]
version = "0.1.47"

[profile.dev]
opt-level = 0
lto = "off"
debug = 2
panic = "unwind"

[profile.memory-debug]
debug = 2
inherits = "release"
strip = "none"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = true
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"