mni 0.2.0

A world-class minifier for JavaScript, CSS, JSON, HTML, and SVG written in Rust
Documentation
# 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 = "mni"
version = "0.2.0"
authors = ["Nick Paterno <nick@epistates>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A world-class minifier for JavaScript, CSS, JSON, HTML, and SVG written in Rust"
readme = "README.md"
keywords = [
    "minifier",
    "minify",
    "javascript",
    "css",
    "optimizer",
]
categories = [
    "development-tools",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/epistates/mni"

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

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

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

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

[[bench]]
name = "minify_bench"
path = "benches/minify_bench.rs"
harness = false

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.lightningcss]
version = "=1.0.0-alpha.63"
features = [
    "visitor",
    "sourcemap",
]

[dependencies.minify-html]
version = "0.16"

[dependencies.notify]
version = "8.2"

[dependencies.once_cell]
version = "1.21"

[dependencies.oxvg_ast]
version = "0.0.5"
features = ["roxmltree"]

[dependencies.oxvg_optimiser]
version = "0.0.5"

[dependencies.parcel_sourcemap]
version = "2.1"

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sourcemap]
version = "9.3"

[dependencies.swc_core]
version = "63.1"
features = [
    "ecma_ast",
    "ecma_minifier",
    "ecma_parser",
    "ecma_transforms",
    "ecma_codegen",
    "ecma_visit",
    "common",
    "common_sourcemap",
]

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.insta]
version = "1.47"

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

[dev-dependencies.roxmltree]
version = "0.20"

[profile.bench]
inherits = "release"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true