Cargo Features

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

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

json default

Enables mrml-json-macros, serde, and serde_json

parse default http-loader-base?

Enables thiserror and xmlparser

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

print default

Enables mrml-print-macros

Affects prelude::print, helper::sort

render default

Enables thiserror

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

orderedmap default

Enables indexmap and rustc-hash

Affects hash::MapImpl, hash::SetImpl

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