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 whenever deno_media_type is added without default-features = false somewhere in the dependency tree.

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