Cargo Features

[dependencies]
tsify = { version = "0.4.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 ^0.5.0, js of tsify-macros

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

json default = wasm-bindgen

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

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