Cargo Features

Nucleation has no features set by default.

[dependencies]
nucleation = { version = "0.1.15", features = ["ffi", "wasm"] }

Let's organize features to control what gets included in each build

ffi

The FFI feature will be used when building for PHP integration

Affects nucleation::ffi

wasm = js-sys, serde-wasm-bindgen, wasm-bindgen, web-sys

The wasm feature includes all web-related dependencies

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?

Enables wasm-bindgen

WASM-specific dependencies, only included when the "wasm" feature is enabled

js-sys wasm?
serde-wasm-bindgen wasm?

Enables serde-wasm-bindgen ^0.4

web-sys wasm?