Cargo Features
[dependencies]
deno_media_type = { version = "0.2.4", default-features = false, features = ["decoding", "data_url", "module_specifier"] }
- default = module_specifier
-
The
module_specifier
feature is set by default wheneverdeno_media_type
is added without
somewhere in the dependency tree.default-features = false - decoding = encoding_rs
-
Affects
encoding::decode_owned_source
,encoding::decode_arc_source
,encoding::convert_to_utf8
… - data_url = url
-
Enables data-url
Affects
deno_media_type::data_url
… - module_specifier default = url
-
Enables data-url
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.
- encoding_rs decoding?
- url data_url? module_specifier
-
Affects
encoding::detect_charset
,deno_media_type::resolve_media_type_and_charset_from_content_type
…