Cargo Features
[dependencies]
ramhorns = { version = "1.0.1", default-features = false, features = ["indexes", "export_derive", "pulldown-cmark"] }
- default = export_derive, pulldown-cmark
-
These default features are set whenever
ramhorns
is added without
somewhere in the dependency tree.default-features = false - indexes
-
Affects
content::Content.render_index_section
,parse::Indexed
,parse::Index
,traits::ContentSequence.render_index_section
… - export_derive default = ramhorns-derive
-
Re-exports the
Context
derive macro, so that end user only needs to import this crate anduse ramhorns::Context
to get both the trait and derive proc macro.
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.
- pulldown-cmark default
-
Affects
encoding::Encoder.write_html
,encoding::encode_cmark
… - ramhorns-derive export_derive