Cargo Features

[dependencies]
mrml = { version = "4.0.1", default-features = false, features = ["json", "parse", "print", "render", "async", "local-loader", "http-loader", "http-loader-base", "http-loader-blocking-reqwest", "http-loader-async-reqwest", "http-loader-ureq"] }
default = json, parse, print, render

These default features are set whenever mrml is added without default-features = false somewhere in the dependency tree.

json default

Enables serde of indexmap and mrml-json-macros, serde, and serde_json

mrml-json-macros:

macros

parse default http-loader-base?

Enables thiserror ^1.0 and xmlparser

Affects mrml::parse_with_options, mrml::parse, mjml::parse, prelude::parser, mrml::async_parse_with_options, mrml::async_parse

print default

Enables enum_dispatch

Affects prelude::print, helper::sort

render default

Enables enum-as-inner and thiserror ^1.0

Affects helper::size, helper::spacing, helper::style, prelude::render, helper::sort

async http-loader-async-reqwest?

Enables async-trait

Affects http_loader::AsyncHttpFetcher, loader::AsyncIncludeLoader, parser::AsyncParserOptions, parser::AsyncMrmlParser, multi_loader::MultiIncludeLoaderAsync, mrml::async_parse_with_options, mrml::async_parse

local-loader

Affects parser::local_loader

http-loader = http-loader-ureq
http-loader-base http-loader-async-reqwest? http-loader-blocking-reqwest? http-loader-ureq? = parse

Enables url

Affects parser::http_loader

http-loader-blocking-reqwest = http-loader-base

Enables blocking of reqwest

http-loader feature related

Affects http_loader::BlockingReqwestFetcher

http-loader-async-reqwest = async, http-loader-base

Enables reqwest

Affects http_loader::AsyncReqwestFetcher

http-loader-ureq http-loader? = http-loader-base

Enables ureq

Affects http_loader::UreqFetcher