mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
487 stars 25 forks source link

make mermaid.js lib local #8

Closed lesavonfou closed 3 years ago

lesavonfou commented 3 years ago

Hi,

I have created this merge request to solve the issue #4 . This make the mermaid.js library local. The main problem I encountered was to move the js file to the right location but using the build.rs script did the trick.

As @mdaj06 I am relatively new to the Rust ecosystem therefore any remarks are welcome! :)


Closes #4

lesavonfou commented 3 years ago

Thanks for the feedback!

  1. src/img/something was a dummy file used for debugging. It has been removed.
  2. I added the include field in Cargo.toml. I am not sure how to test it though ...
mersinvald commented 3 years ago

Great, I'll make a release shortly