Cargo Features
[dependencies]
deno_cache_dir = { version = "0.16.0", default-features = false, features = ["file_fetcher", "wasm"] }
- default = file_fetcher
-
The
file_fetcher
feature is set by default wheneverdeno_cache_dir
is added without
somewhere in the dependency tree.default-features = false - file_fetcher default = async-trait, base64, cache_control, chrono, data-url, http
-
Affects
deno_cache_dir::file_fetcher
… - wasm = console_error_panic_hook, js-sys, serde-wasm-bindgen, wasm-bindgen
-
Enables wasm of sys_traits
Affects
deno_cache_dir::wasm
…
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.
- async-trait file_fetcher
- base64 file_fetcher
-
Enables base64 ^0.21.7
- cache_control file_fetcher
- chrono file_fetcher
-
Enables chrono
Note: Do not use the "clock" feature of chrono, as it links us to CoreFoundation on macOS.
- data-url file_fetcher
- http file_fetcher
- console_error_panic_hook wasm?
- js-sys wasm?
-
Enables js-sys =0.3.68
- wasm-bindgen wasm?
-
Enables wasm-bindgen =0.2.91
- serde-wasm-bindgen wasm?