Cargo Features

[dependencies]
simi = { version = "0.2.1", default-features = false, features = ["nightly", "fetch", "fetch_json", "js_callback_with_serde_arg", "proc-macro-hack"] }
default = proc-macro-hack

The proc-macro-hack feature is set by default whenever simi is added without default-features = false somewhere in the dependency tree.

nightly

Enables nightly of simi-macros

fetch = futures, wasm-bindgen-futures

Enables Headers, Request, RequestInit, RequestMode and Response of web-sys

Affects simi::fetch

fetch_json = serde, serde_json
js_callback_with_serde_arg = serde

Enables serde-serialize of wasm-bindgen

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.

proc-macro-hack default
futures fetch?

Enables futures ^0.1

wasm-bindgen-futures fetch?

Enables wasm-bindgen-futures ^0.3

serde fetch_json? js_callback_with_serde_arg?
serde_json fetch_json?