[[bench]]
harness = false
name = "parse"
path = "benches/parse.rs"
[[bin]]
name = "float_pigment_css_cpp_binding_gen_tool"
path = "cbindgen/main.rs"
required-features = ["build-cpp-header"]
[[bin]]
name = "float_pigment_css_update_version"
path = "compile_cache/bin/main.rs"
required-features = ["compile_cache"]
[dependencies.ahash]
default-features = false
version = "0.8"
[dependencies.az]
version = "1.2"
[dependencies.bit-set]
default-features = false
version = "0.5.2"
[dependencies.cbindgen]
optional = true
version = "0.27"
[dependencies.colorful]
optional = true
version = "0.2.1"
[dependencies.console_error_panic_hook]
optional = true
version = "0.1"
[dependencies.console_log]
optional = true
version = "0.1"
[dependencies.cssparser]
default-features = false
version = "0.34"
[dependencies.cssparser-color]
default-features = false
version = "0.2"
[dependencies.fixed]
default-features = false
features = ["num-traits", "serde"]
version = "=1.23"
[dependencies.float-pigment-consistent-bincode]
default-features = false
version = "0.7.1"
[dependencies.float-pigment-css-macro]
version = "0.7.1"
[dependencies.fs_extra]
optional = true
version = "1.3"
[dependencies.half]
default-features = false
version = "^2.0.0,<2.3.0"
[dependencies.hashbrown]
version = "0.14"
[dependencies.js-sys]
optional = true
version = "0.3"
[dependencies.log]
version = "0.4"
[dependencies.num-traits]
default-features = false
version = "0.2"
[dependencies.serde]
default-features = false
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
default-features = false
features = ["alloc"]
version = "1.0"
[dependencies.spin]
version = "0.9"
[dependencies.toml]
optional = true
version = "0.5.8"
[dependencies.wasm-bindgen]
optional = true
version = "0.2"
[dev-dependencies.bencher]
version = "0.1.5"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.rand]
version = "0.8.5"
[[example]]
name = "compile_json"
path = "examples/compile_json.rs"
[features]
build-cpp-header = ["cbindgen", "fs_extra"]
compatibility_test = []
compile_cache = ["toml", "colorful"]
default = ["std", "deserialize", "serialize", "ffi"]
deserialize = []
deserialize_json = []
ffi = []
no-std-lock = []
nodejs-package = ["wasm-entrance"]
serialize = []
serialize_compile_cache = ["float-pigment-css-macro/serialize_compile_cache"]
serialize_json = []
std = ["serde/std", "serde_json/std", "bit-set/std", "num-traits/std", "half/std", "float-pigment-consistent-bincode/std"]
wasm-entrance = ["wasm-bindgen", "console_log", "console_error_panic_hook", "js-sys"]
write_cache = []
[lib]
crate-type = ["cdylib", "rlib"]
name = "float_pigment_css"
path = "src/lib.rs"
[lints.clippy]
clone_on_copy = "allow"
collapsible_else_if = "allow"
get_first = "allow"
let_and_return = "allow"
needless_lifetimes = "allow"
redundant_closure = "allow"
single_match = "allow"
while_let_on_iterator = "allow"
[package]
authors = ["LastLeaf <bqfu@163.com>", "TtTRz <romc1224@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["gui", "wasm"]
description = "The CSS parser for the float-pigment project."
edition = "2021"
homepage = "https://github.com/wechat-miniprogram/float-pigment"
keywords = ["CSS", "flexbox", "layout"]
license = "MIT"
name = "float-pigment-css"
readme = "README.md"
repository = "https://github.com/wechat-miniprogram/float-pigment"
version = "0.7.1"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[[test]]
name = "bincode_test"
path = "tests/compatibility/main.rs"
required-features = ["compatibility_test"]
test = false
[[test]]
name = "calc"
path = "tests/calc.rs"
[[test]]
name = "env"
path = "tests/env.rs"
[[test]]
name = "error"
path = "tests/error.rs"
[[test]]
name = "font_face"
path = "tests/font_face.rs"
[[test]]
name = "global_values"
path = "tests/global_values.rs"
[[test]]
name = "important"
path = "tests/important.rs"
[[test]]
name = "keyframes"
path = "tests/keyframes.rs"
[[test]]
name = "media"
path = "tests/media.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "property_value"
path = "tests/property_value.rs"
[[test]]
name = "selector"
path = "tests/selector.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "style_sheet_group"
path = "tests/style_sheet_group.rs"
[[test]]
name = "var"
path = "tests/var.rs"
[[test]]
name = "warning"
path = "tests/warning.rs"