Expand description
C ABI exports for embedding merman in non-Rust hosts.
This crate is the only place where the public FFI boundary owns unsafe code. The core parser/render crates and shared binding facade remain safe Rust APIs.
Structs§
Constants§
Functions§
- merman_
abi_ version - Return the C ABI protocol version implemented by this library.
- merman_
ascii_ supported_ diagrams_ json - Return ASCII-supported diagram type metadata as a JSON string array.
- merman_
buffer_ ⚠free - Free a buffer returned by this crate.
- merman_
buffer_ struct_ size - Return the Rust-side size of
MermanBuffer. - merman_
engine_ ⚠free - Free an engine returned by
merman_engine_new. - merman_
engine_ ⚠layout_ json - Layout Mermaid source to layout JSON bytes using a reusable engine.
- merman_
engine_ ⚠new - Create a reusable engine for repeated calls with the same options.
- merman_
engine_ ⚠parse_ json - Parse Mermaid source to semantic JSON bytes using a reusable engine.
- merman_
engine_ ⚠render_ ascii - Render Mermaid source to Unicode ASCII-art text using a reusable engine.
- merman_
engine_ ⚠render_ svg - Render Mermaid source to SVG bytes using a reusable engine.
- merman_
engine_ result_ struct_ size - Return the Rust-side size of
MermanEngineResult. - merman_
engine_ ⚠validate_ json - Validate Mermaid source using a reusable engine.
- merman_
layout_ ⚠json - Layout Mermaid source to layout JSON bytes.
- merman_
package_ version - Return the
merman-fficrate package version as a static C string. - merman_
parse_ ⚠json - Parse Mermaid source to semantic JSON bytes.
- merman_
render_ ⚠ascii - Render Mermaid source to Unicode ASCII-art text.
- merman_
render_ ⚠svg - Render Mermaid source to SVG bytes.
- merman_
result_ struct_ size - Return the Rust-side size of
MermanResult. - merman_
supported_ diagrams_ json - Return supported diagram type metadata as a JSON string array.
- merman_
supported_ host_ theme_ presets_ json - Return supported host/editor theme preset metadata as a JSON string array.
- merman_
supported_ themes_ json - Return supported theme metadata as a JSON string array.
- merman_
validate_ ⚠json - Validate Mermaid source and return a JSON validation payload.