[package]
edition = "2021"
name = "float-pigment-css"
version = "0.8.0"
authors = [
"LastLeaf <bqfu@163.com>",
"TtTRz <romc1224@gmail.com>",
]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The CSS parser for the float-pigment project."
homepage = "https://github.com/wechat-miniprogram/float-pigment"
readme = "README.md"
keywords = [
"CSS",
"flexbox",
"layout",
]
categories = [
"gui",
"wasm",
]
license = "MIT"
repository = "https://github.com/wechat-miniprogram/float-pigment"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[lib]
name = "float_pigment_css"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.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"]
[[example]]
name = "compile_json"
path = "examples/compile_json.rs"
[[test]]
name = "bincode_test"
path = "tests/compatibility/main.rs"
test = false
required-features = ["compatibility_test"]
[[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"
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
[dependencies.ahash]
version = "0.8"
default-features = false
[dependencies.az]
version = "1.2"
[dependencies.bit-set]
version = "0.5.2"
default-features = false
[dependencies.cbindgen]
version = "0.27"
optional = true
[dependencies.colorful]
version = "0.2.1"
optional = true
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.console_log]
version = "0.1"
optional = true
[dependencies.cssparser]
version = "0.34"
default-features = false
[dependencies.cssparser-color]
version = "0.2"
default-features = false
[dependencies.fixed]
version = "=1.23"
features = [
"num-traits",
"serde",
]
default-features = false
[dependencies.float-pigment-consistent-bincode]
version = "0.8.0"
default-features = false
[dependencies.float-pigment-css-macro]
version = "0.8.0"
[dependencies.fs_extra]
version = "1.3"
optional = true
[dependencies.half]
version = "^2.0.0,<2.3.0"
default-features = false
[dependencies.hashbrown]
version = "0.14"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.num-traits]
version = "0.2"
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false
[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false
[dependencies.spin]
version = "0.9"
[dependencies.toml]
version = "0.5.8"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.bencher]
version = "0.1.5"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.rand]
version = "0.8.5"
[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 = []
[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"