Cargo Features

[dependencies]
tsify = { version = "0.5.5", default-features = false, features = ["wasm-bindgen", "js", "json"] }
default = json

The json feature is set by default whenever tsify is added without default-features = false somewhere in the dependency tree.

wasm-bindgen js? json

Enables wasm-bindgen, wasm-bindgen of tsify-macros

js = wasm-bindgen

Enables serde and serde-wasm-bindgen, js of tsify-macros

Affects tsify::Tsify.into_js, tsify::Tsify.from_js

json default = wasm-bindgen

Enables gloo-utils, serde, and serde_json, json of tsify-macros

Affects tsify::Tsify.into_js, tsify::Tsify.from_js