Cargo Features

[dependencies]
ic-wasm-bindgen = { version = "0.2.87", default-features = false, features = ["std", "spans", "serde-serialize", "enable-interning", "strict-macro", "gg-alloc", "xxx_debug_only_print_generated_code"] }
default = spans, std

These default features are set whenever ic-wasm-bindgen is added without default-features = false somewhere in the dependency tree.

std default enable-interning? serde-serialize?

Affects ic-wasm-bindgen::JsStatic

spans default

Enables spans of wasm-bindgen-macro =0.2.87

serde-serialize = serde, serde_json, std
enable-interning = std
strict-macro

Whether or not the #[wasm_bindgen] macro is strict and generates an error on all unused attributes

Enables strict-macro of wasm-bindgen-macro =0.2.87

gg-alloc dev

Enables gg-alloc as system allocator when using wasm-bindgen-test to check that large pointers are handled correctly

Enables gg-alloc of wasm-bindgen-test =0.3.37

xxx_debug_only_print_generated_code

This is only for debugging wasm-bindgen! No stability guarantees, so enable this at your own peril!

Enables xxx_debug_only_print_generated_code of wasm-bindgen-macro =0.2.87

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.

serde serde-serialize?
serde_json serde-serialize?