Cargo Features

[dependencies]
float-pigment-css = { version = "0.2.0", default-features = false, features = ["std", "no-std-lock", "wasm-entrance", "nodejs-package", "build-cpp-header", "serialize", "deserialize", "serialize_json", "deserialize_json", "compatibility_test", "compile_cache", "skip_compare_cache", "ffi"] }
default = deserialize, ffi, serialize, std

These default features are set whenever float-pigment-css is added without default-features = false somewhere in the dependency tree.

std default

Enables std of bit-set ^0.5.2, float-pigment-consistent-bincode, half ^2.0.0, <2.3.0, num-traits, serde, and serde_json

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

no-std-lock
wasm-entrance nodejs-package? = console_error_panic_hook, console_log, js-sys, wasm-bindgen
nodejs-package = wasm-entrance

Affects float-pigment-css::wasm_main

build-cpp-header = cbindgen, fs_extra

Required by the float_pigment_css_cpp_binding_gen_tool binary

serialize default

Affects ffi::style_sheet_resource_serialize_bincode, ffi::style_sheet_import_index_serialize_bincode, float-pigment-css::compile_style_sheet_to_bincode, ffi::style_sheet_resource_serialize_json, ffi::style_sheet_import_index_serialize_json, float-pigment-css::compile_style_sheet_to_json

deserialize default

Affects ffi::style_sheet_resource_add_bincode, ffi::style_sheet_import_index_add_bincode, ffi::style_sheet_import_index_deserialize_bincode, ffi::style_sheet_import_index_merge_bincode, ffi::style_sheet_bincode_version, float-pigment-css::style_sheet_from_bincode, ffi::style_sheet_import_index_deserialize_json

serialize_json

Affects ffi::style_sheet_resource_serialize_json, ffi::style_sheet_import_index_serialize_json, float-pigment-css::compile_style_sheet_to_json

deserialize_json

Affects ffi::style_sheet_import_index_deserialize_json

write_cache compatibility_test
compile_cache = colorful, toml

Required by the float_pigment_css_update_version binary

skip_compare_cache

Enables skip_compare_cache of float-pigment-css-macro

ffi default

Affects hooks::CParserHooksContext, hooks::CParserHooks

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

wasm-bindgen wasm-entrance?
console_error_panic_hook wasm-entrance?
js-sys wasm-entrance?
console_log wasm-entrance?

Enables console_log ^0.1

cbindgen build-cpp-header?
toml compile_cache?

Enables toml ^0.5.8

colorful compile_cache?

Enables colorful ^0.2.1

fs_extra build-cpp-header?