# 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_rs" version = "0.1.0" authors = ["GiveMe-A-Name "] description = "A CSS parser, transformer, and minifier fork from https://github.com/parcel-bundler/lightningcss. Fix some bug for Rspack." readme = "README.md" keywords = [ "CSS", "minifier", "Parcel", ] license = "MPL-2.0" repository = "https://github.com/GiveMe-A-Name/lightningcss" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] lto = true codegen-units = 1 panic = "abort" [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" required-features = ["visitor"] [[example]] name = "serialize" required-features = ["serde"] [[test]] name = "cli_integration_tests" path = "tests/cli_integration_tests.rs" required-features = ["cli"] [dependencies.ahash] version = "0.8.7" [dependencies.atty] version = "0.2" optional = true [dependencies.bitflags] version = "2.2.1" [dependencies.browserslist-rs] version = "0.16.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.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.27.0" [dependencies.parcel_sourcemap] version = "2.1.1" features = ["json"] optional = true [dependencies.paste] version = "1.0.12" [dependencies.pathdiff] version = "0.2.1" [dependencies.rayon] version = "1.5.1" optional = true [dependencies.schemars] version = "0.8.19" features = ["smallvec"] optional = true [dependencies.serde] version = "1.0.201" features = ["derive"] 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.0" 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" [features] browserslist = ["browserslist-rs"] bundler = [ "dashmap", "sourcemap", "rayon", ] cli = [ "atty", "clap", "serde_json", "browserslist", "jemallocator", ] default = [ "bundler", "grid", "nodejs", "sourcemap", ] grid = [] into_owned = [ "static-self", "static-self/smallvec", "parcel_selectors/into_owned", ] jsonschema = [ "schemars", "serde", "parcel_selectors/jsonschema", ] nodejs = ["dep:serde"] serde = [ "dep:serde", "smallvec/serde", "cssparser/serde", "parcel_selectors/serde", "into_owned", ] sourcemap = ["parcel_sourcemap"] substitute_variables = [ "visitor", "into_owned", ] visitor = [] [target."cfg(target_arch = \"wasm32\")".dependencies.getrandom] version = "0.2" features = ["custom"] default-features = false [target."cfg(target_os = \"macos\")".dependencies.jemallocator] version = "0.3.2" features = ["disable_initial_exec_tls"] optional = true