Skip to content

feat(mdbook-rhai-mermaid): expose parser and emitter as library#68

Merged
elasticdotventures merged 1 commit into
mainfrom
feat/mdbook-rhai-mermaid-lib-main
May 2, 2026
Merged

feat(mdbook-rhai-mermaid): expose parser and emitter as library#68
elasticdotventures merged 1 commit into
mainfrom
feat/mdbook-rhai-mermaid-lib-main

Conversation

@elasticdotventures
Copy link
Copy Markdown
Member

Summary

Expose mdbook-rhai-mermaid as a reusable library target so integrations can import the parser and emitter directly instead of shelling out to the preprocessor binary.

Changes

  • add a [lib] target for mdbook_rhai_mermaid
  • export emitter and parser modules from src/lib.rs

Validation

  • cargo test -p mdbook-rhai-mermaid

Add a library target so b00t synergy_viz and other integrations can consume\nmdbook-rhai-mermaid parser and emitter modules without shelling out to the\npreprocessor binary.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 2, 2026 15:24
@elasticdotventures elasticdotventures merged commit cbd7ff9 into main May 2, 2026
2 of 4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exposes mdbook-rhai-mermaid as a reusable Rust library so other crates can directly import the parser/emitter logic instead of invoking the mdBook preprocessor binary.

Changes:

  • Add a lib target to mdbook-rhai-mermaid.
  • Introduce src/lib.rs that publicly exports the emitter and parser modules.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
crates/mdbook-rhai-mermaid/src/lib.rs New library entrypoint exposing emitter and parser as public modules.
crates/mdbook-rhai-mermaid/Cargo.toml Adds [lib] section to build/install the crate as a library in addition to the existing binary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,7 @@
//! Library exports for mdbook-rhai-mermaid parser and emitter.
//!
//! Enables consumption by b00t synergy_viz and other integrations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants