mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
508 stars 28 forks source link

Document/Improve include_mmd! file reading and panic message #46

Closed mattsse closed 10 months ago

mattsse commented 10 months ago

currently, the value of the include_mmd attribute (the path) is just directly:

https://github.com/mersinvald/aquamarine/blob/6701fdb94ce2bcf1f6559648b2c77d73427b5bf4/src/attrs.rs#L107

though it's unclear what the current path in this context is when invoked via cargo doc in a workspace.

At the very least the panic should include the current working dir and the path that does not exist.

mattsse commented 10 months ago

closed by #47