lightningcss 1.0.0-alpha.71

A CSS parser, transformer, and minifier
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 = "2021"
name = "lightningcss"
version = "1.0.0-alpha.71"
authors = ["Devon Govett <devongovett@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A CSS parser, transformer, and minifier"
readme = "README.md"
keywords = [
    "CSS",
    "minifier",
    "Parcel",
]
license = "MPL-2.0"
repository = "https://github.com/parcel-bundler/lightningcss"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
browserslist = ["browserslist-rs"]
bundler = [
    "dashmap",
    "sourcemap",
    "rayon",
]
cli = [
    "atty",
    "clap",
    "serde_json",
    "browserslist",
    "jemallocator",
]
default = [
    "bundler",
    "nodejs",
    "sourcemap",
]
into_owned = [
    "static-self",
    "static-self/smallvec",
    "static-self/indexmap",
    "parcel_selectors/into_owned",
]
jsonschema = [
    "schemars",
    "serde",
    "parcel_selectors/jsonschema",
]
nodejs = [
    "dep:serde",
    "dep:serde-content",
]
serde = [
    "dep:serde",
    "dep:serde-content",
    "bitflags/serde",
    "smallvec/serde",
    "cssparser/serde",
    "parcel_selectors/serde",
    "into_owned",
]
sourcemap = ["parcel_sourcemap"]
substitute_variables = [
    "visitor",
    "into_owned",
]
visitor = []

[lib]
name = "lightningcss"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "lightningcss"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "custom_at_rule"
path = "examples/custom_at_rule.rs"
required-features = ["visitor"]

[[example]]
name = "schema"
path = "examples/schema.rs"

[[example]]
name = "serialize"
path = "examples/serialize.rs"
required-features = ["serde"]

[[test]]
name = "cli_integration_tests"
path = "tests/cli_integration_tests.rs"
required-features = ["cli"]

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

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

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

[dependencies.ahash]
version = "0.8.7"

[dependencies.atty]
version = "0.2"
optional = true

[dependencies.bitflags]
version = "2.2.1"

[dependencies.browserslist-rs]
version = "0.19.0"
optional = true

[dependencies.clap]
version = "3.0.6"
features = ["derive"]
optional = true

[dependencies.const-str]
version = "0.3.1"

[dependencies.cssparser]
version = "0.33.0"

[dependencies.cssparser-color]
version = "0.1.0"

[dependencies.dashmap]
version = "5.0.0"
optional = true

[dependencies.data-encoding]
version = "2.3.2"

[dependencies.indexmap]
version = "2.2.6"
features = ["serde"]

[dependencies.itertools]
version = "0.10.1"

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.lightningcss-derive]
version = "=1.0.0-alpha.43"

[dependencies.parcel_selectors]
version = "0.28.2"

[dependencies.parcel_sourcemap]
version = "2.1.1"
features = ["json"]
optional = true

[dependencies.pastey]
version = "0.1.0"

[dependencies.pathdiff]
version = "0.2.1"

[dependencies.rayon]
version = "1.5.1"
optional = true

[dependencies.schemars]
version = "0.8.19"
features = [
    "smallvec",
    "indexmap2",
]
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde-content]
version = "0.1.2"
features = ["serde"]
optional = true

[dependencies.serde_json]
version = "1.0.78"
optional = true

[dependencies.smallvec]
version = "1.7.0"
features = ["union"]

[dependencies.static-self]
version = "0.1.2"
optional = true

[dev-dependencies.assert_cmd]
version = "2.0"

[dev-dependencies.assert_fs]
version = "1.0"

[dev-dependencies.indoc]
version = "1.0.3"

[dev-dependencies.predicates]
version = "2.1"

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.jemallocator]
version = "0.3.2"
features = ["disable_initial_exec_tls"]
optional = true

[profile.release]
lto = true
codegen-units = 1
panic = "abort"