Skip to content

report: put SVG rendering behind a default svg-reports feature - #176

Merged
statusfailed merged 1 commit into
hellas-ai:masterfrom
georgewhewell:grw/svg-reports-feature
Sep 4, 2026
Merged

statusfailed merged 1 commit into
hellas-ai:masterfrom
georgewhewell:grw/svg-reports-feature

Conversation

@georgewhewell

@georgewhewell georgewhewell commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

open-hypergraphs-dot pulls in a graphviz/SVG renderer that only the diagnostic report dump uses; embedders that never ask for SVGs still compiled and linked it.

This puts it behind an svg-reports feature, enabled by default, so existing builds are unchanged. Without the feature, ReportOptions::generate_svgs does not exist, so a build without the renderer cannot ask for SVGs — the check is at compile time, no runtime error path.

Checked: cargo check --all-targets with default features and with --no-default-features (the dot crate drops out of the dependency graph), cargo fmt --check.

`open-hypergraphs-dot` pulls in a graphviz/SVG renderer that only the
diagnostic report dump uses; embedders that never ask for SVGs still
compiled and linked it.

Enabled by default, so existing builds are unchanged. Without the
feature, `ReportOptions::generate_svgs` does not exist, so a build
without the renderer cannot ask for SVGs.
@georgewhewell
georgewhewell force-pushed the grw/svg-reports-feature branch from a28d8ce to a2cf11e Compare September 3, 2026 11:23
@statusfailed
statusfailed merged commit 83d29a1 into hellas-ai:master Sep 4, 2026
1 check passed
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.

2 participants