Cargo Features

[dependencies]
oxvg_ast = { version = "0.0.2", default-features = false, features = ["implementations", "markup5ever", "roxmltree", "serialize", "selectors", "visitor", "style"] }
default = markup5ever, roxmltree, visitor

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

implementations markup5ever roxmltree

Includes a "shared" implementation you can use to parse or build a document from

Enables string_cache, tendril, and typed-arena

Affects oxvg_ast::implementations

markup5ever default = implementations

Includes a parser that uses xml5ever

Enables xml5ever ^0.20

Affects implementations::markup5ever

roxmltree default = implementations

Includes a parser that uses roxmltree

Enables roxmltree

Affects implementations::roxmltree

serialize

Includes serialization for elements

Affects oxvg_ast::serialize, oxvg_ast::xmlwriter

selectors

Includes CSS selection for elements

Enables cssparser ^0.34.0, precomputed-hash, selectors ^0.26, and servo_arc

servo_arc:

ensure track_alloc_size for wasm compat

Affects element::Element.select, element::Element.select_with_selector, element::Element.set_selector_flags, oxvg_ast::selectors, style::root, visitor::has_scripts

visitor default

Includes a visitor trait for building visitors

Enables bitflags

Affects oxvg_ast::visitor

style

Includes style parsing and querying

Enables cssparser ^0.33, lightningcss, and smallvec

Affects attribute::Attr.presentation, oxvg_ast::style, visitor::Context.computed_styles, visitor::Context.stylesheet, visitor::Context.element_styles, visitor::Visitor.use_style