Cargo Features
[dependencies]
e2k = { version = "0.2.0", default-features = false, features = ["getrandom_on_wasm32_unknown", "embed_model", "compress_model"] }
- default = compress_model, embed_model
-
These default features are set whenever
e2k
is added without
somewhere in the dependency tree.default-features = false - getrandom_on_wasm32_unknown
-
Enables rand and wasm_js of getrandom
getrandom:
Optional backend: wasm_js
This flag enables the backend but does not select it. To use the backend, use this flag *and* set getrandom_backend=wasm_js (see README). - embed_model default compress_model
- compress_model default = embed_model
-
Enables brotli-decompressor
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.